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

226 lines
5.4 KiB

4 years ago
[settings]
compositing-foreground = difference
5 years ago
[colors]
4 years ago
background = #00000000
#df151515
4 years ago
# ef1d1f21
4 years ago
foreground = #151515
#a4abb3
4 years ago
# 707880
4 years ago
line = #d1111111
4 years ago
border = #ef272727
accent = #c2bf616a
4 years ago
selected = #a84222
#cc6666
focused = #f0c674
5 years ago
[global/wm]
margin-top = 0
4 years ago
margin-bottom = 21
5 years ago
[bar/top]
4 years ago
font-0 = "Overpass Mono:pixelsize=12#2.25"
4 years ago
font-1 = "siji:pixelsize=10#1"
5 years ago
4 years ago
line-size = 1
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 = false
5 years ago
4 years ago
width = 100%
4 years ago
height = 21
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 = 18
padding-right = 18
4 years ago
module-margin = 1
5 years ago
4 years ago
#modules-left = dwm title
modules-left = dwm
4 years ago
modules-center =
modules-right = cmus pavolume time date
5 years ago
4 years ago
#################################################################################
5 years ago
# MODULES #
4 years ago
#################################################################################
[module/dwm]
type = internal/dwm
format = <label-tags> <label-layout> <label-floating> <label-title>
# Path to dwm socket (default: /tmp/dwm.sock)
# socket-path = /tmp/dwm.sock
# Left-click to view tag, right-click to toggle tag view
4 years ago
enable-tags-click = true
4 years ago
# Scroll to cycle between available tags
4 years ago
enable-tags-scroll = true
4 years ago
# If true and enable-tags-scroll = true, scrolling will view all tags regardless if occupied
tags-scroll-empty = false
# If true and enable-tags-scroll = true, scrolling will cycle through tags backwards
4 years ago
tags-scroll-reverse = true
4 years ago
# If true and enable-tags-scroll = true, wrap active tag when scrolling
4 years ago
tags-scroll-wrap = true
4 years ago
# Left-click to set secondary layout, right-click to switch to previous layout
4 years ago
enable-layout-click = true
4 years ago
# Scroll to cycle between available layouts
enable-layout-scroll = false
# Wrap when scrolling and reaching beginning/end of layouts
layout-scroll-wrap = false
# Reverse scroll direction
layout-scroll-reverse = false
# If enable-layout-click = true, clicking the layout symbol will switch to this layout
secondary-layout-symbol = [M]
# Separator in between shown tags
4 years ago
# label-separator = -
4 years ago
# Title of currently focused window
# Available tokens:
# %title%
label-title = %title%
label-title-padding = 1
4 years ago
label-title-foreground = ${colors.selected}
label-title-maxlen = 50
4 years ago
# Symbol of current layout
# Available tokens:
# %symbol%
label-layout = %symbol%
4 years ago
label-layout-padding = 1
4 years ago
label-layout-foreground = ${colors.foreground}
label-layout-background = ${colors.background}
# Text to show when currently focused window is floating
4 years ago
label-floating = *
4 years ago
# States: focused, unfocused, visible, urgent, empty
# Available tokens:
# %name%
# focused = Selected tag on focused monitor
label-focused = %name%
label-focused-background = ${colors.background}
label-focused-foreground = ${colors.selected}
label-focused-underline= ${colors.line}
label-focused-padding = 1
# unfocused = Unselected tag on unselected monitor
label-unfocused = %name%
4 years ago
label-unfocused-padding = 1
4 years ago
# visible = Unselected tag, but occupied tag on any monitor
label-visible = %name%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
# urgent = Unselected tag with window that has urgency hint set
4 years ago
label-urgent = [%name%]
#label-urgent-background = ${colors.selected}
label-urgent-foreground = ${colors.selected}
label-urgent-padding = 1
4 years ago
# empty = Unselected and unoccupied tag
# This can be set to an empty string to hide empty tags
4 years ago
label-empty = %name%
4 years ago
label-empty-background = ${colors.background}
label-empty-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>
4 years ago
format-underline = ${colors.line}
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
4 years ago
[module/updates]
type = custom/script
exec = ~/.config/polybar/scripts/updates.sh
interval = 300
label = %output%
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
4 years ago
[module/battery]
type = internal/battery
full-at = 98
time-format = %H:%M
format-charging = <animation-charging> <label-charging>
label-charging = %percentage%%
format-discharging = <ramp-capacity> <label-discharging>
label-discharging = %percentage%%
format-full = <label-full>
format-full-prefix = " "
format-full-prefix-foreground = ${colors.foreground}
ramp-capacity-0 =
ramp-capacity-1 =
ramp-capacity-2 =
ramp-capacity-foreground = ${colors.foreground}
animation-charging-0 =
animation-charging-1 =
animation-charging-2 =
animation-charging-foreground = ${colors.foreground}
animation-charging-framerate = 750