pushed uptime to polybar

This commit is contained in:
spinach 2023-03-08 13:21:06 -05:00
parent 785063c169
commit d43e189bcc
2 changed files with 10 additions and 2 deletions

View File

@ -38,7 +38,7 @@ font-0 = Hack Nerd Font:size=10;2
height = 14pt
; modules
modules-left = xworkspaces weather-thinkpad
modules-right = battery pulseaudio memory cpu wlan seafile calendar-sync bg-selector date-tp powermenu
modules-right = battery pulseaudio memory cpu wlan uptime seafile calendar-sync bg-selector date-tp powermenu
[bar/desktop-bar]
; desktop bar config
@ -285,5 +285,13 @@ click-left = i3-scratchpad.sh scratch st -n scratch -e quotes -rl
; right click is daily quote
click-right = i3-scratchpad.sh scratch st -n scratch -e quotes -dl
[module/uptime]
type = custom/script
interval = 30
format-prefix = "UP "
format-prefix-foreground = ${colors.primary}
exec = display_uptime
[settings]
screenchange-reload = true

View File

@ -36,7 +36,7 @@ set -g clock-mode-colour white
# status config
set -g status-interval 10
set -g status-style "bg=black, fg=brightWhite"
set -g status-right "#(display_uptime) | %a, %b %d %l:%M %P "
set -g status-right "%a, %b %d %l:%M %P "
set -g status-right-length 100
set -g status-left ""