Waybar: Cleanup
This commit is contained in:
parent
8276cf83b4
commit
68f3460ab8
@ -7,9 +7,9 @@
|
|||||||
"spacing": 4, // Gaps between modules (4px)
|
"spacing": 4, // Gaps between modules (4px)
|
||||||
"output": "${PRIMARY_DISPLAY}",
|
"output": "${PRIMARY_DISPLAY}",
|
||||||
// Choose the order of the modules
|
// Choose the order of the modules
|
||||||
"modules-left": ["wlr/workspaces", "hyprland/submap", "custom/wifionice", "custom/spotify"],
|
"modules-left": ["wlr/workspaces", "hyprland/window"],
|
||||||
"modules-center": ["hyprland/window", "custom/dunst"],
|
"modules-center": ["custom/inhibit", "idle_inhibitor", "custom/dunst"],
|
||||||
"modules-right": ["idle_inhibitor", "pulseaudio", "custom/network", "cpu", "memory", "temperature", "backlight", "battery", "clock", "tray"],
|
"modules-right": ["hyprland/submap", "custom/wifionice", "custom/spotify", "pulseaudio", "custom/network", "cpu", "memory", "temperature", "backlight", "battery", "clock", "tray"],
|
||||||
// Modules configuration
|
// Modules configuration
|
||||||
"wlr/workspaces": {
|
"wlr/workspaces": {
|
||||||
"disable-scroll": false,
|
"disable-scroll": false,
|
||||||
@ -46,6 +46,10 @@
|
|||||||
"on-scroll-up": "playerctl next",
|
"on-scroll-up": "playerctl next",
|
||||||
"on-scroll-down": "playerctl previous"
|
"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": {
|
"custom/dunst": {
|
||||||
"exec": "~/.config/waybar/scripts/dunst.sh",
|
"exec": "~/.config/waybar/scripts/dunst.sh",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
|
@ -94,6 +94,8 @@ button:hover {
|
|||||||
#temperature,
|
#temperature,
|
||||||
#backlight,
|
#backlight,
|
||||||
#custom-network,
|
#custom-network,
|
||||||
|
#custom-inhibit,
|
||||||
|
#custom-dunst,
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
#wireplumber,
|
#wireplumber,
|
||||||
#custom-media,
|
#custom-media,
|
||||||
|
Loading…
Reference in New Issue
Block a user