This is a collection of dotfiles and scripts for my bspwm setup
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.
 
 
 
 
 
 

194 lines
4.4 KiB

; -*- conf -*-
; https://github.com/polybar/polybar/wiki/Module:-bspwm
[module/bspwm]
type = internal/bspwm
label-focused = %name%
label-focused-foreground = ${colors.white-bright}
label-focused-background = ${wmcolors.bgcolor}
label-focused-underline= ${colors.blue}
label-focused-padding = 2
label-occupied = %name%
label-occupied-padding = 2
label-urgent = %name%
label-urgent-foreground = ${colors.white-bright}
label-urgent-background = ${wmcolors.bgcolor-urgent}
label-urgent-padding = 2
label-empty = %name%
label-empty-foreground = ${wmcolors.bgcolor}
label-empty-padding = 2
; https://github.com/polybar/polybar/wiki/Module:-xwindow
[module/title]
type = internal/xwindow
label = %title:0:50:...%
label-foreground = ${colors.white-bright}
[module/btc]
type = custom/script
interval = 300
exec = $HOME/.local/bin/panel/btc.sh
label = %output%
label-foreground = ${colors.white-bright}
; https://github.com/polybar/polybar/wiki/Module:-pulseaudio
[module/pulseaudio]
type = internal/pulseaudio
interval = 5
sink = alsa_output.pci-0000_00_1f.3.analog-stereo
use-ui-max = false
format-volume = %{A1:pavucontrol:}%{A2:volctl s 0:}%{A3:volctl t:}<ramp-volume> <label-volume>%{A}%{A}%{A}
format-volume-foreground = ${colors.white-bright}
ramp-volume-0 =
ramp-volume-1 =
ramp-volume-2 =
ramp-volume-3 =
label-volume = %percentage%%
format-muted = %{A1:pavucontrol:}%{A2:volctl s 0:}%{A3:volctl t:}<label-muted>%{A}%{A}%{A}
format-muted-foreground = ${wmcolors.fgcolor-inactive}
label-muted = %percentage%%
; https://github.com/polybar/polybar/wiki/Module:-backlight
[module/backlight-acpi]
type = internal/backlight
card = intel_backlight
format = %{A3:brictl s 30:}%{A4:brictl i 10:}%{A5:brictl d 10:}<ramp> <label>%{A}%{A}%{A}
format-foreground = ${colors.white-bright}
ramp-0 = %{T3}%{T-}
ramp-1 = %{T3}%{T-}
ramp-2 =
ramp-3 =
ramp-4 =
ramp-5 =
ramp-6 = %{T4}%{T-}
ramp-7 = %{T4}%{T-}
label = %percentage%%
; https://github.com/polybar/polybar/wiki/Module:-network
[module/wlan]
type = internal/network
interval = 10
interface = wlan0
format-connected = %{A1:$HOME/.local/bin/panel/wifi.sh:}<label-connected>%{A}
format-connected-foreground = ${colors.white-bright}
label-connected = %signal%%
format-disconnected =
format-disconnected-foreground = ${wmcolors.fgcolor-inactive}
; https://github.com/polybar/polybar/wiki/Module:-network
[module/eth]
type = internal/network
interval = 10
interface = eth0
format-connected = %{A1:$HOME/.local/bin/panel/iface.sh:}<label-connected>%{A}
format-connected-foreground = ${colors.white-bright}
label-connected =
format-disconnected =
format-disconnected-foreground = ${wmcolors.fgcolor-inactive}
; https://github.com/polybar/polybar/wiki/Module:-battery
[module/battery]
type = internal/battery
poll-interval = 30
battery = BAT0
adapter = ADP1
full-at = 98
time-format = %H:%M
format-charging = <label-charging>
format-charging-foreground = ${colors.white-bright}
label-charging = %percentage%% (%time%)
format-full = 100%
format-full-foreground = ${colors.green-bright}
format-discharging = <ramp-capacity> <label-discharging>
format-discharging-foreground = ${colors.white-bright}
ramp-capacity-0 = %{F#dc7a43}
ramp-capacity-1 =
ramp-capacity-2 =
ramp-capacity-3 =
ramp-capacity-4 =
label-discharging = %percentage%% (%time%)
; https://github.com/polybar/polybar/wiki/Module:-script
[module/battery-low]
type = custom/script
interval = 30
exec = $HOME/.local/bin/panel/battery.sh
format =
; https://github.com/polybar/polybar/wiki/Module:-date
[module/date]
type = internal/date
interval = 5
time = %I:%M %p
time-alt =
format = %{A1:$HOME/.local/bin/panel/date.sh:}<label>%{A}
format-foreground = ${colors.white-bright}
label = %{T4}%{T-} %time%
; https://github.com/polybar/polybar/wiki/Module:-menu
[module/powermenu]
type = custom/menu
expand-right = true
format-spacing = 2
label-open =
label-open-foreground = ${colors.red}
label-close = cancel
label-close-foreground = ${colors.red}
label-separator = |
label-separator-foreground = ${colors.white-bright}
menu-0-0 = shutdown
menu-0-0-exec = menu-open-1
menu-0-1 = reboot
menu-0-1-exec = menu-open-2
menu-0-2 = logout
menu-0-2-exec = menu-open-3
menu-0-3 = suspend
menu-0-3-exec = menu-open-4
menu-1-0 = shutdown
menu-1-0-exec = systemctl poweroff
menu-2-0 = reboot
menu-2-0-exec = systemctl reboot
menu-3-0 = logout
menu-3-0-exec = bspc quit
menu-4-0 = suspend
menu-4-0-exec = systemctl suspend