feat(waybar): better wifi, ethernet tooltips)
This commit is contained in:
parent
4972396c22
commit
7f428bf4fa
1 changed files with 7 additions and 5 deletions
|
|
@ -80,7 +80,7 @@ in
|
||||||
modules-center = [ "hyprland/window" ];
|
modules-center = [ "hyprland/window" ];
|
||||||
modules-right = [
|
modules-right = [
|
||||||
"tray"
|
"tray"
|
||||||
"hyprland/language"
|
"custom/keyboard"
|
||||||
"privacy"
|
"privacy"
|
||||||
"pulseaudio"
|
"pulseaudio"
|
||||||
"network"
|
"network"
|
||||||
|
|
@ -96,7 +96,9 @@ in
|
||||||
tooltip = true;
|
tooltip = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"hyprland/language" = {
|
"custom/keyboard" = {
|
||||||
|
exec = "hyprctl devices -j | jq -r '.keyboards[] | select(.main) | .active_keymap' 2>/dev/null || echo 'unknown'";
|
||||||
|
interval = 1;
|
||||||
format = "";
|
format = "";
|
||||||
tooltip = true;
|
tooltip = true;
|
||||||
tooltip-format = "Layout: {}";
|
tooltip-format = "Layout: {}";
|
||||||
|
|
@ -148,8 +150,8 @@ in
|
||||||
format-disabled = "";
|
format-disabled = "";
|
||||||
interval = 10;
|
interval = 10;
|
||||||
tooltip = true;
|
tooltip = true;
|
||||||
tooltip-format-wifi = "SSID: {essid}\nDown: {bandwidthDownBits}\nUp: {bandwidthUpBits}\nIP: {ipaddr}";
|
tooltip-format-wifi = "SSID: {essid}\nSignal: {signalStrength}%\nDownload: {bandwidthDownBits}\nUpload: {bandwidthUpBits}\nIP: {ipaddr}";
|
||||||
tooltip-format-ethernet = "{ifname} · {ipaddr}";
|
tooltip-format-ethernet = "Interface: {ifname}\nIP: {ipaddr}/{cidr}\nDownload: {bandwidthDownBits}\nUpload: {bandwidthUpBits}";
|
||||||
tooltip-format-disconnected = "Wireless LAN disconnected";
|
tooltip-format-disconnected = "Wireless LAN disconnected";
|
||||||
on-click = "rfkill toggle wlan";
|
on-click = "rfkill toggle wlan";
|
||||||
on-click-right = "ctl wifi pick";
|
on-click-right = "ctl wifi pick";
|
||||||
|
|
@ -216,7 +218,7 @@ in
|
||||||
transition: none;
|
transition: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#language,
|
#custom-keyboard,
|
||||||
#privacy,
|
#privacy,
|
||||||
#tray,
|
#tray,
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue