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

Desktop Effect: differently config'd versions, dif hotkeys?

Tags: None
(comma "," separated)
Owen_R
Registered Member
Posts
8
Karma
0
I want to set up set up two versions of the "Present Windows" desktop effect (ie, have each bound to a different hotkey), so that one uses the "ignore minimized windows" option and the other doesn't.

The GUI configuration doesn't seem to provide for such a thing at all.

Is it possible?

Can I manually edit a config file somewhere, somehow...?
luebking
Karma
0
unless you wanted to use virtual desktops (instead of minimized windows) you'd have to bind the shortcuts to scripts that rewrite the effect config

Code: Select all
#!/bin/sh
kwriteconfig --file kwinrc --group Effect-PresentWindows --key IgnoreMinimized $1
qdbus org.kde.kwin /KWin reconfigureEffect kwin4_effect_presentwindows
qdbus org.kde.kglobalaccel /component/kwin invokeShortcut Expose # ExposeAll / ExposeClass


you'd then call the script as eg. "presentwindows.sh true" what will ignore minimized windows, "presentwindows.sh false" will show them

PS:
"Where there is a bash, there is a way!"
Owen_R
Registered Member
Posts
8
Karma
0
YES. Sweet that works! Thanks so much! :D

I also asked this on askubuntu stackexchange btw, so you can copy your answer there too if you want (I'll do it if you don't care about their karma-credit-whatever system thing xD )
http://askubuntu.com/questions/474781/p ... 977_474781


Btbtw, I just used the GUI helper (System Settings > Input Actions ; Edit [left pane, near bottom] > New > Global Shortcut > Command/URL) cuz that's what came up when I googled.

Do you happen to know what the better, non-GUI way of managing that stuff is?
luebking
Karma
0
The configuration is stored in ~/.kde/share/config/khotkeysrc - you can oc. write it via "kwriteconfig --file khotkeysrc --group <group> --key <key> <value>, but i'm not sure whether that would be more comfortable (unless you need to roll out preconfigured settings on various workstations)


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar