waybar: Declutter status icons

Slightly declutter the status icons: Only display an icon which shows
the rough state until you hover over or activate alternative modes
(rightclick on respective icon) which show more detail.
This commit is contained in:
Marty Oehme 2025-01-21 11:31:29 +01:00
parent 1ed9e44ffa
commit 7f35be07f7
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -4,7 +4,7 @@
"modules-center": ["clock", "custom/media"],
"modules-right": ["river/mode", "custom/wireguard", "custom/archupdates", "pulseaudio", "backlight", "network", "cpu", "memory", "temperature", "battery", "tray"],
"custom/archupdates": {
"format": "{} {icon}",
"format": "{icon}",
"format-alt-click": "right",
"format-icons": {
"default": ""
@ -16,8 +16,9 @@
},
"backlight": {
"device": "intel_backlight",
"format": "{percent}% {icon}",
"format-icons": ["滋", "", "", ""],
"format": "{icon}",
"format-icons": ["󰛩", "󱩎", "󱩏", "󱩐", "󱩑", "󱩒", "󱩓", "󱩔", "󱩕", "󱩖", "󰛨"],
"tooltip-format": "{percent}% {icon}",
"on-scroll-up": "brightnessctl set 1%+",
"on-scroll-down": "brightnessctl set 1%-"
},
@ -39,14 +40,13 @@
},
"cpu": {
"interval": 10,
"format": "{usage}% ",
"format": "",
"max-length": 10,
"states": {
"warning": 50,
"critical": 80
},
"on-click": "$TERMINAL start --class float top",
"on-click-right": "$TERMINAL start --class float glances"
"on-click": "$TERMINAL start --class float htop"
},
"custom/events": {
"exec-if": "command -v khal >/dev/null 2>&1",
@ -62,9 +62,12 @@
},
"memory": {
"interval": 30,
"format": "{avail:0.1f}G ",
"format": "{icon}",
"format-alt": "{used:0.1f}G/{total:0.1f}G ",
"tooltip": true,
"tooltip-format": "{used:0.1f}G/{total:0.1f}G \nUsed: {percentage} %\nSwap: {swapPercentage} %",
"format-alt-click": "click-right",
"format-icons": ["󰪞", "󰪟", "󰪠", "󰪡", "󰪢", "󰪣", "󰪤", "󰪥"],
"max-length": 10
},
"mpd": {
@ -108,9 +111,12 @@
},
"network": {
"format": "{ifname}",
"format-wifi": "{signalStrength}% ",
"format-ethernet": "{ipaddr}/{cidr} 󰈀",
"format-disconnected": "󰖪",
// "format-wifi": "{signalStrength}% ",
// "format-ethernet": "{ipaddr}/{cidr} 󰈀",
// shortformat:
"format-wifi": " ",
"format-ethernet": "󰈀 ",
"format-disconnected": "󰖪 ",
"tooltip-format": "{ifname} via {gwaddr} 󰈁",
"tooltip-format-wifi": "{essid}: {bandwidthDownBits}-{bandwidthUpBits} ({signalStrength}%)  {ifname}",
"tooltip-format-ethernet": "{ifname} 󰈀",
@ -153,7 +159,9 @@
"hwmon-path": "/sys/class/hwmon/hwmon5/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}° ",
"format": "{temperatureC}° ",
"format": "",
"format-alt": "{temperatureC}° ",
"format-alt-click": "right",
"on-click": "$TERMINAL start --class float watch sensors"
},
"tray": {
@ -179,13 +187,11 @@
"interval": 60,
},
"custom/vidl": {
"format": "{icon}{}",
"format": "",
"format-alt": "{}  ",
"format-alt-click": "right",
"format-icons": {
"default": " "
},
"exec": "wc -l ~/.local/share/vidl/vidl_queue | cut -d' ' -f1",
"exec-if": "[ -f ~/.local/share/vidl/vidl_queue ]",
"exec-if": "[ -f ~/.local/share/vidl/vidl_queue ] && [ $(wc -l ~/.local/share/vidl/vidl_queue | cut -d' ' -f1) -gt 0 ]",
"interval": 5,
"on-click": "$TERMINAL start --class float nvim ~/.local/share/vidl/vidl_queue"
},