waybar: Make alt formats consistent
Every notification icon (except wifi) has a more detailed alternative display format which can be toggle with right click. By default only the icons are displayed.
This commit is contained in:
parent
7f35be07f7
commit
6002c49a16
2 changed files with 44 additions and 23 deletions
|
|
@ -5,7 +5,8 @@
|
||||||
"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": "{} {icon}",
|
||||||
|
"format-alt-click": "click-right",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"default": ""
|
"default": ""
|
||||||
},
|
},
|
||||||
|
|
@ -17,17 +18,21 @@
|
||||||
"backlight": {
|
"backlight": {
|
||||||
"device": "intel_backlight",
|
"device": "intel_backlight",
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
|
"format-alt": "{percent}% {icon}",
|
||||||
|
"format-alt-click": "click-right",
|
||||||
"format-icons": ["", "", "", "", "", "", "", "", "", "", ""],
|
"format-icons": ["", "", "", "", "", "", "", "", "", "", ""],
|
||||||
"tooltip-format": "{percent}% {icon}",
|
"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%-"
|
||||||
},
|
},
|
||||||
"battery": {
|
"battery": {
|
||||||
"format": "{capacity}% {icon}",
|
"format": "{icon}",
|
||||||
|
"format-warning": "{capacity}% {icon}",
|
||||||
|
"format-critical": "{capacity}% {icon}",
|
||||||
"format-alt":"{capacity}% ({time}) {icon}",
|
"format-alt":"{capacity}% ({time}) {icon}",
|
||||||
"format-alt-click": "click-right",
|
"format-alt-click": "click-right",
|
||||||
"format-icons": ["", "", "", "", ""],
|
"format-icons": ["", "", "", "", ""],
|
||||||
"interval": 60,
|
"interval": 10,
|
||||||
"states": {
|
"states": {
|
||||||
"warning": 30,
|
"warning": 30,
|
||||||
"critical": 15
|
"critical": 15
|
||||||
|
|
@ -41,6 +46,8 @@
|
||||||
"cpu": {
|
"cpu": {
|
||||||
"interval": 10,
|
"interval": 10,
|
||||||
"format": "",
|
"format": "",
|
||||||
|
"format-alt": "{usage}% ",
|
||||||
|
"format-alt-click": "click-right",
|
||||||
"max-length": 10,
|
"max-length": 10,
|
||||||
"states": {
|
"states": {
|
||||||
"warning": 50,
|
"warning": 50,
|
||||||
|
|
@ -54,7 +61,7 @@
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"interval": 300,
|
"interval": 300,
|
||||||
"on-click": "$TERMINAL start --class float ikhal",
|
"on-click": "$TERMINAL start --class float ikhal",
|
||||||
"format": "{icon}{}",
|
"format": "{icon}{0}", // issue tracked here https://github.com/Alexays/Waybar/issues/3623
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"event": " ",
|
"event": " ",
|
||||||
"no-event": "",
|
"no-event": "",
|
||||||
|
|
@ -64,9 +71,9 @@
|
||||||
"interval": 30,
|
"interval": 30,
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"format-alt": "{used:0.1f}G/{total:0.1f}G ",
|
"format-alt": "{used:0.1f}G/{total:0.1f}G ",
|
||||||
|
"format-alt-click": "click-right",
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"tooltip-format": "{used:0.1f}G/{total:0.1f}G \nUsed: {percentage} %\nSwap: {swapPercentage} %",
|
"tooltip-format": "{used:0.1f}G/{total:0.1f}G \nUsed: {percentage} %\nSwap: {swapPercentage} %",
|
||||||
"format-alt-click": "click-right",
|
|
||||||
"format-icons": ["", "", "", "", "", "", "", ""],
|
"format-icons": ["", "", "", "", "", "", "", ""],
|
||||||
"max-length": 10
|
"max-length": 10
|
||||||
},
|
},
|
||||||
|
|
@ -96,7 +103,7 @@
|
||||||
},
|
},
|
||||||
"custom/media": {
|
"custom/media": {
|
||||||
"format": "{icon}{}",
|
"format": "{icon}{}",
|
||||||
"format-alt-click": "right",
|
"format-alt-click": "click-right",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"Playing": " ",
|
"Playing": " ",
|
||||||
|
|
@ -111,9 +118,6 @@
|
||||||
},
|
},
|
||||||
"network": {
|
"network": {
|
||||||
"format": "{ifname}",
|
"format": "{ifname}",
|
||||||
// "format-wifi": "{signalStrength}% ",
|
|
||||||
// "format-ethernet": "{ipaddr}/{cidr} ",
|
|
||||||
// shortformat:
|
|
||||||
"format-wifi": "",
|
"format-wifi": "",
|
||||||
"format-ethernet": " ",
|
"format-ethernet": " ",
|
||||||
"format-disconnected": " ",
|
"format-disconnected": " ",
|
||||||
|
|
@ -126,9 +130,11 @@
|
||||||
// "on-click-right": "sudo rfkill toggle wlan"
|
// "on-click-right": "sudo rfkill toggle wlan"
|
||||||
},
|
},
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
"format": "{volume}% {icon}",
|
"format": "{icon}",
|
||||||
|
"format-alt": "{volume}% {icon}",
|
||||||
"format-bluetooth": "{volume}% {icon} ",
|
"format-bluetooth": "{volume}% {icon} ",
|
||||||
"format-muted": "",
|
"format-alt-click": "click-right",
|
||||||
|
"format-muted": "",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"headphone": "",
|
"headphone": "",
|
||||||
"hands-free": "",
|
"hands-free": "",
|
||||||
|
|
@ -136,22 +142,24 @@
|
||||||
"phone": "",
|
"phone": "",
|
||||||
"portable": "",
|
"portable": "",
|
||||||
"car": "",
|
"car": "",
|
||||||
"default": ["", ""]
|
"default": ["", "", ""]
|
||||||
},
|
},
|
||||||
"scroll-step": 1,
|
"scroll-step": 2,
|
||||||
"on-click": "$TERMINAL start --class float pulsemixer",
|
"on-click": "$TERMINAL start --class float pulsemixer",
|
||||||
"on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +1%",
|
"on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +1%",
|
||||||
"on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -1%"
|
"on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -1%"
|
||||||
},
|
},
|
||||||
"river/tags": {
|
"river/tags": {
|
||||||
"num-tags": 10,
|
"num-tags": 10,
|
||||||
"tag-labels": [ "", "", "", "", "", "", "", "", "", "" ]
|
"tag-labels": [ "", "", "", "", "", "", "", "", "", "" ],
|
||||||
},
|
},
|
||||||
"river/mode": {
|
"river/mode": {
|
||||||
"format": "{} ",
|
"format": "{} ",
|
||||||
},
|
},
|
||||||
"river/window": {
|
"river/window": {
|
||||||
"format": " {}",
|
"format": " ",
|
||||||
|
"format-alt": " {}",
|
||||||
|
"format-alt-click": "click-right",
|
||||||
"max-length": 70
|
"max-length": 70
|
||||||
},
|
},
|
||||||
"temperature": {
|
"temperature": {
|
||||||
|
|
@ -161,7 +169,7 @@
|
||||||
// "format-critical": "{temperatureC}° ",
|
// "format-critical": "{temperatureC}° ",
|
||||||
"format": "",
|
"format": "",
|
||||||
"format-alt": "{temperatureC}° ",
|
"format-alt": "{temperatureC}° ",
|
||||||
"format-alt-click": "right",
|
"format-alt-click": "click-right",
|
||||||
"on-click": "$TERMINAL start --class float watch sensors"
|
"on-click": "$TERMINAL start --class float watch sensors"
|
||||||
},
|
},
|
||||||
"tray": {
|
"tray": {
|
||||||
|
|
@ -180,18 +188,20 @@
|
||||||
"pia": "",
|
"pia": "",
|
||||||
"netbird": ""
|
"netbird": ""
|
||||||
},
|
},
|
||||||
|
"format-alt": "{} {icon}",
|
||||||
|
"format-alt-click": "click-right",
|
||||||
"exec": "~/.config/waybar/modules/wireguard json",
|
"exec": "~/.config/waybar/modules/wireguard json",
|
||||||
"exec-if": "command -v nmcli >/dev/null 2>&1",
|
"exec-if": "command -v nmcli >/dev/null 2>&1",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"signal": 6,
|
"signal": 6,
|
||||||
"interval": 60,
|
"interval": 20,
|
||||||
},
|
},
|
||||||
"custom/vidl": {
|
"custom/vidl": {
|
||||||
"format": "",
|
"format": "",
|
||||||
"format-alt": "{} ",
|
"format-alt": " {}",
|
||||||
"format-alt-click": "right",
|
"format-alt-click": "click-right",
|
||||||
"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 ] && [ $(wc -l ~/.local/share/vidl/vidl_queue | cut -d' ' -f1) -gt 0 ]",
|
"exec-if": "[ $(vidl -p) = 'running' ] && [ $(vidl -P) -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"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,13 @@ window#waybar.hidden {
|
||||||
color: @base0C;
|
color: @base0C;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* give coherent background */
|
||||||
|
.modules-right {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
background-color: @base01;
|
||||||
|
}
|
||||||
|
|
||||||
#clock,
|
#clock,
|
||||||
#battery,
|
#battery,
|
||||||
#cpu,
|
#cpu,
|
||||||
|
|
@ -64,7 +71,7 @@ window#waybar.hidden {
|
||||||
#custom-events,
|
#custom-events,
|
||||||
#custom-vidl,
|
#custom-vidl,
|
||||||
#custom-media {
|
#custom-media {
|
||||||
padding: 0 10px;
|
padding: 0 5px;
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
color: @base05;
|
color: @base05;
|
||||||
background-color: @base01;
|
background-color: @base01;
|
||||||
|
|
@ -84,6 +91,10 @@ window#waybar.hidden {
|
||||||
background-color: @base02;
|
background-color: @base02;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#mode.interact_float {
|
||||||
|
background-color: @base0D;
|
||||||
|
}
|
||||||
|
|
||||||
/* Mark active output through highlighted window background */
|
/* Mark active output through highlighted window background */
|
||||||
#window {
|
#window {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue