diff --git a/.config/polybar/.env/break-timer b/.config/polybar/.env/break-timer new file mode 100644 index 0000000..98ba7a1 --- /dev/null +++ b/.config/polybar/.env/break-timer @@ -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 diff --git a/.config/polybar/config b/.config/polybar/config index 27c7e7d..97b4196 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -70,9 +70,9 @@ font-1 = Inconsolata Nerd Font:size=12;3 font-2 = Noto Sans Mono:size=8;0 ; Modules -modules-left = temp-cpu cpu memfree memory +modules-left = temp-cpu cpu memory modules-center = popup-utc network public-ip filesystem -modules-right = vpn battery +modules-right = vpn battery ; Set the cursor to display pointer / resize is interaction available cursor-click = pointer @@ -96,6 +96,15 @@ type = custom/script exec = ~/.local/bin/i3scripts/popup-calendar interval = 5 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 ;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -112,6 +121,19 @@ type = custom/script exec = ~/.local/bin/i3scripts/info-hackspeed 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 ;;;;;;;;;;;;;;;;;;;;;;;;;; [module/info-idle] @@ -138,7 +160,7 @@ fixed-values = true ; ; ; -format-mounted = +format-mounted = ; Available tokens: ; %mountpoint% ; %type% @@ -173,7 +195,7 @@ format-disconnected = format-packetloss = ; Default: %ifname% %local_ip% label-connected =  %upspeed% /  %downspeed:9% 龍 %linkspeed% %local_ip% -label-connected-foreground =#00c24a +label-connected-foreground =#00c24a ; Default: (none) label-disconnected = not connected label-disconnected-foreground = #d00 @@ -211,7 +233,7 @@ udspeed-minwidth = 5 ; Default: false accumulate-stats = true ; Consider an `UNKNOWN` interface state as up. -; Some devices like USB network adapters have +; Some devices like USB network adapters have ; an unknown state, even when they're running ; Default: false unknown-as-up = true @@ -248,7 +270,7 @@ type = internal/temperature ; Default: 1 interval = 5.0 ; Thermal zone to use -; To list all the zone types, run +; To list all the zone types, run ; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done ; Default: 0 thermal-zone = 2 @@ -299,18 +321,18 @@ label-layout = %name% %icon% ;;;;;;;;;;;;;;;;;;;;;;;;;; [module/powermenu] type = custom/menu -format-padding = 0 -format = -label-open = " " +format-padding = 0 +format = +label-open = " " label-close = " " -menu-0-0 = "  pkill poly " +menu-0-0 = "  pkill poly " menu-0-0-foreground = #fba922 menu-0-0-exec = pkill -f polybar menu-0-1 = " i3 restart " menu-0-1-foreground = #fba922 ;menu-0-1-background = #141414 menu-0-1-exec = i3 restart -menu-0-2 = " Reboot " +menu-0-2 = " Reboot " menu-0-2-foreground = #fba922 menu-0-2-exec = sudo reboot menu-0-3 = " Power off " @@ -341,7 +363,7 @@ menu-0-1-exec = sh /home/kapper/.local/bin/i3scripts/xoffee enable [module/cpu] type = internal/cpu interval = 5 -format =