polybar: redesign layout & colors
This commit is contained in:
parent
149e871001
commit
363483d1b4
|
@ -39,18 +39,17 @@ underline-color = #00f
|
||||||
border-bottom-size = 0
|
border-bottom-size = 0
|
||||||
|
|
||||||
padding-left = 0
|
padding-left = 0
|
||||||
padding-right = 0
|
padding-right = 2
|
||||||
module-margin-left = 0
|
module-margin-left = 2
|
||||||
module-margin-right = 0
|
module-margin-right = 2
|
||||||
|
|
||||||
font-0 = "Fira Sans:style=Bold:size=10;1"
|
font-0 = "Fira Sans:style=Bold:size=10;1"
|
||||||
font-1 = "Fira Mono:style=Bold:size=10;1"
|
font-1 = "Fira Mono:style=Bold:size=10;1"
|
||||||
font-2 = FontAwesome:fontformat=truetype:size=11;1
|
font-2 = "FontAwesome:fontformat=truetype:size=11;1"
|
||||||
|
|
||||||
modules-left = bspwm
|
modules-left = bspwm
|
||||||
modules-center = date
|
modules-center = date
|
||||||
modules-right = wlp eth pkg mail volume redshift
|
modules-right = pkg mail wlan eth volume redshift
|
||||||
; modules-right = wlp eth pkg volume redshift
|
|
||||||
|
|
||||||
enable-ipc = true
|
enable-ipc = true
|
||||||
|
|
||||||
|
@ -133,7 +132,8 @@ label-urgent-foreground = ${xrdb:color9}
|
||||||
label-urgent-padding = 3
|
label-urgent-padding = 3
|
||||||
|
|
||||||
label-empty = %icon%
|
label-empty = %icon%
|
||||||
label-empty-foreground = #88282a2e
|
; label-empty-foreground = #88282a2e
|
||||||
|
label-empty-foreground = #18e5e8e6
|
||||||
label-empty-padding = 3
|
label-empty-padding = 3
|
||||||
|
|
||||||
[module/i3]
|
[module/i3]
|
||||||
|
@ -168,21 +168,22 @@ label-visible-padding = ${self.label-focused-padding}
|
||||||
type = internal/mpd
|
type = internal/mpd
|
||||||
host = /home/hlissner/.config/mpd/mpd.sock
|
host = /home/hlissner/.config/mpd/mpd.sock
|
||||||
|
|
||||||
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next> <icon-random>
|
format-online = <label-song> <toggle>
|
||||||
|
format-padding = 5
|
||||||
|
|
||||||
label-song-maxlen = 35
|
label-song-maxlen = 45
|
||||||
label-song-ellipsis = true
|
label-song-ellipsis = true
|
||||||
|
|
||||||
icon-prev =
|
icon-prev =
|
||||||
icon-seekb =
|
icon-seekb =
|
||||||
icon-stop =
|
icon-stop =
|
||||||
icon-play =
|
icon-play =
|
||||||
icon-pause =
|
icon-pause =
|
||||||
icon-next =
|
icon-next =
|
||||||
icon-seekf =
|
icon-seekf =
|
||||||
|
|
||||||
icon-random =
|
icon-random =
|
||||||
icon-repeat =
|
icon-repeat =
|
||||||
|
|
||||||
toggle-on-foreground = ${colors.primary}
|
toggle-on-foreground = ${colors.primary}
|
||||||
toggle-off-foreground = #66
|
toggle-off-foreground = #66
|
||||||
|
@ -222,23 +223,26 @@ label = %percentage_used%
|
||||||
|
|
||||||
[module/wlan]
|
[module/wlan]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
interface =
|
interface = ${env:WLP:wlp3s0}
|
||||||
interval = 3.0
|
interval = 3.0
|
||||||
|
|
||||||
format-connected = <ramp-signal> <label-connected>
|
format-connected = <ramp-signal>
|
||||||
format-connected-underline = #9f78e1
|
format-disconnected-underline = ${colors.alert}
|
||||||
format-disconnected-underline = ${self.format-connected-underline}
|
|
||||||
|
|
||||||
label-connected = %essid%
|
label-connected =
|
||||||
label-disconnected = %ifname% disconnected
|
label-disconnected = !
|
||||||
label-disconnected-foreground = ${colors.foreground-alt}
|
label-disconnected-foreground = ${xrdb:color1}
|
||||||
|
|
||||||
ramp-signal-0 =
|
ramp-signal-0 =
|
||||||
ramp-signal-1 =
|
ramp-signal-0-foreground = #22e5e8e6
|
||||||
ramp-signal-2 =
|
ramp-signal-1 =
|
||||||
ramp-signal-3 =
|
ramp-signal-1-foreground = ${xrdb:color3}
|
||||||
ramp-signal-4 =
|
ramp-signal-2 =
|
||||||
ramp-signal-foreground = ${colors.foreground-alt}
|
ramp-signal-2-foreground = ${xrdb:color11}
|
||||||
|
ramp-signal-3 =
|
||||||
|
ramp-signal-3-foreground = #ffe5e8e6
|
||||||
|
ramp-signal-4 =
|
||||||
|
ramp-signal-4-foreground = ${xrdb:color2}
|
||||||
|
|
||||||
[module/eth]
|
[module/eth]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
|
@ -254,21 +258,6 @@ format-disconnected-underline = ${self.format-connected-underline}
|
||||||
label-disconnected = %ifname% disconnected
|
label-disconnected = %ifname% disconnected
|
||||||
label-disconnected-foreground = ${colors.foreground-alt}
|
label-disconnected-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
[module/wlp]
|
|
||||||
type = internal/network
|
|
||||||
interface = ${env:WLP:wlp3s0}
|
|
||||||
interval = 4.0
|
|
||||||
|
|
||||||
; format-connected-underline = #55aa55
|
|
||||||
; format-connected-prefix = " "
|
|
||||||
format-connected-foreground-foreground = ${colors.foreground-alt}
|
|
||||||
label-connected = %local_ip%
|
|
||||||
|
|
||||||
format-disconnected-underline = ${self.format-connected-underline}
|
|
||||||
label-disconnected = %ifname% disconnected
|
|
||||||
label-disconnected-foreground = ${colors.foreground-alt}
|
|
||||||
|
|
||||||
|
|
||||||
[module/date]
|
[module/date]
|
||||||
type = internal/date
|
type = internal/date
|
||||||
interval = 5
|
interval = 5
|
||||||
|
@ -405,24 +394,22 @@ menu-2-1-exec = menu-open-0
|
||||||
[module/pkg]
|
[module/pkg]
|
||||||
type = custom/ipc
|
type = custom/ipc
|
||||||
format = <output>
|
format = <output>
|
||||||
format-padding = 3
|
hook-0 = ~/.config/polybar/modules/updates
|
||||||
hook-0 = /home/hlissner/.config/polybar/modules/updates
|
|
||||||
initial = 1
|
initial = 1
|
||||||
click-left = polybar-msg -p %pid% hook pkg 1
|
click-left = polybar-msg -p %pid% hook pkg 1
|
||||||
|
|
||||||
[module/mail]
|
[module/mail]
|
||||||
type = custom/script
|
type = custom/ipc
|
||||||
interval = 300
|
format = <output>
|
||||||
format = <label>
|
hook-0 = ~/.config/polybar/modules/mail
|
||||||
format-padding = 3
|
initial = 1
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
click-left = polybar-msg -p %pid% hook mail 1
|
||||||
exec = /home/hlissner/.config/polybar/modules/mail
|
|
||||||
|
|
||||||
[module/redshift]
|
[module/redshift]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
interval = 30
|
interval = 30
|
||||||
format-padding = 3
|
label-padding = 1
|
||||||
exec = /home/hlissner/.config/polybar/modules/redshift
|
exec = ~/.config/polybar/modules/redshift
|
||||||
exec-if = "pgrep redshift >/dev/null"
|
exec-if = "pgrep redshift >/dev/null"
|
||||||
|
|
||||||
; vim:ft=dosini
|
; vim:ft=dosini
|
||||||
|
|
|
@ -5,12 +5,12 @@ aur=$(cower -u | wc -l)
|
||||||
last=$(</tmp/polybar-updates)
|
last=$(</tmp/polybar-updates)
|
||||||
check=$((pac + aur))
|
check=$((pac + aur))
|
||||||
if [[ "$check" != "0" ]]; then
|
if [[ "$check" != "0" ]]; then
|
||||||
echo "$pac %{F#5b5b5b}%{F-} $aur"
|
echo "%{F#e5e8e6}%{F-} $pac,$aur"
|
||||||
if [[ $last != "$pac$aur" ]]; then
|
if [[ $last != "$pac$aur" ]]; then
|
||||||
notify-send "$((pac+aur)) updates available"
|
notify-send "$((pac+aur)) updates available"
|
||||||
aplay -N -q ~/.config/polybar/sounds/robni7-news-ting.wav
|
aplay -N -q ~/.config/polybar/sounds/robni7-news-ting.wav
|
||||||
echo "$pac$aur" >/tmp/polybar-updates
|
echo "$pac$aur" >/tmp/polybar-updates
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "%{F#5b5b5b}%{F-}"
|
echo "%{F#22e5e8e6}%{F-} "
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue