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 ---------------------------------------------------- #-- Startup ----------------------------------------------------
exec-once = waybar --bar main-bar --log-level error
## Fix anyrun ## Fix anyrun
## https://github.com/anyrun-org/anyrun/issues/153 ## https://github.com/anyrun-org/anyrun/issues/153

View File

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

View File

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