Polybar nice and green.

This commit is contained in:
Joachim Nielandt 2020-07-15 14:26:34 +02:00
parent b60c2bce1d
commit e343db3f5e
2 changed files with 139 additions and 150 deletions

View File

@ -414,49 +414,57 @@ exec --no-startup-id systemctl --user start greenclip
# smart_borders on|no_gaps # smart_borders on|no_gaps
smart_borders no_gaps smart_borders no_gaps
# Current color set # gruvbox colors
set_from_resource $color0 i3wm.color0 #000000 set $dark0_hard #1d2021
set_from_resource $color1 i3wm.color1 #000000 set $dark0 #282828
set_from_resource $color2 i3wm.color2 #000000 set $dark0_soft #32302f
set_from_resource $color3 i3wm.color3 #000000 set $dark1 #3c3836
set_from_resource $color4 i3wm.color4 #000000 set $dark2 #504945
set_from_resource $color5 i3wm.color5 #000000 set $dark3 #665c54
set_from_resource $color6 i3wm.color6 #000000 set $dark4 #7c6f64
set_from_resource $color7 i3wm.color7 #000000 set $gray_245 #928374
set_from_resource $color8 i3wm.color8 #000000 set $gray_244 #928374
set_from_resource $color9 i3wm.color9 #000000 set $light0_hard #f9f5d7
set_from_resource $color10 i3wm.color10 #000000 set $light0 #fbf1c7
set_from_resource $color11 i3wm.color11 #000000 set $light0_soft #f2e5bc
set_from_resource $color12 i3wm.color12 #000000 set $light1 #ebdbb2
set_from_resource $color13 i3wm.color13 #000000 set $light2 #d5c4a1
set_from_resource $color14 i3wm.color14 #000000 set $light3 #bdae93
set_from_resource $color15 i3wm.color15 #000000 set $light4 #a89984
set_from_resource $color66 i3wm.color66 #000000 set $bright_red #fb4934
set $bright_green #b8bb26
set $bright_yellow #fabd2f
set $bright_blue #83a598
set $bright_purple #d3869b
set $bright_aqua #8ec07c
set $bright_orange #fe8019
set $neutral_red #cc241d
set $neutral_green #98971a
set $neutral_yellow #d79921
set $neutral_blue #458588
set $neutral_purple #b16286
set $neutral_aqua #689d6a
set $neutral_orange #d65d0e
set $faded_red #9d0006
set $faded_green #79740e
set $faded_yellow #b57614
set $faded_blue #076678
set $faded_purple #8f3f71
set $faded_aqua #427b58
set $faded_orange #af3a03
set $transparent #ffffff00
set_from_resource $gruv_black i3wm.color0 #000000 # Current color set
set_from_resource $gruv_darkgrey i3wm.color8 #000000 # This is how you would get a colors from xrdb
set_from_resource $gruv_red i3wm.color9 #000000 # set_from_resource $color0 i3wm.color0 #000000
set_from_resource $gruv_darkred i3wm.color1 #000000
set_from_resource $gruv_magenta i3wm.color13 #000000
set_from_resource $gruv_darkmagenta i3wm.color5 #000000
set_from_resource $gruv_cyan i3wm.color14 #000000
set_from_resource $gruv_darkcyan i3wm.color6 #000000
set_from_resource $gruv_yellow i3wm.color11 #000000
set_from_resource $gruv_darkyellow i3wm.color3 #000000
set_from_resource $gruv_lightgrey i3wm.color7 #000000
set_from_resource $gruv_white i3wm.color15 #000000
set_from_resource $gruv_foreground i3wm.foreground #000000
set_from_resource $gruv_background i3wm.background #000000
set_from_resource $gruv_green i3wm.color10 #000000
set_from_resource $gruv_darkgreen i3wm.color2 #000000
# window color class [border|backgr.|text|indicator|child_border] # window color class [border|backgr.|text|indicator|child_border]
client.focused $gruv_green $gruv_background $gruv_foreground #FFFFFF $gruv_yellow client.focused $gray_245 $dark0_hard $light0_hard $bright_orange $light0_soft
client.focused_inactive #333333 $gruv_background $gruv_foreground #484e50 $gruv_darkyellow client.focused_inactive $dark0_hard $dark0_hard $light0_hard $dark0_hard $dark0_hard
client.unfocused $gruv_background $gruv_background $ufg $indicator $gruv_lightgrey client.unfocused $dark0_hard $dark0_hard $light0_hard $dark0_hard #FFFFFF00
client.urgent $bg $bg $fg $indicator $gruv_red client.urgent $dark0_hard $dark0 $light0_hard $dark0_hard $bright_orange
client.placeholder $bg $bg $fg $indicator $bg client.placeholder $dark0_hard $dark0_hard $light0_hard $dark0_hard $dark0_hard
client.background $gruv_background client.background $dark0_hard
# Start i3bar to display a workspace bar (plus the system information i3status # Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available) # finds out, if available)
@ -465,14 +473,14 @@ client.background $gruv_background
# status_command i3status # status_command i3status
# #
# colors { # colors {
# background $gruv_background # background $dark0_hard
# statusline $gruv_darkred # statusline $gruv_darkred
# separator #666666 # separator #666666
# #
# focused_workspace $gruv_yellow $gruv_green $gruv_foreground # focused_workspace $gruv_yellow $gruv_green $light0_hard
# active_workspace #333333 $gruv_darkgreen $gruv_foreground # active_workspace #333333 $gruv_darkgreen $light0_hard
# inactive_workspace #333333 $gruv_darkgreen $gruv_foreground # inactive_workspace #333333 $gruv_darkgreen $light0_hard
# urgent_workspace $gruv_red $gruv_darkgreen $gruv_foreground # urgent_workspace $bright_red $gruv_darkgreen $light0_hard
# binding_mode #2f343a #900000 #ffffff # binding_mode #2f343a #900000 #ffffff
# } # }
# } # }

