Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Give KDE Plasma same F4 shortcut behavior -> Close active window or gimme logout window
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