️ Polybar

This commit is contained in:
Tobias Manske 2023-08-09 20:14:08 +02:00
parent ab05c704fd
commit fa624b3133
Signed by: tobias
GPG Key ID: 9164B527694A0709

View File

@ -54,7 +54,7 @@ module-margin-right = 2
font-0 = fixed:pixelsize=10;1 font-0 = fixed:pixelsize=10;1
font-1 = siji:pixelsize=10;1 font-1 = siji:pixelsize=10;1
font-2 = Symbols Nerd Font:style=Regular:scale=8;size=1;1 font-2 = FantasqueSansMono Nerd Font:style=Regular:scale=8;size=1;1
font-3 = Noto Color Emoji:style=Regular:scale=8;size=1;1 font-3 = Noto Color Emoji:style=Regular:scale=8;size=1;1
modules-left = i3 heart spotify xwindow modules-left = i3 heart spotify xwindow
@ -85,7 +85,7 @@ type = custom/text
content = content =
content-foreground=#D24D57 content-foreground=#D24D57
content-padding=2 content-padding=2
click-left=dunstify "Message from my Heart" "Naaww! :3" click-left=dunstctl history-pop
[module/xwindow] [module/xwindow]
type = internal/xwindow type = internal/xwindow
@ -100,6 +100,7 @@ mount-0 = /
label-mounted = root: %percentage_used%% label-mounted = root: %percentage_used%%
label-unmounted = %mountpoint% not mounted label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt} label-unmounted-foreground = ${colors.foreground-alt}
click-left = thunar &
[module/i3] [module/i3]
type = internal/i3 type = internal/i3
@ -306,8 +307,8 @@ tail = true
[module/dunst] [module/dunst]
type = custom/ipc type = custom/ipc
initial = 1 initial = 1
hook-0 = echo "%{A1:dunstctl set-paused true && polybar-msg hook dunst 2:}%{A}" & hook-0 = echo "%{A1:dunstctl set-paused true && polybar-msg action '#dunst.hook.1':}%{A}" &
hook-1 = echo "%{A1:dunstctl set-paused false && polybar-msg hook dunst 1:}%{A}" & hook-1 = echo "%{A1:dunstctl set-paused false && polybar-msg action '#dunst.hook.0':}%{A}" &
[module/network-networkmanager] [module/network-networkmanager]
type = custom/script type = custom/script
@ -316,4 +317,10 @@ click-left = networkmanager_dmenu -i &
exec = ~/Documents/src/polybar-scripts/polybar-scripts/network-networkmanager/network-networkmanager.sh exec = ~/Documents/src/polybar-scripts/polybar-scripts/network-networkmanager/network-networkmanager.sh
tail = true tail = true
[module/timeleft]
type = custom/script
label = %output% hours till CTF concludes
exec = echo "scale=2; ($(date -u -d "2023-06-10 21:59:59" "+%s") - $(date -u "+%s")) / 3600" | bc
format-underline = #FF0000
; vim:ft=dosini ; vim:ft=dosini