This forum has been archived. All content is frozen. Please use KDE Discuss instead.

assign custom keyboard konsole profiles

Tags: konsole konsole konsole
(comma "," separated)
zeltak
Registered Member
Posts
18
Karma
0
Hi guys

i was wondering if anyone knew how to assign custom keyboard shortcut to konsole profiles? (that is while konsole is running, open profile X in new tab via keyboard shortcut)

thx

Zeltak
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
As far as I can find, even in Trunk this is not possible. Please file a feature request at bugs.kde.org.

Note that as an interim substitute you can use the "Input Actions" ( now Custom Shortcuts in 4.5 ) to run a D-Bus command to create a new profile in a specified directory.

Code: Select all
qdbus org.kde.konsole /Konsole newSession <sessionname> <path>


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
zeltak
Registered Member
Posts
18
Karma
0
Hi thx for reply

i will file a request as suggested. Btw what is a "session" in konsole? i can only see "profiles" ho do you create and save a session?

thx alot

Zeltak
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
A session is a tab. The above was supposed to read:

Code: Select all
qdbus org.kde.konsole /Konsole newSession <profile name> <path>


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
zeltak
Registered Member
Posts
18
Karma
0
thx again for the answer

i did try to do as suggested but the d-bus command in khotkeys has 4 boxes with options: "remote application" , remote object, funtion and arguments.. i cant understand where to put the : qdbus org.kde.konsole /Konsole newSession <profile name> <path>
command. could you help me out a bit?

thx for the help its greatly appreciated

zeltak
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
As far as I know, remote application is "org.kde.konsole", remote object is "/Konsole", function is "newSession" and arguments are "<profile name> <path>".


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
zeltak
Registered Member
Posts
18
Karma
0
hi again

so after a few years i guess i have the same issue still..is it possible to launch a specific konsole profile from the command line?

best

z.
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
zeltak wrote:hi again

so after a few years i guess i have the same issue still..is it possible to launch a specific konsole profile from the command line?

best

z.

Yes, and it has been forever. Just run konsole --profile <profile name>. :)


I'm working on the KDevelop IDE.
zeltak
Registered Member
Posts
18
Karma
0
thx scummos

sorry i wasnt clear enough , what i meant was while konsole is running, open profile X in new tab via keyboard shortcut, is that possible?

best

Z.
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
zeltak wrote:thx scummos

sorry i wasnt clear enough , what i meant was while konsole is running, open profile X in new tab via keyboard shortcut, is that possible?

best

Z.

I don't know of such an option. I think what was mentioned earlier still applies tough, you can open a new tab via a dbus call and assign a global shortcut to that call. Not sure about which window that would open a tab in then, tough... ;p


I'm working on the KDevelop IDE.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Try running this command:
Code: Select all
konsole --profile Shell --new-tab


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Jekyll
KDE Developer
Posts
34
Karma
0
OS
zeltak wrote:thx scummos

sorry i wasnt clear enough , what i meant was while konsole is running, open profile X in new tab via keyboard shortcut, is that possible?

best

Z.


Yes, that is possible.

Open Konsole, go to "Settings --> Manager Profiles" and double click the "Shortcut" cell , then you can assign shorcut for that profile.

Note: the keyboard sequence widget does not detect confliction at the moment, so make sure the shortcut you select for the profile does not conflict with other shortcuts.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell