add logout option to waybar

This commit is contained in:
2026-01-25 17:45:08 +01:00
parent 6013417cd5
commit c3e6cd99a0
4 changed files with 12 additions and 2 deletions

View File

@@ -233,13 +233,14 @@
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
},
"custom/power": {
"format": "⏻ ",
"format": "⏻",
"tooltip": false,
"menu": "on-click",
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
"menu-actions": {
"shutdown": "shutdown",
"reboot": "reboot",
"logout": "loginctl terminate-session \"$XDG_SESSION_ID\"",
"suspend": "systemctl suspend",
"hibernate": "systemctl hibernate"
}