1
0
Fork 0
dotfiles/polybar/config
2021-11-09 12:16:41 +01:00

200 lines
3.8 KiB
Text

[colors]
background = ${xrdb:color0:#222}
color1 = ${xrdb:color2}
color2 = ${xrdb:color4}
color3 = ${xrdb:color6}
; _
; | |__ __ _ _ __ ___
; | '_ \ / _` | '__/ __|
; | |_) | (_| | | \__ \
; |_.__/ \__,_|_| |___/
[bar/base]
enable-ipc = true
font-0=cherry:size=14;3
font-1=FontAwesome5Free:style=Regular:pixelsize=8:antialias=true;2
font-2=FontAwesome5Free:style=Solid:pixelsize=8:antialias=true;2
font-3=IPAGothic:style=Regular:size=11:antialias=true;3
bottom = true
border-size = 0
border-color = ${self.foreground}
height = 50
background = ${colors.background}
override-redirect=false
offset-y = 10
wm-restack = bspwm
[bar/ws]
inherit = bar/base
width = 36%
bottom = true
foreground = ${colors.color1}
offset-x = 10
; bspwm
modules-left = bspwm xwindow
scroll-up = bspwm-desknext
scroll-down = bspwm-deskprev
[bar/music]
inherit = bar/base
enable-ipc = true
width = 32%
foreground = ${colors.color2}
offset-x = 50.7%
modules-left = battery
modules-right= network
padding = 10
[bar/tray]
inherit = bar/base
width = 16.2%
offset-x = 83.3%
foreground = ${colors.color3}
;tray-position = right
modules-left = pulseaudio time power
[bar/dummy]
height = 60
background = #0000
modules-center = dummy-module
override-redirect = false
bottom = true
; _ _
; _ __ ___ ___ __| |_ _| | ___ ___
; | '_ ` _ \ / _ \ / _` | | | | |/ _ \/ __|
; | | | | | | (_) | (_| | |_| | | __/\__ \
; |_| |_| |_|\___/ \__,_|\__,_|_|\___||___/
[module/wsnumber]
type = custom/script
exec = ~/.config/polybar/get_workspace
tail = true
interval = 0
format-padding = 0
format = "<label> "
format-foreground = ${colors.background}
format-background = ${colors.color1}
scroll-up = i3 workspace next
scroll-down = i3 workspace prev
[module/dummy-module]
type = custom/text
content = " "
[module/xwindow]
type = internal/xwindow
label = %title:0:40:...%
label-foreground = ${colors.color1}
label-background = ${colors.background}
label-padding = 5
[module/bspwm]
type = internal/bspwm
format = <label-state>
format-padding = 5
format-background = ${colors.color1}
format-foreground = ${colors.background}
enable-click = true
enable-scroll = true
reverse-scroll = false
label-focused = a
label-focused-font = 5
label-focused-foreground = ${colors.background}
label-focused-padding = 1
label-empty =
label-occupied = s
label-occupied-font = 2
label-occupied-padding = 1
label-occupied-foreground = ${colors.background}
label-urgent = 
label-urgent-font = 1
label-urgent-padding = 1
label-urgent-foreground = ${colors.background}
ws-icon-0 = 1;
ws-icon-1 = 2;
ws-icon-2 = 3;
ws-icon-9 = 10;
ws-icon-default = 
[module/power]
type = custom/text
content = 
content-foreground = ${colors.color3}
click-left = powermenu
content-margin = 0
[module/time]
type = internal/date
interval = 10
format-margin = 5
time = "%H:%M"
date = "%d %b"
label = %date%, %time%
label-foreground = ${colors.color3}
label-background = ${colors.background}
[module/pulseaudio]
type = internal/pulseaudio
format-volume-padding = 5
format-volume = <ramp-volume> <label-volume>
label-volume = %percentage:3:3%%
format-volume-background = ${colors.color3}
format-volume-foreground = ${colors.background}
use-ui-max = false
interval = 5
ramp-volume-0 = ""
ramp-volume-1 = ""
ramp-volume-2 = ""
label-muted = " muted"
label-muted-background = ${colors.background}
label-muted-foreground = ${colors.color3}
label-muted-padding = 4
[module/network]
type = internal/network
interface = wlp0s20f3
interval = 3.0
ping-interval = 3.0
[module/battery]
type = internal/battery
full-at = 99
battery = BAT0
adapter = ADP1
poll-interval = 5
[settings]
screenchange-reload = true
[global/wm]
margin-top = 0
margin-bottom = 0