Waybar: Cleanup
This commit is contained in:
		@@ -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",
 | 
			
		||||
 
 | 
			
		||||
@@ -94,6 +94,8 @@ button:hover {
 | 
			
		||||
#temperature,
 | 
			
		||||
#backlight,
 | 
			
		||||
#custom-network,
 | 
			
		||||
#custom-inhibit,
 | 
			
		||||
#custom-dunst,
 | 
			
		||||
#pulseaudio,
 | 
			
		||||
#wireplumber,
 | 
			
		||||
#custom-media,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user