Configuration files for my GNU/Linux installation.
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

131 lines
2.5 KiB

5 years ago
[colors]
4 years ago
background = #df242424
4 years ago
# ef1d1f21
foreground = #a4abb3
# 707880
line = #f00
border = #ef272727
accent = #c2bf616a
5 years ago
[global/wm]
margin-top = 0
4 years ago
margin-bottom = 20
5 years ago
[bar/top]
4 years ago
font-0 = "Overpass Mono:pixelsize=10;2.25"
font-1 = "siji:pixelsize=10;1"
5 years ago
4 years ago
monitor = ${env:MONITOR}
5 years ago
4 years ago
scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev
5 years ago
4 years ago
fixed-center = true
4 years ago
#override-redirect = true
4 years ago
wm-restack = i3
5 years ago
4 years ago
#width = 80%
height = 22
5 years ago
4 years ago
#offset-x = 10%
#offset-y = 5
5 years ago
4 years ago
background = ${colors.background}
foreground = ${colors.foreground}
5 years ago
4 years ago
radius = 0.0
5 years ago
4 years ago
# line-size = 1
# line-color = ${colors.line}
5 years ago
4 years ago
# border-size = 1
# border-color = ${colors.border}
5 years ago
4 years ago
padding-left = 1
padding-right = 1
module-margin = 1
5 years ago
4 years ago
modules-left = i3 title
modules-center = time
modules-right = cmus pavolume date
5 years ago
4 years ago
#############################################
5 years ago
# MODULES #
4 years ago
#############################################
5 years ago
[module/i3]
type = internal/i3
4 years ago
format = <label-state> <label-mode>
5 years ago
index-sort = true
pin-workspaces = true
wrapping-scroll = true
strip-wsnumbers = true
4 years ago
label-focused = %index%
label-focused-foreground = #cc6666
label-focused-background = ${colors.background}
label-focused-underline = #fba922
label-focused-padding = 1
5 years ago
4 years ago
label-unfocused = %index%
label-unfocused-padding = 1
5 years ago
4 years ago
label-visible = %index%
label-visible-underline = #555555
label-visible-padding = 1
5 years ago
4 years ago
label-urgent = %index%
label-urgent-foreground = #000000
label-urgent-background = #bd2c40
label-urgent-padding = 1
5 years ago
[module/cmus]
type = custom/script
exec = ~/.config/polybar/scripts/cmus.sh
exec-if = pgrep -x cmus
interval = 1
click-left = cmus-remote --next
click-right = cmus-remote --prev
click-middle = cmus-remote --pause
scroll-up = cmus-remote --volume +5%
scroll-down = cmus-remote --volume -5%
label-font = 3
format = <label>
format-underline = ${colors.accent}
label = %output%
label-maxlen = 50
4 years ago
[module/pavolume]
type = custom/script
tail = true
label = %output%
exec = ~/.config/polybar/scripts/pavolume.sh --listen
click-right = exec pavucontrol
click-left = ~/.config/polybar/scripts/pavolume.sh --togmute
scroll-up = ~/.config/polybar/scripts/pavolume.sh --up
scroll-down = ~/.config/polybar/scripts/pavolume.sh --down
5 years ago
[module/date]
type = internal/date
4 years ago
label = %date%
5 years ago
date = %Y-%m-%d
time = %H:%M:%S
interval = 1
4 years ago
[module/time]
type = internal/date
label = %time%
time = %H:%M:%S
interval = 1
5 years ago
4 years ago
[module/title]
5 years ago
type = internal/xwindow
4 years ago
format-background = ${colors.background}
format-foreground = #f0c674
format-padding = 1
label-maxlen = 50