73 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			73 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
{
 | 
						|
    "layer": "top", // Waybar at top layer
 | 
						|
    // "position": "bottom", // Waybar at the bottom of your screen
 | 
						|
    // "height": 30, // Waybar height
 | 
						|
    // "width": 1280, // Waybar width
 | 
						|
    // Choose the order of the modules
 | 
						|
    "modules-left": ["sway/workspaces", "custom/spotify"],
 | 
						|
    "modules-center": ["sway/window"],
 | 
						|
    "modules-right": ["pulseaudio", "network", "cpu", "memory", "battery", "battery#bat2", "clock", "tray"],
 | 
						|
    // Modules configuration
 | 
						|
    // "sway/workspaces": {
 | 
						|
    //     "disable-scroll": true,
 | 
						|
    //     "all-outputs": true,
 | 
						|
    //     "format": "{name}: {icon}",
 | 
						|
    //     "format-icons": {
 | 
						|
    //         "1": "",
 | 
						|
    //         "2": "",
 | 
						|
    //         "3": "",
 | 
						|
    //         "4": "",
 | 
						|
    //         "5": "",
 | 
						|
    //         "urgent": "",
 | 
						|
    //         "focused": "",
 | 
						|
    //         "default": ""
 | 
						|
    //     }
 | 
						|
    // },
 | 
						|
    "sway/window": {
 | 
						|
        "max-length": 50
 | 
						|
    },
 | 
						|
    "clock": {
 | 
						|
        "format-alt": "{:%Y-%m-%d}"
 | 
						|
    },
 | 
						|
    "cpu": {
 | 
						|
        "format": "{}% "
 | 
						|
    },
 | 
						|
    "memory": {
 | 
						|
        "format": "{}% "
 | 
						|
    },
 | 
						|
    "battery": {
 | 
						|
        "format": "{capacity}% {icon}",
 | 
						|
        "format-icons": ["", "", "", "", ""]
 | 
						|
    },
 | 
						|
    "battery#bat2": {
 | 
						|
        "bat": "BAT2"
 | 
						|
    },
 | 
						|
    "network": {
 | 
						|
        // "interface": "wlp2s0", // (Optional) To force the use of this interface
 | 
						|
        "format-wifi": "{essid} ({signalStrength}%) ",
 | 
						|
        "format-ethernet": "{ifname} ",
 | 
						|
        "format-disconnected": "Disconnected ⚠"
 | 
						|
    },
 | 
						|
    "pulseaudio": {
 | 
						|
        "format": "{volume}% {icon}",
 | 
						|
        "format-bluetooth": "{volume}% {icon}",
 | 
						|
        "format-muted": "",
 | 
						|
        "format-icons": {
 | 
						|
            "headphones": "",
 | 
						|
            "handsfree": "",
 | 
						|
            "headset": "",
 | 
						|
            "phone": "",
 | 
						|
            "portable": "",
 | 
						|
            "car": "",
 | 
						|
            "default": ["", ""]
 | 
						|
        }
 | 
						|
    },
 | 
						|
    "custom/spotify": {
 | 
						|
        "format": " {}",
 | 
						|
        "max-length": 40,
 | 
						|
        "interval": 30, // Remove this if your script is endless and write in loop
 | 
						|
        "exec": "$HOME/.config/waybar/mediaplayer.sh", // Script in resources folder
 | 
						|
        "exec-if": "pgrep spotify"
 | 
						|
    }
 | 
						|
}
 |