better colors and some cleanup

This commit is contained in:
Moritz Böhme 2021-04-11 17:45:37 +02:00
parent 7f77e2f98a
commit 939e333443
4 changed files with 89 additions and 93 deletions

View file

@ -1,11 +1,8 @@
[colors] [colors]
background = #99282a36 background = #99282a36
background-alt = #bd93f9 current-line = #FF44475a
foreground = #f8f8f2 foreground = #f8f8f2
foreground-alt = #ff79c6 comment = #6272a4
primary = #dbdbbd
secondary = #50fa7b
alert = #ff5555
cyan = #8be9fd cyan = #8be9fd
green = #50fa7b green = #50fa7b
@ -14,3 +11,8 @@ pink = #ff79c6
purple = #bd93f9 purple = #bd93f9
red = #ff5555 red = #ff5555
yellow = #f1fa8c yellow = #f1fa8c
foreground-alt = ${self.foreground}
background-alt = ${self.background}
primary = ${self.pink}
secondary = ${self.green}

View file

@ -83,7 +83,7 @@ radius-bottom = 0.0
; {overline,underline}-size ; {overline,underline}-size
; {overline,underline}-color ; {overline,underline}-color
line-size = 2 line-size = 2
line-color = ${colors.primary} line-color = ${colors.pink}
; Values applied to all borders ; Values applied to all borders
; Individual side values can be defined using: ; Individual side values can be defined using:
@ -300,7 +300,7 @@ radius-bottom = 0.0
; {overline,underline}-size ; {overline,underline}-size
; {overline,underline}-color ; {overline,underline}-color
line-size = 2 line-size = 2
line-color = ${colors.primary} line-color = ${colors.pink}
; Values applied to all borders ; Values applied to all borders
; Individual side values can be defined using: ; Individual side values can be defined using:
@ -314,7 +314,7 @@ line-color = ${colors.primary}
; following horizontal space on the bar: ; following horizontal space on the bar:
; width - border-right-size - border-left-size ; width - border-right-size - border-left-size
border-size = 0 border-size = 0
border-bottom-color = ${colors.primary} border-bottom-color = ${colors.pink}
; Number of spaces to add at the beginning/end of the bar ; Number of spaces to add at the beginning/end of the bar
; Individual side values can be defined using: ; Individual side values can be defined using:

View file

@ -1,5 +1,6 @@
[module/gme] [module/gme]
type = custom/script type = custom/script
format-underline = ${colors.pink}
exec = ~/.config/polybar/custom/scripts/gme.sh exec = ~/.config/polybar/custom/scripts/gme.sh
tail = true tail = true
click-left = kill -USR1 %pid% click-left = kill -USR1 %pid%

View file

