Created
May 3, 2022 02:16
-
-
Save erm3nda/6eae0d5967cf0e36bf835692c1216937 to your computer and use it in GitHub Desktop.
Give KDE Plasma same F4 shortcut behavior -> Close active window or gimme logout window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
xdotool getwindowfocus getwindowname | \ | |
grep "Plasma" && \ | |
qdbus org.kde.ksmserver /KSMServer logout 1 0 1 || \ | |
xdotool getwindowfocus windowclose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment