78 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			78 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
{
 | 
						|
    "layer": "top", // Waybar at top layer
 | 
						|
    "height": 28, // Waybar height (to be removed for auto height)
 | 
						|
    "spacing": 4, // Gaps between modules (4px)
 | 
						|
    "output": "eDP-1",
 | 
						|
    "modules-left": ["hyprland/window"],
 | 
						|
    "modules-center": ["hyprland/workspaces"],
 | 
						|
    "modules-right": ["tray", "wireplumber", "cpu#cpu2", "cpu", "memory", "custom/updates", "temperature", "battery", "clock"],
 | 
						|
    "wireplumber": {
 | 
						|
        "format": "{icon}   {volume}%",
 | 
						|
        "format-muted": "",
 | 
						|
        "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
 | 
						|
        "format-icons": ["", "", ""]
 | 
						|
    },
 | 
						|
    "hyprland/workspaces": {
 | 
						|
        "disable-scroll": true,
 | 
						|
        "all-outputs": true,
 | 
						|
        "warp-on-scroll": false,
 | 
						|
        "format": "{name}"
 | 
						|
    },
 | 
						|
    "hyprland/window": {
 | 
						|
        "max-length": 50,
 | 
						|
    },
 | 
						|
    "tray": {
 | 
						|
        // "icon-size": 21,
 | 
						|
        "spacing": 10
 | 
						|
    },
 | 
						|
    "clock": {
 | 
						|
        "timezone": "Europe/Brussels",
 | 
						|
        "format": "{:%H:%M:%S}",
 | 
						|
        "interval": 1,
 | 
						|
        "format-alt": "{:%Y-%m-%d}"
 | 
						|
 | 
						|
    },
 | 
						|
    "cpu": {
 | 
						|
        "format": "{max_frequency}GHz",
 | 
						|
        "tooltip": false,
 | 
						|
        "interval": 5
 | 
						|
    },
 | 
						|
    "cpu#cpu2": {
 | 
						|
        "format": "CPU {usage}%",
 | 
						|
        "tooltip": false,
 | 
						|
        "interval": 5
 | 
						|
    },
 | 
						|
    "custom/updates": {
 | 
						|
        "exec": "bash -c \"checkupdates | wc -l\"",
 | 
						|
        "on-click": "alacritty -e bash -c \"yay ; echo '\nDone, press any key to exit...' ; read\"",
 | 
						|
        "interval": 60,
 | 
						|
        "format": "{}   ",
 | 
						|
    },
 | 
						|
    "memory": {
 | 
						|
        "interval": 5,
 | 
						|
        "format": "{used:0.2f}G"
 | 
						|
    },
 | 
						|
    "temperature": {
 | 
						|
        "thermal-zone": 6,
 | 
						|
        // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
 | 
						|
        "interval": 5,
 | 
						|
        "critical-threshold": 80,
 | 
						|
        // "format-critical": "{temperatureC}°C {icon}",
 | 
						|
        "format": "{temperatureC}°C",
 | 
						|
        // "format-icons": ["", "", ""]
 | 
						|
    },
 | 
						|
    "battery": {
 | 
						|
        "states": {
 | 
						|
            // "good": 95,
 | 
						|
            "warning": 30,
 | 
						|
            "critical": 15
 | 
						|
        },
 | 
						|
        "format": "{icon}",
 | 
						|
        "format-plugged": "{capacity}% ",
 | 
						|
        "format-alt": "{capacity}% {time} {icon}",
 | 
						|
        // "format-good": "", // An empty format will hide the module
 | 
						|
        // "format-full": "",
 | 
						|
        "format-icons": [" ", " ", " ", " ", " "]
 | 
						|
    },
 | 
						|
}
 |