Added Shutdown/Suspend/Restart to Waybar

This commit is contained in:
Urs Rudolph
2025-11-30 21:06:16 +01:00
parent 64c6ca1261
commit 9f461cc0d2

View File

@@ -2,7 +2,7 @@
"position": "top",
"modules-left": ["hyprland/workspaces"],
"modules-center": ["hyprland/window"],
"modules-right": ["network", "pulseaudio", "battery", "clock"],
"modules-right": ["network", "pulseaudio", "battery", "clock","custom/power"],
"clock": {
"format": "<span foreground='#f5c2e7'> </span>{:%a %d %H:%M}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
@@ -36,5 +36,17 @@
"default": ["", "", " "]
},
"on-click": "pavucontrol"
},
"custom/power": {
"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",
"suspend": "systemctl suspend",
"hibernate": "systemctl hibernate"
}
}
}