dotfiles/.config/waybar/config
histalek a7b2dc7ac6
waybar: Remove states for package modules
States are percentage based and trigger once the percentage falls below
the threshold. So these are useless for my package modules.
2022-04-26 10:07:50 +02:00

158 lines
3.2 KiB
Text

{
"layer": "top",
"position": "top",
"height": 31,
"modules-left": [
"sway/mode",
"sway/workspaces",
"custom/arrowworkspaces",
"sway/window"
],
"modules-right": [
"custom/arrowtray",
"tray",
"custom/arrowpackages",
"custom/flatpak",
"custom/packages",
"custom/arrowcpu",
"cpu",
"custom/arrowmemory",
"memory",
"custom/arrownetwork",
"network",
"custom/arrowpulseaudio",
"pulseaudio",
"custom/arrowdate",
"clock#date",
"custom/arrowtime",
"clock#time",
],
"sway/mode": {
"format": "<span style='italic'> {}</span>", // Icon: expand-arrows-alt
"tooltip": false,
},
"sway/workspaces": {
"disable-scroll": true,
"disable-click": true,
"format-icons": {
"urgent": "",
"focused": "",
"default": "",
},
},
"sway/window": {
"format": "{}",
"max-length": 50,
"tooltip": false,
},
"tray": {
"icon-size": 20,
"spacing": 10,
},
"clock#date": {
"interval": 60,
"format": "{:%a %e.%b.%Y}",
"tooltip": false,
},
"clock#time": {
"interval": 10,
"format": "{:%R}",
"tooltip": false,
},
"cpu": {
"interval": 5,
"format": "<span rise='-3000' size='xx-large'></span> {usage}%",
"tooltip": false,
"states": {
"warning": 70,
"critical": 90
},
},
"memory": {
"interval": 5,
"format": "<span rise='-3000' size='xx-large'></span> {}%",
"tooltip": false,
"states": {
"warning": 70,
"critical": 90
},
},
"network": {
"format-wifi": " {essid}",
"format-disconnected": "⚠ Disconnected",
"tooltip": false,
},
"pulseaudio": {
"format": "{volume}% <span rise='-3000' size='xx-large'>{icon}</span> {format_source}",
"format-source": "{volume}%",
"format-muted": " {format-source}",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"default": ["", ""],
},
"tooltip": false,
},
"custom/packages": {
"format": "<span rise='-3000' size='xx-large'></span> {}",
"interval": 3600,
"exec": "checkupdates | wc -l",
"exec-if": "exit 0",
"on-click": "exit 0",
"signal": 8,
"tooltip": false,
},
"custom/flatpak": {
"format": "<span rise='-3000' size='xx-large'></span> {}",
"interval": 3600,
"exec": "flatpak remote-ls --updates | wc -l",
"exec-if": "exit 0",
"on-click": "exit 0",
"signal": 8,
"tooltip": false,
},
"custom/arrowtime": {
"format": "",
"tooltip": false
},
"custom/arrowdate": {
"format": "",
"tooltip": false
},
"custom/arrowpulseaudio": {
"format": "",
"tooltip": false
},
"custom/arrownetwork": {
"format": "",
"tooltip": false
},
"custom/arrowmemory": {
"format": "",
"tooltip": false
},
"custom/arrowcpu": {
"format": "",
"tooltip": false
},
"custom/arrowpackages": {
"format": "",
"tooltip": false
},
"custom/arrowtray": {
"format": "",
"tooltip": false
},
"custom/arrowworkspaces": {
"format": "",
"tooltip": false
},
}