feat: waybar - start via systemd, update config

This commit is contained in:
Ryan Yin
2025-06-01 20:42:45 +08:00
parent d8ba9671fc
commit c6113d6f28
3 changed files with 21 additions and 18 deletions

View File

@@ -1,5 +1,4 @@
#-- Startup ----------------------------------------------------
exec-once = waybar --bar main-bar --log-level error
## Fix anyrun
## https://github.com/anyrun-org/anyrun/issues/153

View File

@@ -43,11 +43,18 @@
"format-alt": " {:%a %b %d, %G}",
},
"cpu": {
"format": "\udb80\udf5b {usage}%",
"format": "CPU {usage}%",
"interval": 1,
"on-click-middle": "foot btop",
"on-click-right": "foot btop",
},
"memory": {
"format": "MEM {percentage}%",
"interval": 1,
"states": {
"warning": 85,
},
},
"custom/launcher": {
"format": "\uf313 ",
"on-click": "anyrun",
@@ -68,13 +75,6 @@
},
"tooltip": false,
},
"memory": {
"format": "\udb83\udee0 {percentage}%",
"interval": 1,
"states": {
"warning": 85,
},
},
"custom/playerctl": {
"format": "{icon} <span>{}</span>",
"return-type": "json",
@@ -90,14 +90,15 @@
},
"network": {
"interval": 5,
//"interface": "wlan*", // (Optional) To force the use of this interface, set it for netspeed to work
"format-wifi": " {essid}",
"format-ethernet": " {ipaddr}/{cidr}",
"format-linked": " {ifname} (No IP)",
"format-disconnected": "睊 Disconnected",
"format-disabled": "睊 Disabled",
"format-alt": " {bandwidthUpBytes} |  {bandwidthDownBytes}",
"tooltip-format": " {ifname} via {gwaddr}",
"format": "{ifname}",
"format-wifi": " {essid} ({signalStrength}%) Up: {bandwidthUpBits} Down: {bandwidthDownBits}",
"format-ethernet": " {ifname} Up: {bandwidthUpBits} Down: {bandwidthDownBits}",
"format-disconnected": "Disconnected ⚠",
"tooltip-format": " {ifname} via {gwaddri}",
"tooltip-format-wifi": " {ifname} @ {essid}\nIP: {ipaddr}\nStrength: {signalStrength}%\nFreq: {frequency}MHz\nUp: {bandwidthUpBits} Down: {bandwidthDownBits}",
"tooltip-format-ethernet": " {ifname}\nIP: {ipaddr}\n up: {bandwidthUpBits} down: {bandwidthDownBits}",
"tooltip-format-disconnected": "Disconnected",
"max-length": 50,
"on-click-middle": "nm-connection-editor",
"on-click-right": "foot nmtui",
},

View File

@@ -19,7 +19,10 @@ in {
};
# status bar
programs.waybar.enable = true;
programs.waybar = {
enable = true;
systemd.enable = true;
};
# screen locker
programs.hyprlock.enable = true;