generation 488 25.11.20250714.62e0f05
This commit is contained in:
@@ -65,7 +65,7 @@ foreground = ${colors.foreground}
|
||||
modules-left = date battery cpu memory coretemp pulseaudio-control network tailscale bluetooth cmus
|
||||
modules-center = title
|
||||
; modules-right = pomodoro xkeyboard bspwm
|
||||
modules-right = xkeyboard bspwm
|
||||
modules-right = pomodoro xkeyboard bspwm
|
||||
|
||||
dim-value = 1.0
|
||||
|
||||
|
||||
@@ -43,6 +43,29 @@
|
||||
grep = "/run/current-system/sw/bin/grep";
|
||||
awk = "/run/current-system/sw/bin/awk";
|
||||
|
||||
pctl = ''
|
||||
[module/pomodoro]
|
||||
type = custom/script
|
||||
tail = true
|
||||
interval = 5
|
||||
format = <label>
|
||||
exec = "sh /etc/profiles/per-user/synchronous/bin/pomodoro"
|
||||
label-foreground = ${colors.foreground}
|
||||
format-foreground = ${colors.theme}
|
||||
'';
|
||||
|
||||
cmusctl = ''
|
||||
[module/cmus]
|
||||
type = custom/script
|
||||
tail = true
|
||||
format =♫ <label>
|
||||
interval = 5
|
||||
exec-if = "sh /etc/profiles/per-user/synchronous/bin/cmus-status 2> /dev/null | rg -v 'NO_MUSIC'"
|
||||
exec = "sh /etc/profiles/per-user/synchronous/bin/cmus-status 2> /dev/null | rg -v 'NO_MUSIC'"
|
||||
label-foreground = ${colors.foreground}
|
||||
format-foreground = ${colors.theme}
|
||||
'';
|
||||
|
||||
# networkingDevice = builtins.exec "ip route | grep default | awk '{print $5}'";
|
||||
# networkingDevice = pkgs.runCommand "get-network-device" {} ''
|
||||
# ${ip} route | ${grep} default | ${awk} '{print $5}' > $out
|
||||
@@ -109,7 +132,7 @@ in {
|
||||
enable = true;
|
||||
package = mypolybar;
|
||||
config = ./config.ini;
|
||||
extraConfig = bctl + internets + mon + tctl;
|
||||
extraConfig = bctl + internets + mon + tctl + pctl + cmusctl;
|
||||
# my savior: https://www.reddit.com/r/NixOS/comments/v8ikwq/polybar_doesnt_start_at_launch/
|
||||
script = ''
|
||||
# echo "none"
|
||||
|
||||
Reference in New Issue
Block a user