Waybar: Cleanup

This commit is contained in:
Tobias Manske 2023-08-27 15:22:06 +02:00
parent 8276cf83b4
commit 68f3460ab8
Signed by: tobias
GPG Key ID: 9164B527694A0709
2 changed files with 9 additions and 3 deletions

View File

@ -7,9 +7,9 @@
"spacing": 4, // Gaps between modules (4px)
"output": "${PRIMARY_DISPLAY}",
// Choose the order of the modules
"modules-left": ["wlr/workspaces", "hyprland/submap", "custom/wifionice", "custom/spotify"],
"modules-center": ["hyprland/window", "custom/dunst"],
"modules-right": ["idle_inhibitor", "pulseaudio", "custom/network", "cpu", "memory", "temperature", "backlight", "battery", "clock", "tray"],
"modules-left": ["wlr/workspaces", "hyprland/window"],
"modules-center": ["custom/inhibit", "idle_inhibitor", "custom/dunst"],
"modules-right": ["hyprland/submap", "custom/wifionice", "custom/spotify", "pulseaudio", "custom/network", "cpu", "memory", "temperature", "backlight", "battery", "clock", "tray"],
// Modules configuration
"wlr/workspaces": {
"disable-scroll": false,
@ -46,6 +46,10 @@
"on-scroll-up": "playerctl next",
"on-scroll-down": "playerctl previous"
},
"custom/inhibit": {
"format": "☕",
"on-click": "systemd-inhibit --what=handle-lid-switch --who=waybar --why='Inhibiting suspend' --mode=block sleep 120 & notify-send 'Inhibiting suspend' 'Waybar will prevent the system from suspending for 2 minutes'"
},
"custom/dunst": {
"exec": "~/.config/waybar/scripts/dunst.sh",
"return-type": "json",

View File

@ -94,6 +94,8 @@ button:hover {
#temperature,
#backlight,
#custom-network,
#custom-inhibit,
#custom-dunst,
#pulseaudio,
#wireplumber,
#custom-media,