all repos — dotfiles @ 61b4f17b3d8ad52e14242f5e680f09350df11a4d

my *nix dotfiles

config/polybar/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:color21}
 16;bg = #001b2b34
 17bg = ${xrdb:color0}
 18
 19[bar/top]
 20width = 100%
 21height = 30 
 22offset-x = 0%
 23offset-y= 0%
 24fixed-center = true
 25override-redirect = false 
 26
 27
 28background = ${colors.bg}
 29foreground = ${colors.fg}
 30
 31font-0 = SF Mono:size=12:weight=semibold;3
 32
 33modules-left =  date time volume battery ewmh
 34modules-center =  
 35modules-right = xwindow
 36
 37tray-position = false
 38tray-padding = 0
 39tray-background = ${colors.bg}
 40tray-detached = false
 41
 42underline-size = 3
 43
 44spacing = 1 
 45padding-left = 1
 46padding-right = 1
 47module-margin-left = 2
 48module-margin-right = 2
 49
 50[module/volume]
 51type = internal/alsa
 52
 53format-volume = <label-volume>
 54label-volume = vol %percentage%%
 55module-margin-right = 1
 56
 57format-volume-background = ${colors.bg}
 58label-muted = muted
 59
 60
 61[module/xwindow]
 62type = internal/xwindow
 63label = %title:0:30:...%
 64format-prefix = " "
 65format-prefix-foreground = ${xrdb:color6}
 66module-margin-left = 2
 67format-padding = 2
 68format-background = ${colors.bg}
 69
 70[module/ewmh]
 71type = internal/xworkspaces
 72pin-workspaces = true
 73enable-scroll = true
 74
 75format = <label-state>
 76
 77label-active = ×
 78label-active-foreground = ${xrdb:color6}
 79label-active-background = ${colors.bg}
 80label-active-padding = 1
 81
 82label-empty = •
 83label-empty-foreground = ${colors.fg}
 84label-empty-background = ${colors.bg}
 85label-empty-padding = 1
 86
 87label-urgent = !
 88label-urgent-foreground = #EC5f67
 89label-urgent-background = ${colors.bg}
 90label-urgent-padding = 1
 91
 92
 93[module/date]
 94type = internal/date
 95interval = 1
 96date = %a, %d %b 
 97format-prefix-foreground = ${xrdb:color6}
 98
 99[module/time]
100type = internal/date
101interval = 1
102date = %I:%M 
103format-prefix-foreground = ${xrdb:color6}
104
105[module/battery]
106type = internal/battery
107full-at = 100
108battery = BAT0
109adapter = ACAD
110poll-interval = 5
111
112format-charging = <label-charging>
113format-discharging = <label-discharging>
114label-charging = bat+ %percentage%%
115label-charging-foreground = ${colors.fg}
116label-discharging = bat %percentage%%
117label-discharging-foreground = ${colors.fg}
118label-full = full!
119
120[module/spotipy]
121type = custom/script
122exec =  ~/scripts/spoti.py
123exec-if = pgrep spotify > /dev/null
124interval = 0.01
125click-left = playerctl -p spotify play-pause 
126
127; vim:ft=dosini