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