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

Switch profile in all open Konsole windows and tabs

Tags: None
(comma "," separated)
pmuller
Registered Member
Posts
2
Karma
0
Hello forum,

I am looking for a way to change the profile in all open Konsole windows at once, preferrably in a scriptable way. I tried to \
employ dbus for that purpose, but couldn't find a viable way. Suggestions that I found on the web are limited to sending a "ko\
nsoleprofile ..." command to each open window, which is not an option as some windows may be running an application that is no\
t a shell. Do you have any suggestions how I could implement this?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
From what I am aware, each tab in a Konsole window is a separate session.
Profiles are used to start a session and after that cannot be changed as far as I can tell.

What particularly are you trying to achieve?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
hindenburg
Registered Member
Posts
8
Karma
0
If there was a switchProfile method available via dbus that might work. Otherwise I don't think there's a way to do what you want.
pmuller
Registered Member
Posts
2
Karma
0
Hello all,

occasionally I want to switch between light-on-dark and dark-on-light layouts to adapt to surrounding illumination. While I can use the context menu (right click -> switch profile) to do this in an individual window, I would like to trigger a profile change for all currently open Konsole windows. It would be even better to trigger this action from a script that manages other tasks, e.g. changing the display brightness. As far as I can see there is no dbus method with this functionality.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I see. Unfortunately unless a switchProfile command is added to D-Bus as hindenburg mentioned this won't be possible.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

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