all repos — dotfiles @ 39165f5c4bb0a00ded43fe700cf8ba1162a817a4

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