116 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			116 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| {
 | |
|     "layer": "top", // Waybar at top layer
 | |
|     "position": "top", // Waybar at the bottom of your screen
 | |
|     "height": 26, // Waybar height
 | |
|     // "width": 1366, // Waybar width
 | |
|     // Choose the order of the modules
 | |
|     "modules-left": ["hyprland/workspaces"],
 | |
|     "modules-center": ["hyprland/window"],
 | |
|     "modules-right": ["tray","battery", "clock"],
 | |
|     "hyprland/workspaces": {
 | |
|         "disable-scroll": true,
 | |
|         "all-outputs": false,
 | |
|         "format": "{name}"
 | |
|         },
 | |
|     
 | |
|     "tray": {
 | |
|         "icon-size": 20,
 | |
|         "spacing": 10
 | |
|     },
 | |
|     "clock": {
 | |
|         "format": "{:%I:%M}",
 | |
|         "format-alt": "{:%m.%d.%Y}",
 | |
|         "tooltip-format": "<tt><small>{calendar}</small></tt>",
 | |
|         "calendar": {
 | |
|             "mode"          : "year",
 | |
|             "mode-mon-col"  : 3,
 | |
|             "on-scroll"     : 1,
 | |
|             "on-click-right": "mode",
 | |
|             "format": {
 | |
|                 "months":     "<span color='#ffead3'><b>{}</b></span>",
 | |
|                 "days":       "<span color='#ecc6d9'><b>{}</b></span>",
 | |
|                 "weekdays":   "<span color='#ffcc66'><b>{}</b></span>",
 | |
|                 "today":      "<span color='#80f59b'><b><u>{}</u></b></span>"
 | |
|             }
 | |
|         },
 | |
|         "actions": {
 | |
|             "on-click-right": "mode"
 | |
|         }
 | |
|     },
 | |
|     "cpu": {
 | |
|         "format": "{usage}% "
 | |
|     },
 | |
|     "memory": {
 | |
|         "format": "{}% ",
 | |
|         "tooltip-format": "{used:0.1f}G/{total:0.1f}G"
 | |
|     },
 | |
|     "battery": {
 | |
|         "bat": "BAT1",
 | |
|         "states": {
 | |
|             "good": 85,
 | |
|             "warning": 25,
 | |
|             "critical": 15
 | |
|         },
 | |
|         "format": "{icon}",
 | |
|         "format-charging": "",
 | |
|         // "format": "{capacity}% {icon}",
 | |
|         // "format-charging": "{capacity}%  ",
 | |
|         // "format-plugged": "{capacity}%  ",
 | |
|         //"format-good": "", // An empty format will hide the module
 | |
|         // "format-full": "",
 | |
|         "format-icons": ["", "", "", "", ""]
 | |
|     },
 | |
|     "network": {
 | |
|         // "interface": "wlp2s0", // (Optional) To force the use of this interface
 | |
|         // "format-wifi": "{essid} ({signalStrength}%) ",
 | |
|         "format-wifi": "({signalStrength}%)",
 | |
|         "format-alt": "{ipaddr}/{cidr}",
 | |
|         "tooltip-format": "{ipaddr}/{cidr}",
 | |
|         "format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
 | |
|         "format-disconnected": "Disconnected ⚠"
 | |
|     },
 | |
|     "pulseaudio": {
 | |
|         //"scroll-step": 1,
 | |
|         "format": "{volume}% {icon}",
 | |
|         "format-bluetooth": "{volume}% {icon}",
 | |
|         "format-muted": "",
 | |
|         "format-icons": {
 | |
|             "headphones": "",
 | |
|             "handsfree": "",
 | |
|             "headset": "",
 | |
|             "phone": "",
 | |
|             "portable": "",
 | |
|             "car": "",
 | |
|             "default": ["", ""]
 | |
|         },
 | |
|         "on-click": "pavucontrol"
 | |
|     },
 | |
|     "custom/spotify": {
 | |
|         "format": "{}",
 | |
|         "max-length": 40,
 | |
|         "interval": 10, // Remove this if your script is endless and write in loop
 | |
|         "exec": "$HOME/.config/waybar/mediaplayer.sh 2> /dev/null", // Script in resources folder
 | |
|         "exec-if": "pgrep spotify"
 | |
|     },
 | |
|     "custom/notification": {
 | |
|         "tooltip": false,
 | |
|         "format": "{icon}",
 | |
|         "format-icons": {
 | |
|           "notification": "<span foreground='red'><sup></sup></span>",
 | |
|           "none": "",
 | |
|           "dnd-notification": "<span foreground='red'><sup></sup></span>",
 | |
|           "dnd-none": "",
 | |
|           "inhibited-notification": "<span foreground='red'><sup></sup></span>",
 | |
|           "inhibited-none": "",
 | |
|           "dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
 | |
|           "dnd-inhibited-none": ""
 | |
|         },
 | |
|         "return-type": "json",
 | |
|         "exec-if": "which swaync-client",
 | |
|         "exec": "swaync-client -swb",
 | |
|         "on-click": "swaync-client -t -sw",
 | |
|         "on-click-right": "swaync-client -d -sw",
 | |
|         "escape": true
 | |
|       }
 | |
| }
 |