Update polybar settings, mem module

This commit is contained in:
Shaun Reed 2020-05-03 01:51:13 -04:00
parent 24739df294
commit d7d0b1f93e
2 changed files with 173 additions and 25 deletions

View File

@ -0,0 +1,106 @@
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
left
left
left
left
left
left
scrollUp
scrollUp
scrollUp
scrollUp
scrollUp
scrollUp
scrollUp
scrollUp
scrollUp
left
left
right
left
left
left
left
left
left
right
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
scrollDown
left
right
right
left
left
left
left
left
left
left
right
left
right
right
right
left
middle
middle
middle
right
middle
middle
right
left
left
left
left
left
left
left
left
left
left
left
left
left
left
left
left
left
left
left
left
left
left
middle
right
left
left
left
right
right
left

View File

@ -70,7 +70,7 @@ font-1 = Inconsolata Nerd Font:size=12;3
font-2 = Noto Sans Mono:size=8;0 font-2 = Noto Sans Mono:size=8;0
; Modules ; Modules
modules-left = temp-cpu cpu memfree memory modules-left = temp-cpu cpu memory
modules-center = popup-utc network public-ip filesystem modules-center = popup-utc network public-ip filesystem
modules-right = vpn battery modules-right = vpn battery
@ -96,6 +96,15 @@ type = custom/script
exec = ~/.local/bin/i3scripts/popup-calendar exec = ~/.local/bin/i3scripts/popup-calendar
interval = 5 interval = 5
click-left = ~/.local/bin/i3scripts/popup-calendar --popup click-left = ~/.local/bin/i3scripts/popup-calendar --popup
click-right = ~/.local/bin/i3scripts/popup-calendar-local
; Local Date
;;;;;;;;;;;;;;;;;;;;;;;;;;
[module/date]
type = internal/date
date = %%{F#aaa}%Y-%m-%d%%{F-} %%{F#fff}%H:%M%%{F-}
date-alt = %%{F#aaa}%A, %d %B %Y %%{F#fff}%H:%M%%{F#666}:%%{F#fba922}%S%%{F-}
click-right = exec notify-send hi
; Weather ; Weather
;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;
@ -112,6 +121,19 @@ type = custom/script
exec = ~/.local/bin/i3scripts/info-hackspeed exec = ~/.local/bin/i3scripts/info-hackspeed
tail = true tail = true
; Polybar Break Timer
[module/breaktimer]
type = custom/script
format-prefix = " "
;format-foreground = ${colors.verdeclaro}
exec = polybar-break-timer $HOME/.config/polybar/.env/break-timer
click-left = echo left >> $HOME/.config/polybar/.env/break-timer
click-middle = echo middle >> $HOME/.config/polybar/.env/break-timer
click-right = echo right >> $HOME/.config/polybar/.env/break-timer
scroll-up = echo scrollUp >> $HOME/.config/polybar/.env/break-timer
scroll-down = echo scrollDown >> $HOME/.config/polybar/.env/break-timer
tail = true
; System Idle Time ; System Idle Time
;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;
[module/info-idle] [module/info-idle]
@ -382,13 +404,6 @@ type = internal/date
interval = 30 interval = 30
date = %%{F#999}%Y-%m-%d%%{F-} %%{F#fff}%H:%M%%{F-} date = %%{F#999}%Y-%m-%d%%{F-} %%{F#fff}%H:%M%%{F-}
; Local Date
;;;;;;;;;;;;;;;;;;;;;;;;;;
[module/date]
type = internal/date
date = %%{F#aaa}%Y-%m-%d%%{F-} %%{F#fff}%H:%M%%{F-}
date-alt = %%{F#aaa}%A, %d %B %Y %%{F#fff}%H:%M%%{F#666}:%%{F#fba922}%S%%{F-}
; Memory Free MiB ; Memory Free MiB
;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;
[module/memfree] [module/memfree]
@ -400,10 +415,37 @@ label = RAM: %output%
; Memory Usage ; Memory Usage
;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;
; Available tags:
; <label> (default)
; <bar-used>
; <bar-free>
; <ramp-used>
; <ramp-free>
; <bar-swap-used>
; <bar-swap-free>
; <ramp-swap-used>
; <ramp-swap-free>
; Available tokens:
; %percentage_used% (default)
; %percentage_free%
; %gb_used%
; %gb_free%
; %gb_total%
; %mb_used%
; %mb_free%
; %mb_total%
; %percentage_swap_used%
; %percentage_swap_free%
; %mb_swap_total%
; %mb_swap_free%
; %mb_swap_used%
; %gb_swap_total%
; %gb_swap_free%
; %gb_swap_used%
[module/memory] [module/memory]
type = internal/memory type = internal/memory
format = <bar-used> format = <label> <bar-used>
label = RAM: label = SWAP:%mb_swap_free% RAM: %mb_free%
bar-used-width = 15 bar-used-width = 15
bar-used-foreground-0 = #aaff77 bar-used-foreground-0 = #aaff77
bar-used-foreground-1 = #fba922 bar-used-foreground-1 = #fba922