Update Polybar

This commit is contained in:
Marco Thomas
2020-10-25 14:11:46 +01:00
parent bc2d7e0071
commit f2b91d31c0
4 changed files with 62 additions and 19 deletions

View File

@@ -163,6 +163,8 @@ new_window 1pixel
# Set Border # Set Border
for_window [class="^.*"] border pixel 2 for_window [class="^.*"] border pixel 2
for_window [class="firefox"] border pixel 0
for_window [class="discord"] border pixel 0
set $red "#e06c75" set $red "#e06c75"
set $termbg "#1e2127" set $termbg "#1e2127"

View File

@@ -5,6 +5,7 @@ background = #000000
foreground = #ffffff foreground = #ffffff
urgent = #e06c75 urgent = #e06c75
accent = #98c379 accent = #98c379
accent-alt = #98c379
[bar/laptop] [bar/laptop]
monitor = ${env:MONITOR} monitor = ${env:MONITOR}
@@ -20,10 +21,10 @@ width = 100%
module-margin-right = 2 module-margin-right = 2
module-margin-left = 2 module-margin-left = 2
padding-left = 1 padding-left = 2
padding-right = 1 padding-right = 2
separator = / separator =
modules-left = i3 xwindow modules-left = i3 xwindow
modules-center = spotify modules-center = spotify
@@ -35,6 +36,8 @@ tray-padding = 1
foreground = ${colors.foreground} foreground = ${colors.foreground}
background = ${colors.background} background = ${colors.background}
line-size = 2
wm-name = i3 wm-name = i3
wm-restack = i3 wm-restack = i3
@@ -73,30 +76,34 @@ ws-icon-default = 
label-focused = "%icon%" label-focused = "%icon%"
label-focused-foreground = ${colors.background} label-focused-foreground = ${colors.background}
label-focused-background = ${colors.accent} label-focused-background = ${colors.accent}
label-focused-padding = 1 label-focused-padding = 2
label-unfocused = "%icon%" label-unfocused = "%icon%"
label-unfocused-padding = 1 label-unfocused-padding = 2
label-visible = "%icon%" label-visible = "%icon%"
label-visible-padding = 1 label-visible-padding = 2
label-urgent = "%icon%" label-urgent = "%icon%"
label-urgent-background = ${colors.urgent} label-urgent-background = ${colors.urgent}
label-urgent-padding = 1 label-urgent-padding = 2
label-mode = "%mode%" label-mode = "%mode%"
label-mode-padding = 1 label-mode-padding = 2
label-mode-foreground = ${colors.urgent} label-mode-foreground = ${colors.urgent}
[module/xwindow] [module/xwindow]
type = internal/xwindow type = internal/xwindow
label = %title% label = %title%
label-underline = ${colors.accent}
label-maxlen = 100 label-maxlen = 100
[module/date] [module/date]
type = internal/date type = internal/date
date = %a, %d.%b %Y %H:%M date = %a, %d.%b %Y %H:%M
format-prefix = " "
format-prefix-foreground = ${colors.accent-alt}
format-underline = ${colors.accent}
[module/backlight] [module/backlight]
type = internal/backlight type = internal/backlight
@@ -137,7 +144,15 @@ animation-charging-framerate = 750
[module/volume] [module/volume]
type = internal/pulseaudio type = internal/pulseaudio
format-volume = <ramp-volume> <label-volume> format-volume = <label-volume> <bar-volume>
click-right = pavucontrol &
bar-volume-width = 5
bar-volume-indicator = |
bar-volume-fill = ─
bar-volume-empty = ─
bar-volume-fill-foreground = #ffffff
ramp-volume-0 =  ramp-volume-0 = 
ramp-volume-1 =  ramp-volume-1 = 
@@ -146,10 +161,16 @@ ramp-volume-3 = 
ramp-volume-4 =  ramp-volume-4 = 
ramp-headphones-0 =  ramp-headphones-0 = 
ramp-headphones-1 =  ramp-headphones-1 = 
format-ramp-foreground = ${colors.accent}
#label-volume = %percentage%%
label-volume = " "
format-volume-foreground = ${colors.accent-alt}
format-volume-underline = ${colors.accent}
label-volume = %percentage%%
format-muted-prefix = " " format-muted-prefix = " "
label-muted = muted label-muted = Muted
format-muted-underline = ${colors.accent}
[module/network] [module/network]
type = internal/network type = internal/network
@@ -173,10 +194,13 @@ type = custom/script
exec = ~/.config/polybar/scripts/yay_updates.sh exec = ~/.config/polybar/scripts/yay_updates.sh
tail = true tail = true
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.accent-alt}
format-underline = ${colors.accent}
interval = 60 interval = 60
[module/spotify] [module/spotify]
type = custom/script type = custom/script
interval = 1 interval = 1
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.accent}
exec = python ~/.config/polybar/scripts/spotify_status.py -f '{artist}: {song}' exec = python ~/.config/polybar/scripts/spotify_status.py -f '{artist}: {song}'

View File

@@ -182,10 +182,27 @@ endif
" ++++++++++ Enable Language Servers " ++++++++++ Enable Language Servers
if has ("nvim") if has ("nvim")
if executable("pyls")
lua << EOF lua << EOF
require'nvim_lsp'.pyls.setup{} require'nvim_lsp'.pyls.setup{}
EOF
endif
if executable("rust-analyzer")
lua << EOF
require'nvim_lsp'.rust_analyzer.setup{} require'nvim_lsp'.rust_analyzer.setup{}
EOF
endif
if executable("texlab")
lua << EOF
require'nvim_lsp'.texlab.setup{} require'nvim_lsp'.texlab.setup{}
EOF
endif
if isdirectory($HOME. "/.cache/nvim/nvim_lsp/jdtls")
lua << EOF
require'nvim_lsp'.jdtls.setup{} require'nvim_lsp'.jdtls.setup{}
EOF EOF
endif endif
endif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 MiB

After

Width:  |  Height:  |  Size: 2.3 MiB