You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
dotfiles/polybar/config

319 lines
8.4 KiB

; vim:ft=dosini
[colors]
;# background = #16101a
;# foreground = #c5b1b2
;# color0 = #534b69
;# color1 = #9b2541
;# color2 = #30553f
;# color3 = #734419
;# color4 = #4c488d
;# color5 = #883073
;# color6 = #18546f
;# color7 = #decef8
;# color8 = #73524e
;# color9 = #9b3b5c
;# color10 = #4e5d47
;# color11 = #8e4728
;# color12 = #5c519b
;# color13 = #a23464
;# color14 = #2d5d87
;# color15 = #f3e5ff
# special
foreground = #fce8c3
foreground_bold = #fce8c3
cursor = #fbb829
cursor_foreground = #1c1b19
background = #701c1b19
# black
color0 = #1c1b19
color8 = #918175
# red
color1 = #ef2f27
color9 = #f75341
# green
color2 = #519f50
color10 = #98bc37
# yellow
color3 = #fbb829
color11 = #fed06e
# blue
color4 = #2c78bf
color12 = #68a8e4
# magenta
color5 = #e02c6d
color13 = #ff5c8f
# cyan
color6 = #0aaeb3
color14 = #53fde9
# white
color7 = #d0bfa1
color15 = #fce8c3
[global/wm]
margin-top = 1
margin-bottom = 1
[settings]
pseudo-transparency = true
;###################################################################################################
;###############################################BARS################################################
;###################################################################################################
[bar/base]
width = 100%
height = 14
offset-x = 0
offset-y = 0
wm-restack = bspwm
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
overline-size = 2
overline-color = ${colors.color4}
underline-size = 2
underline-color = ${colors.color4}
spacing = 0
padding-left = 0
padding-right = 0
module-margin-left = 0
module-margin-right = 0
font-0 = InconsolataLGC Nerd Font Mono:pixelsize=8;2
font-1 = InconsolataLGC Nerd Font Mono:pixelsize=12;3
font-2 = InconsolataLGC Nerd Font Mono:pixelsize=9;3
;###################################################################################################
[bar/maintop]
inherit = bar/base
#monitor = ${env:MONITOR:eDP-1}
bottom = false
modules-left = net netwifi
modules-center = bspwm
modules-right = date
; tray-position = center
; tray-maxsize = 17
; tray-padding = 3
;###################################################################################################
[bar/mainbot]
inherit = bar/base
#monitor = ${env:MONITOR:VGA-1}
bottom = true
modules-left =
modules-center =
modules-right = battery
tray-position = center
tray-maxsize = 12
tray-padding = 3
tray-background = ${colors.color0}
;###################################################################################################
;#############################################MODULES###############################################
;###################################################################################################
[module/bspwm]
type = internal/bspwm
pin-workspaces = false
inline-mode = false
enable-click = true
enable-scroll = true
reverse-scroll = true
fuzzy-match = true
label-focused = "%{T2}%{T-}"
label-occupied = "%{T2}%{T-}"
label-empty = "%{T2}%{T-}"
label-urgent = "%{T2}%{T-}"
; label-focused-foreground = ${colors.foreground}
; label-occupied-foreground = ${colors.foreground}
; label-empty-foreground = ${colors.foreground}
; label-urgent-foreground = ${colors.foreground}
; label-focused-background = ${colors.color4}
; label-occupied-background = ${colors.color4}
; label-empty-background = ${colors.color4}
; label-urgent-background = ${colors.color4}
label-monitor = %name%
; label-monitor-foreground = ${colors.foreground}
; label-monitor-background = ${colors.color4}
label-separator = " "
; label-separator-padding = 0
; label-separator-foreground = ${colors.foreground}
; label-separator-background = ${colors.color4}
format = <label-state>
format-background = ${colors.color13}
format-foreground = ${colors.color0}
format-padding = 1
format-margin = 1
[module/bspwmmonitor]
inherit = module/bspwm
format = <label-monitor>
###################################################################################################
[module/isrunning-compton]
type = custom/script
exec = ~/.config/polybar/scripts/isrunning-compton.sh
interval = 5
click-left = ~/.config/polybar/scripts/isrunning-compton.sh --toggle
format-background = ${colors.color0}
[module/weather]
type = custom/script
exec = ~/.config/polybar/scripts/weather.py
interval = 300
click-left = ~/.config/polybar/scripts/weather.py --rofi --hourly
click-right= ~/.config/polybar/scripts/weather.py --rofi --daily
format-background = ${colors.color7}
format-foreground = ${colors.color0}
format-padding = 2
[module/updatecounter]
type = custom/script
exec = ~/.config/polybar/scripts/updatecounter/updatecounter.sh
interval = 3600
format-foreground = ${colors.color0}
format-background = ${colors.color6}
click-left = termite --hold -e "sudo pacman -Syyu"
click-right = termite --hold -e "yay -Syyu"
[module/xwindow]
type = internal/xwindow
label = %title:0:120:...%
label-empty = "%{T2}ﱢﱢﱢﱢﱢ%{T-}"
label-foreground = ${colors.color18}
label-background = ${colors.color16}
label-empty-foreground = ${colors.color16}
label-empty-background = ${colors.color16}
label-padding = 4
;###################################################################################################
;##############################################date#################################################
;###################################################################################################
[module/date]
type = internal/date
; Seconds to sleep between updates
interval = 1.0
; See "man date" for details on how to format the date string
; NOTE: if you want to use syntax tags here you need to use %%{...}
date = %a %b %d,
; Optional time format
time = %H:%M
; if `date-alt` or `time-alt` is defined, clicking
; the module will toggle between formats
date-alt = %A, %d %B %Y
time-alt = %H:%M:%S
label = %date% %time%
format = %{T2}%{T-} <label>
format-foreground = ${colors.color0}
format-background = ${colors.color3}
format-padding = 1
format-margin = 1
;###################################################################################################
;#############################################battery###############################################
;###################################################################################################
[module/battery]
type = internal/battery
battery = BAT1
adapter = ADP1
full-at = 95
label-charging = %{T3}%{T-} %percentage:2:2%%
label-discharging = %{T3}%{T-} %percentage:2:2%%
label-full = %{T3}%{T-} MAX
format-charging = <label-charging>
format-discharging = <label-discharging>
format-full = <label-full>
format-charging-foreground = ${colors.color0}
format-discharging-foreground = ${colors.color0}
format-full-foreground = ${colors.color0}
format-charging-background = ${colors.color10}
format-discharging-background = ${colors.color11}
format-full-background = ${colors.color14}
format-charging-margin = 1
format-discharging-margin = 1
format-full-margin = 1
format-charging-padding = 1
format-discharging-padding = 1
format-full-padding = 1
;###################################################################################################
;#############################################network###############################################
;###################################################################################################
[module/net]
type = internal/network
interface = ${env:WIREDIF:eth0}
format-connected = <label-connected>
format-disconnected = <label-disconnected>
label-connected = %{T2}%{T-} %local_ip% %linkspeed%
label-disconnected = %{T2}%{T-}
format-connected-foreground = ${colors.color0}
format-disconnected-foreground = ${colors.color0}
format-connected-background = ${colors.color2}
format-disconnected-background = ${colors.color1}
format-connected-margin = 1
format-disconnected-margin = 1
format-connected-padding = 1
format-disconnected-padding = 1
[module/netwifi]
inherit = module/net
type = internal/network
interface = ${env:WIFIIF:wlan0}
label-connected = %{T2}%{T-} %essid% %local_ip%
label-disconnected = %{T2}%{T-}
;label-connected = %{T2}直%{T-} %essid% %upspeed:8:8% %downspeed:8:8%
;label-disconnected = %{T2}睊%{T-}