all repos — dotfiles @ 0427de9ac0b3e27fb2aadc1d06f8803381b03866

my *nix dotfiles

config/polybar/i3_bar (view raw)

  1;                 __      __              
  2;    ____  ____  / /_  __/ /_  ____ ______
  3;   / __ \/ __ \/ / / / / __ \/ __ `/ ___/
  4;  / /_/ / /_/ / / /_/ / /_/ / /_/ / /    
  5; / .___/\____/_/\__, /_.___/\__,_/_/     
  6;/_/            /____/                    
  7;
  8;
  9
 10[global/wm]
 11;margin-top = 
 12;margin-bottom = 2
 13
 14[colors]
 15fg = ${xrdb:color7}
 16bg = ${xrdb:color0}
 17
 18[bar/top]
 19width = 100%
 20height = 24
 21offset-x = 0%
 22offset-y= 0%
 23;fixed-center = 
 24override-redirect = false 
 25
 26
 27background = ${colors.bg}
 28foreground = ${colors.fg}
 29
 30font-0 = bitbuntufull:size=8:;0
 31font-1 = FontAwesome:size=10:;2
 32;font-2 = MaterialIcons-Regular:size=11:;2
 33font-2 = Wuncon Siji:pixelsize=8:;1
 34
 35modules-left =  date time ssid volume battery 
 36modules-center = xwindow
 37modules-right = spotipy i3
 38
 39tray-position = right
 40tray-padding = 2
 41tray-background = ${colors.bg}
 42tray-transparent = false
 43tray-detached = false
 44
 45underline-size = 3
 46
 47spacing = 1 
 48padding-left = 0
 49padding-right = 0
 50module-margin-left = 2
 51module-margin-right = 2
 52
 53[module/volume]
 54type = internal/volume
 55
 56format-volume = <ramp-volume><label-volume>
 57module-margin-right = 1
 58ramp-volume-0 = 
 59ramp-volume-1 = 
 60ramp-volume-2 = 
 61
 62format-volume-foreground = ${colors.fg}
 63format-volume-background = ${colors.bg}
 64
 65label-muted = muted 
 66
 67
 68[module/xwindow]
 69type = internal/xwindow
 70label = %title:0:30:...%
 71module-margin-left = 2
 72format-padding = 2
 73format-background = ${colors.bg}
 74
 75[module/i3]
 76type = internal/i3
 77strip-wsnumbers = true
 78enable-click = false
 79index-sort = true
 80format = <label-state>
 81
 82label-focused =  
 83label-focused-foreground = ${colors.fg}
 84label-focused-background = ${colors.bg}
 85label-focused-padding = 1
 86
 87label-unfocused = 
 88label-unfocused-foreground = ${colors.fg}
 89label-unfocused-background = ${colors.bg}
 90label-unfocused-padding = 1
 91
 92label-urgent = 
 93label-urgent-foreground = #EC5f67
 94label-urgent-background = ${colors.bg}
 95label-urgent-padding = 1
 96
 97
 98[module/date]
 99type = internal/date
100interval = 1
101date = " %A, %d %B 
102
103[module/time]
104type = internal/date
105interval = 1
106date = " %I:%M"
107;format = %date% 
108;format-padding = 1
109;format-background = #73ecec
110;format-foreground = #075859
111
112[module/battery]
113type = internal/battery
114full-at = 100
115battery = BAT1
116adapter = ACAD
117poll-interval = 5
118
119format-charging = <animation-charging><label-charging>
120format-discharging = <ramp-capacity><label-discharging>
121label-charging = %percentage%%
122label-charging-foreground = ${colors.fg}
123label-discharging = %percentage%%
124label-discharging-foreground = ${colors.fg}
125label-full =  full!
126ramp-capacity-foreground = ${colors.fg}
127ramp-capacity-0 = 
128ramp-capacity-1 = 
129ramp-capacity-2 = 
130ramp-capacity-3 = 
131ramp-capacity-4 = 
132bar-capacity-width = 10
133animation-charging-0 = 
134animation-charging-1 = 
135animation-charging-2 = 
136animation-charging-3 = 
137animation-charging-4 = 
138animation-charging-foreground = ${colors.fg}
139animation-charging-framerate = 750
140
141[module/powermenu]
142type = custom/menu
143
144label-open =  power 
145label-open-foreground = #900000
146label-open-background = ${colors.bg}
147label-close = 
148label-close-foreground = ${colors.fg}
149label-close-background = ${colors.bg}
150label-separator = 
151label-separator-foreground = #666666
152label-separator-background = ${colors.bg}
153
154menu-0-0 =
155menu-0-0-exec = menu-open-1
156menu-0-1 =
157menu-0-1-exec = menu-open-2
158menu-0-2 =
159menu-0-2-exec = menu-open-3
160
161menu-1-0 =
162menu-1-0-exec = menu-open-0
163menu-1-1 =
164menu-1-1-exec = systemctl reboot
165
166menu-2-0 =
167menu-2-0-exec = systemctl poweroff
168menu-2-1 =
169menu-2-1-exec = menu-open-0
170
171menu-3-0 =
172menu-3-0-exec = i3-msg exit
173menu-3-1 =
174menu-3-1-exec = menu-open-0
175
176[module/pkg]
177type = custom/script
178interval = 1200
179format = <label>
180;format-underline = #dc322f
181label = "%output:0:30%"
182exec = ~/scripts/spoti.py
183exec-if = "ping -q -w 2 -c 1 176.34.135.167 > /dev/null"
184
185[module/spotipy]
186type = custom/script
187exec =  ~/scripts/spoti.py
188exec-if = pgrep spotify > /dev/null
189interval = 0.01
190click-left = playerctl -p spotify play-pause 
191
192[module/ssid]
193type = custom/script
194label =  
195format = <label><exec>
196exec = echo  && iwgetid -r
197exec-if = "ping -q -w 2 -c 1 176.34.135.167 > /dev/null"
198interval = 0.01
199click-left = nm-applet
200click-right = nm-connection-editor
201
202; vim:ft=dosini