View File

@ -78,9 +78,9 @@ padding-right = 2
;font-0 = "Wuncon Siji:pixelsize=15;1" ;font-0 = "Wuncon Siji:pixelsize=15;1"
;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 ;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
;font-2 = "Inconsolata\ For\ Powerline:pixelsize=10;1" ;font-2 = "Inconsolata\ For\ Powerline:pixelsize=10;1"
font-1 = FuraCode Nerd Font:pixelsize=11;1 font-0 = FuraCode Nerd Font:pixelsize=11;1
;font-1 = Siji:style=Regular:pixelsize=11 ;font-1 = Siji:style=Regular:pixelsize=11
font-0 = Siji:pixelsize=14;0 font-1 = Siji:pixelsize=14;0
; override pointers ; override pointers
cursor-click = pointer cursor-click = pointer
cursor-scroll = pointer cursor-scroll = pointer
@ -102,6 +102,7 @@ monitor = ${env:MONITOR:eDP-1}
modules-left = i3 modules-left = i3
modules-center = temperature battery xkeyboard memory cpu filesystem updates-arch reboot-check xbacklight top-process modules-center = temperature battery xkeyboard memory cpu filesystem updates-arch reboot-check xbacklight top-process
modules-right = net wifi0 vpn powermenu modules-right = net wifi0 vpn powermenu
; TRAY MANAGEMENT ; TRAY MANAGEMENT
;tray-position = right ;tray-position = right
tray-position = ${env:TRAY_POSITION:none} tray-position = ${env:TRAY_POSITION:none}
@ -114,6 +115,8 @@ tray-offset-x = 0
tray-offset-y = 27 tray-offset-y = 27
tray-padding = 2 tray-padding = 2
tray-scale = 1.0 tray-scale = 1.0
padding-left = 2
padding-right = 2
scroll-up = i3wm-wsnext scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev scroll-down = i3wm-wsprev
cursor-click = pointer cursor-click = pointer
@ -129,37 +132,28 @@ monitor = ${env:MONITOR:eDP-1}
;unused modules - mpd xbacklight backlight-acpi alsa ;unused modules - mpd xbacklight backlight-acpi alsa
modules-right = pulseaudio modules-right = pulseaudio
modules-center = player-mpris-tail modules-center = player-mpris-tail
modules-left = host-icon date info-hackspeed modules-left = date info-hackspeed
padding-left = 3
padding-right = 2
[module/host-icon]
type = custom/script
exec = echo 0
;tail = false
label-foreground = ${colors.bright_orange}
{{- if eq .chezmoi.hostname "carbonraptor" }}
label = ""
{{ else }}
label = "?"
{{- end }}
[module/player-mpris-tail] [module/player-mpris-tail]
type = custom/script type = custom/script
exec = ~/.config/polybar/polybar-scripts/polybar-scripts/player-mpris-tail/player-mpris-tail.py -f '{icon} {artist} - {title}' --icon-playing  --icon-paused  --icon-stopped  --icon-none ﱙ exec = ~/.config/polybar/polybar-scripts/polybar-scripts/player-mpris-tail/player-mpris-tail.py -f '{icon} {artist} - {title}' --icon-playing  --icon-paused  --icon-stopped  --icon-none ﱙ
tail = true tail = true
label = %output% label = %output%
label-foreground = ${colors.light0_hard}
[module/info-hackspeed] [module/info-hackspeed]
type = custom/script type = custom/script
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.bright_blue} format-prefix-foreground = ${colors.bright_green}
exec = ~/.config/polybar/polybar-scripts/polybar-scripts/info-hackspeed/info-hackspeed.sh exec = ~/.config/polybar/polybar-scripts/polybar-scripts/info-hackspeed/info-hackspeed.sh
tail = true tail = true
[module/top-process] [module/top-process]
type = custom/script type = custom/script
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.bright_blue} format-prefix-foreground = ${colors.bright_green}
;format-underline = ${colors.bright_red} ;format-underline = ${colors.bright_red}
interval = 5 interval = 5
exec = ~/.dotfiles/scripts/top.process.sh exec = ~/.dotfiles/scripts/top.process.sh
@ -173,7 +167,7 @@ label = %title:0:30:...%
type = internal/xkeyboard type = internal/xkeyboard
blacklist-0 = num lock blacklist-0 = num lock
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.bright_blue} format-prefix-foreground = ${colors.bright_green}
;format-prefix-underline = ${colors.underline-keyboard} ;format-prefix-underline = ${colors.underline-keyboard}
; layout, number, name ; layout, number, name
label-layout = %layout% label-layout = %layout%
@ -198,9 +192,12 @@ type = internal/fs
interval = 25 interval = 25
mount-0 = / mount-0 = /
mount-1 = /mnt/ext4 mount-1 = /mnt/ext4
label-mounted = %{F#0a81f5}%mountpoint%%{F-} %percentage_used%% ;label-mounted = %{F#0a81f5}%mountpoint%%{F-} %percentage_used%%
;#b8bb26
label-mounted = %{F#b8bb26}%mountpoint%%{F-} %percentage_used%%
label-mounted-foreground = ${colors.bright_green}
label-unmounted = %mountpoint% not mounted label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.bright_green} label-unmounted-foreground = ${colors.faded_green}
[module/bspwm] [module/bspwm]
type = internal/bspwm type = internal/bspwm
@ -239,69 +236,54 @@ pin-workspaces = true
; Default: false ; Default: false
strip-wsnumbers = true strip-wsnumbers = true
; using siji icons... see view.sh for codes ;ws-icon-0 = 1:1;
; not using siji anymore, check out nerdfonts.com! ;ws-icon-1 = 2:2;
;   ;ws-icon-2 = 3:3;
ws-icon-0 = 1:1; ;ws-icon-3 = 4:4;
ws-icon-1 = 2:2; ;ws-icon-4 = 5:5;
ws-icon-2 = 3:3; ;ws-icon-5 = 6:6;
ws-icon-3 = 4:4; ;ws-icon-6 = 7:7;
ws-icon-4 = 5:5; ;ws-icon-7 = 8:8;
ws-icon-5 = 6:6; ;ws-icon-8 = 9:9;﬐
ws-icon-6 = 7:7; ;ws-icon-9 = 10:10;
ws-icon-7 = 8:8; ;ws-icon-10 = 11:;
ws-icon-8 = 9:9;﬐ ;ws-icon-11 = 12:;
ws-icon-9 = 10:10; ws-icon-default = ﱤ
ws-icon-10 = 11:;
ws-icon-11 = 12:;
ws-icon-default = 
; Whenever the 'move' changes... like 'resize', ... ; mode menu styling
label-mode-padding = 2 label-mode-padding = 1
label-mode-foreground = ${colors.light0_hard} label-mode-foreground = ${colors.light0_hard}
;label-mode-background = ${colors.primary} label-mode-background = ${colors.dark0_hard}
label-mode-background = ${colors.bright_yellow}
;label-mode-underline = ${colors.light2} ;label-mode-underline = ${colors.light2}
; focused = Active workspace on focused monitor ; can use: %icon% %name% %index
label-focused = %icon% %name% label-focused = %name%
label-unfocused = ·%name%
label-visible = ·%name%
label-urgent = ·%name%
label-focused-foreground = ${colors.light0_hard}
label-unfocused-foreground = ${colors.light0_hard}
label-visible-foreground = ${colors.light0_hard}
label-urgent-foreground = ${colors.bright_orange}
label-focused-padding = 1
label-unfocused-padding = 1
label-visible-padding = 1
label-urgent-padding = 1
;label-focused = %icon% %name%
;label-focused = %index% ;label-focused = %index%
;label-focused-background = ${module/bspwm.label-focused-background} ;label-focused-background = ${module/bspwm.label-focused-background}
;label-focused-underline = ${module/bspwm.label-focused-underline} ;label-focused-underline = ${module/bspwm.label-focused-underline}
;label-focused-padding = ${module/bspwm.label-focused-padding} ;label-focused-padding = ${module/bspwm.label-focused-padding}
label-focused-background = ${colors.light1} ;label-focused-background = ${colors.light1}
label-focused-foreground = ${colors.dark0_hard}
;label-focused-underline = ${colors.underline-i3-focused} ;label-focused-underline = ${colors.underline-i3-focused}
label-focused-padding = 2
; unfocused = Inactive workspace on any monitor ; unfocused = Inactive workspace on any monitor
;label-unfocused = %index% ;label-unfocused = %index%
label-unfocused = %icon% %name%
;label-unfocused-underline = ${colors.underline-i3-unfocused} ;label-unfocused-underline = ${colors.underline-i3-unfocused}
;label-unfocused-padding = ${module/bspwm.label-occupied-padding} ;label-unfocused-padding = ${module/bspwm.label-occupied-padding}
label-unfocused-padding = 2
; visible = Active workspace on unfocused monitor
; label-visible = %index%
label-visible = %icon% %name%
;label-visible-background = ${self.label-focused-background}
;label-visible-underline = ${self.label-focused-underline}
;label-visible-padding = ${self.label-focused-padding}
label-visible-background = ${colors.light2}
label-visible-foreground = ${colors.dark0_hard}
;label-visible-underline = #FFFFFF
label-visible-padding = 2
; urgent = Workspace with urgency hint set
label-urgent = %icon% %name%
; label-urgent-background = ${module/bspwm.label-urgent-background}
label-urgent-background = ${colors.light0}
label-urgent-foreground = ${colors.bright_orange}
;label-urgent-underline = ${colors.bright_orange}
label-urgent-padding = 2
; Separator in between workspaces
; label-separator = |
[module/mpd] [module/mpd]
@ -350,7 +332,7 @@ interval = 2
;format-prefix = " " ;format-prefix = " "
;format = <label> <ramp-coreload> ;format = <label> <ramp-coreload>
format = <ramp-coreload> format = <ramp-coreload>
ramp-coreload-spacing = 0.5 ramp-coreload-spacing = 0.6
ramp-coreload-0 = ▁ ramp-coreload-0 = ▁
ramp-coreload-1 = ▂ ramp-coreload-1 = ▂
ramp-coreload-2 = ▃ ramp-coreload-2 = ▃
@ -360,7 +342,7 @@ ramp-coreload-5 = ▆
ramp-coreload-6 = ▇ ramp-coreload-6 = ▇
ramp-coreload-7 = █ ramp-coreload-7 = █
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.bright_blue} format-prefix-foreground = ${colors.bright_green}
;format-underline = #f90000 ;format-underline = #f90000
;format-underline = ${colors.underline-cpu} ;format-underline = ${colors.underline-cpu}
label = %percentage-cores% label = %percentage-cores%
@ -369,7 +351,7 @@ label = %percentage-cores%
type = internal/memory type = internal/memory
interval = 2 interval = 2
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.bright_blue} format-prefix-foreground = ${colors.bright_green}
;format-underline = #4bffdc ;format-underline = #4bffdc
;format-underline = ${colors.underline-memory} ;format-underline = ${colors.underline-memory}
label = %percentage_used%% label = %percentage_used%%
@ -378,7 +360,7 @@ label = %percentage_used%%
type = custom/script type = custom/script
exec = ~/.config/polybar/polybar-scripts/polybar-scripts/updates-arch/updates-arch.sh exec = ~/.config/polybar/polybar-scripts/polybar-scripts/updates-arch/updates-arch.sh
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.bright_blue} format-prefix-foreground = ${colors.bright_green}
;format-underline = ${colors.light3} ;format-underline = ${colors.light3}
interval = 600 interval = 600
label = "%output%" label = "%output%"
@ -397,10 +379,10 @@ interface = wifi0
interval = 3.0 interval = 3.0
format-connected = <ramp-signal> <label-connected> format-connected = <ramp-signal> <label-connected>
;format-connected-underline = ${colors.bright_blue} ;format-connected-underline = ${colors.bright_green}
;label-connected = %{A1:networkmanager_dmenu:}%essid%%{A} ;label-connected = %{A1:networkmanager_dmenu:}%essid%%{A}
;   ;  
label-connected = "%{A1:networkmanager_dmenu:}%essid%%{A} test  %downspeed:3% %upspeed:3%" label-connected = "%{A1:networkmanager_dmenu:}%essid%%{A} %{F#b8bb26}%{F-} %downspeed:3% %{F#b8bb26}%{F-} %upspeed:3%"
format-disconnected = format-disconnected =
;format-disconnected = <label-disconnected> ;format-disconnected = <label-disconnected>
@ -409,11 +391,12 @@ format-disconnected =
;label-disconnected-foreground = ${colors.bright_green} ;label-disconnected-foreground = ${colors.bright_green}
; label that differs in signal strength ; label that differs in signal strength
ramp-signal-0 =  ; these are siji symbols, don't render properly here
ramp-signal-1 =  ramp-signal-0 = "%{T2}%{T-}"
ramp-signal-2 =  ramp-signal-1 = "%{T2}%{T-}"
ramp-signal-3 =  ramp-signal-2 = "%{T2}%{T-}"
ramp-signal-4 =  ramp-signal-3 = "%{T2}%{T-}"
ramp-signal-4 = "%{T2}%{T-}"
ramp-signal-foreground = ${colors.bright_green} ramp-signal-foreground = ${colors.bright_green}
; Accumulate values from all interfaces ; Accumulate values from all interfaces
@ -435,13 +418,13 @@ interval = 3.0
format-connected-underline = #55aa55 format-connected-underline = #55aa55
format-connected-prefix = " " format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.bright_blue} format-connected-prefix-foreground = ${colors.bright_green}
;label-connected = %local_ip% ;label-connected = %local_ip%
label-connected = "%downspeed:3% %upspeed:3%" label-connected = "%downspeed:3% %upspeed:3%"
label-connected-foreground = ${colors.light0_hard} label-connected-foreground = ${colors.light0_hard}
format-disconnected = format-disconnected =
format-disconnected-prefix-foreground = ${colors.bright_blue} format-disconnected-prefix-foreground = ${colors.bright_green}
;format-disconnected-underline = ${self.format-connected-underline} ;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected ;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.bright_green} ;label-disconnected-foreground = ${colors.bright_green}
@ -449,18 +432,15 @@ format-disconnected-prefix-foreground = ${colors.bright_blue}
[module/date] [module/date]
type = internal/date type = internal/date
interval = 5 interval = 5
date = " %Y-%m-%d" date = " %Y-%m-%d"
date-alt = date-alt =
time = %H:%M:%S time = %H:%M:%S
time-alt = %H:%M time-alt = %H:%M
format-prefix = "" format-prefix = ""
format-prefix-foreground = ${colors.bright_green} format-prefix-foreground = ${colors.bright_green}
label-foreground = ${colors.light0_hard}
;format-underline = #0a6cf5 ;format-underline = #0a6cf5
;format-underline = ${colors.underline-date} ;format-underline = ${colors.underline-date}
label = "%date% %time%" label = "%date% %time%"
[module/pulseaudio] [module/pulseaudio]
@ -468,29 +448,30 @@ 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.bright_green}
; the muted symbol comes from siji font (check the 'view.sh' script for altcodes) ; the muted symbol comes from siji font (check the 'view.sh' script for altcodes)
label-muted =  muted label-muted = 
;label-muted-foreground = #66 ;label-muted-foreground = #66
label-muted-foreground = ${colors.bright_red} label-muted-foreground = ${colors.faded_green}
bar-volume-width = 10 bar-volume-width = 10
bar-volume-foreground-0 = #55aa55 bar-volume-foreground-0 = #b8bb26
bar-volume-foreground-1 = #55aa55 bar-volume-foreground-1 = #b8bb26
bar-volume-foreground-2 = #55aa55 bar-volume-foreground-2 = #b8bb26
bar-volume-foreground-3 = #55aa55 bar-volume-foreground-3 = #b8bb26
bar-volume-foreground-4 = #55aa55 bar-volume-foreground-4 = #b8bb26
bar-volume-foreground-5 = #f5a70a bar-volume-foreground-5 = #fe8019
bar-volume-foreground-6 = #ff5555 bar-volume-foreground-6 = #fb4934
bar-volume-gradient = false bar-volume-gradient = false
bar-volume-indicator = | bar-volume-indicator = |
bar-volume-indicator-font = 2 bar-volume-indicator-font = 2
bar-volume-fill = bar-volume-fill =
bar-volume-fill-font = 2 bar-volume-fill-font = 2
bar-volume-empty = ─ ;bar-volume-empty = ─
bar-volume-empty = 
bar-volume-empty-font = 2 bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.bright_green} bar-volume-empty-foreground = ${colors.faded_green}
[module/alsa] [module/alsa]
type = internal/alsa type = internal/alsa
@ -531,7 +512,7 @@ time-format = %H:%M
label-charging =  %time% %percentage%% label-charging =  %time% %percentage%%
format-charging = <animation-charging> <label-charging> format-charging = <animation-charging> <label-charging>
;format-charging-underline = #ffb52a ;format-charging-underline = #ffb52a
format-charging-underline = ${colors.underline-battery} ;format-charging-underline = ${colors.underline-battery}
label-discharging =  %time% %percentage%% label-discharging =  %time% %percentage%%
@ -589,9 +570,9 @@ type = custom/menu
expand-right = true expand-right = true
format-spacing = 1 format-spacing = 1
label-open = ⏻ label-open = ⏻
label-open-foreground = ${colors.neutral_blue} label-open-foreground = ${colors.bright_green}
label-close = " back" label-close = " back"
label-close-foreground = ${colors.neutral_blue} label-close-foreground = ${colors.bright_green}
label-separator = | label-separator = |
label-separator-foreground = ${colors.bright_green} label-separator-foreground = ${colors.bright_green}