@ -13,7 +13,8 @@ time-format = %H:%M
; <bar-capacity> ; <bar-capacity>
; <ramp-capacity> ; <ramp-capacity>
; <animation-charging> ; <animation-charging>
format-charging = <animation-charging> <label-charging> format-charging = <animation-charging> <label-charging>
format-charging-underline = ${colors.green}
; Available tags: ; Available tags:
; <label-discharging> (default) ; <label-discharging> (default)
@ -21,26 +22,28 @@ format-charging = <animation-charging> <label-charging>
; <ramp-capacity> ; <ramp-capacity>
; <animation-discharging> ; <animation-discharging>
format-discharging = <ramp-capacity> <label-discharging> format-discharging = <ramp-capacity> <label-discharging>
format-discharging-underline = ${colors.red}
; Available tags: ; Available tags:
; <label-full> (default) ; <label-full> (default)
; <bar-capacity> ; <bar-capacity>
; <ramp-capacity> ; <ramp-capacity>
;format-full = <ramp-capacity> <label-full> format-full = <label-full>
format-full-underline = ${colors.green}
; Available tokens: ; Available tokens:
; %percentage% (default) - is set to 100 if full-at is reached ; %percentage% (default) - is set to 100 if full-at is reached
; %percentage_raw% ; %percentage_raw%
; %time% ; %time%
; %consumption% (shows current charge rate in watts) ; %consumption% (shows current charge rate in watts)
label-charging = Charging %percentage%% label-charging = %percentage%% %time% remaining
; Available tokens: ; Available tokens:
; %percentage% (default) - is set to 100 if full-at is reached ; %percentage% (default) - is set to 100 if full-at is reached
; %percentage_raw% ; %percentage_raw%
; %time% ; %time%
; %consumption% (shows current discharge rate in watts) ; %consumption% (shows current discharge rate in watts)
label-discharging = Discharging %percentage%% label-discharging = %percentage%% %time% remaining
; Available tokens: ; Available tokens:
; %percentage% (default) - is set to 100 if full-at is reached ; %percentage% (default) - is set to 100 if full-at is reached
@ -75,48 +78,32 @@ animation-discharging-4 = 
; Framerate in milliseconds ; Framerate in milliseconds
animation-discharging-framerate = 500 animation-discharging-framerate = 500
[module/xwindow]
type = internal/xwindow
label = %title:0:30:...%
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-prefix-underline = ${colors.secondary}
label-layout = %layout%
label-layout-underline = ${colors.secondary}
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.secondary}
label-indicator-underline = ${colors.secondary}
[module/bspwm] [module/bspwm]
type = internal/bspwm type = internal/bspwm
reverse-scroll = false reverse-scroll = false
label-focused = %name% label-focused = %name%
label-focused-foreground = ${colors.comment}
label-focused-background = ${colors.pink} label-focused-background = ${colors.pink}
focused-foreground = ${colors.foreground}
label-focused-padding = 1 label-focused-padding = 1
label-occupied = %name% label-occupied = %name%
label-occupied-foreground = ${colors.comment}
label-occupied-background = ${colors.green}
label-occupied-padding = 1 label-occupied-padding = 1
label-occupied-foreground = ${colors.green}
label-urgent = %name%! label-urgent = %name%!
label-urgent-foreground = ${colors.foreground}
label-urgent-background = ${colors.red} label-urgent-background = ${colors.red}
label-urgent-padding = 1 label-urgent-padding = 1
label-empty = %name% label-empty = %name%
label-empty-foreground = ${colors.foreground-alt} label-empty-foreground = ${colors.foreground}
label-empty-padding = 1 label-empty-padding = 1
label-separator = "|" label-separator = "|"
label-separator-foreground = ${colors.cyan}
label-separator-padding = 0 label-separator-padding = 0
pin-workspaces = true pin-workspaces = true
@ -125,50 +112,78 @@ pin-workspaces = true
type = internal/cpu type = internal/cpu
interval = 2 interval = 2
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt} format-prefix-foreground = ${colors.red}
format-underline = ${colors.red} format-underline = ${colors.red}
label = %percentage:2%% label = %percentage:2%%
click-left=kitty bpytop
[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = ${colors.green}
label = %percentage_used%%
click-left=kitty bpytop
[module/wlan]
type = internal/network
interface = wlan0
interval = 3.0
format-connected-underline = ${colors.purple}
label-connected = "%{T2}%{T-}%upspeed% %{T2}%{T-}%downspeed%"
[module/date] [module/date]
type = internal/date type = internal/date
interval = 5 interval = 5
date = date = "%A"
date-alt = " %Y-%m-%d" date-alt = " %Y-%m-%d"
time = %H:%M time = %H:%M
time-alt = %H:%M:%S time-alt = %H:%M:%S
format-prefix = format-underline = ${colors.purple}
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5
label = %date% %time% label = %date% %time%
[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.green}
format-underline = ${colors.green}
label = %percentage_used%%
click-left=kitty bpytop
[module/powermenu]
type = custom/menu
expand-right = true
format-spacing = 1
label-open = "%{T2}%{T-} "
label-open-foreground = ${colors.orange}
label-close = "%{T2}%{T-} cancel"
label-close-foreground = ${colors.red}
label-separator = |
label-separator-foreground = ${colors.cyan}
menu-0-0 = "%{T2}%{T-} reboot"
menu-0-0-exec = menu-open-1
menu-0-1 = "%{T2}%{T-} power off"
menu-0-1-exec = menu-open-2
menu-0-2 = "%{T2}%{T-} hibernate"
menu-0-2-exec = menu-open-3
menu-1-0 = "%{T2}%{T-} reboot"
menu-1-0-exec = systemctl reboot
menu-1-1 = cancel
menu-1-1-exec = menu-open-0
menu-2-0 = "%{T2}%{T-} power off"
menu-2-0-exec = systemctl poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
menu-3-0 = "%{T2}%{T-} hibernate"
menu-3-0-exec = systemctl hibernate
menu-3-1 = cancel
menu-3-1-exec = menu-open-0
[module/pulseaudio] [module/pulseaudio]
type = internal/pulseaudio type = internal/pulseaudio
format-volume = <label-volume> <bar-volume> format-volume = <label-volume> <bar-volume>
label-volume = %percentage%% label-volume = %percentage%%
label-volume-foreground = ${root.foreground} label-volume-foreground = ${colors.foreground}
label-muted = "%{T2}%{T-} muted" label-muted = "%{T2}%{T-} muted"
label-muted-foreground = ${colors.foreground-alt} label-muted-foreground = ${colors.foreground-alt}
@ -194,39 +209,17 @@ bar-volume-empty-foreground = ${colors.foreground}
click-middle=pavucontrol click-middle=pavucontrol
click-right=~/bin/cycle_sinks.sh click-right=~/bin/cycle_sinks.sh
[module/powermenu]
type = custom/menu
expand-right = true [module/wlan]
type = internal/network
interface = wlan0
interval = 3.0
format-spacing = 1 format-connected-underline = ${colors.purple}
label-connected = "%{T2}%{T-}%upspeed% %{T2}%{T-}%downspeed%"
label-open = "%{T2}%{T-} " [module/xwindow]
label-open-foreground = ${colors.foreground-alt} type = internal/xwindow
label-close = "%{T2}%{T-} cancel" format = <label>
label-close-foreground = ${colors.red} label = %title:0:30:...%
label-separator = | format-underline = ${colors.orange}
label-separator-foreground = ${colors.foreground-alt}
menu-0-0 = "%{T2}%{T-} reboot"
menu-0-0-exec = menu-open-1
menu-0-1 = "%{T2}%{T-} power off"
menu-0-1-exec = menu-open-2
menu-0-2 = "%{T2}%{T-} hibernate"
menu-0-2-exec = menu-open-3
menu-1-0 = "%{T2}%{T-} reboot"
menu-1-0-exec = systemctl reboot
menu-1-1 = cancel
menu-1-1-exec = menu-open-0
menu-2-0 = "%{T2}%{T-} power off"
menu-2-0-exec = systemctl poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
menu-3-0 = "%{T2}%{T-} hibernate"
menu-3-0-exec = systemctl hibernate
menu-3-1 = cancel
menu-3-1-exec = menu-open-0