config/polybar/config

   1 [colors]
   2 bg  = ${xrdb:background}
   3 bga = ${xrdb:background_argb}
   4 fg  = ${xrdb:foreground}
   5 ug  = ${xrdb:color12}
   6 
   7 [settings]
   8 locale = ru_RU.UTF-8
   9 font-0 = Terminus-9;2
  10 font-1 = Nerdfont-8;2
  11 font-2 = Ubuntu-8:antialias=false;1
  12 font-3 = Emoji:scale=15;1
  13 
  14 background = #0000
  15 foreground = ${colors.fg}
  16 
  17 module-margin-left  = 1
  18 module-margin-right = 1
  19 
  20 tray-padding  = 4
  21 tray-position = right
  22 tray-background = ${colors.bga}
  23 
  24 [bar/i3]
  25 inherit = settings
  26 
  27 height = 28
  28 background = ${colors.bga}
  29 
  30 modules-left   = workspaces window netiface
  31 modules-center = days mail news torrents weather music
  32 modules-right  = network netspeed mixer volume lang date
  33 
  34 [bar/dwm]
  35 inherit = settings
  36 override-redirect = true
  37 
  38 width  = 55%
  39 height = 26
  40 offset-x = 45%
  41 
  42 modules-left   = days mail news torrents weather music
  43 modules-center = netiface
  44 modules-right  = network netspeed mixer volume lang date
  45 
  46 [bar/awesome]
  47 inherit = settings
  48 
  49 width  = 25%
  50 height = 24
  51 offset-x = 75%
  52 
  53 modules-right = days weather mail network mixer volume lang date
  54 
  55 [bar/qtile]
  56 inherit = bar/i3
  57 override-redirect = true
  58 modules-left = xworkspaces window netiface
  59 
  60 # Internals {{{
  61 
  62 [module/workspaces]
  63 type = internal/i3
  64 
  65 label-focused = %index%
  66 label-focused-padding = 2
  67 label-focused-background = ${colors.fg}
  68 label-focused-foreground = ${colors.bg}
  69 
  70 label-unfocused = %index%
  71 label-unfocused-padding = 2
  72 
  73 label-urgent = %index%
  74 label-urgent-padding = 2
  75 label-urgent-background = ${colors.ug}
  76 label-urgent-foreground = ${colors.bg}
  77 
  78 [module/xworkspaces]
  79 type = internal/xworkspaces
  80 
  81 label-active = %name%
  82 label-active-padding = 2
  83 label-active-background = ${colors.fg}
  84 label-active-foreground = ${colors.bg}
  85 
  86 label-occupied = %name%
  87 label-occupied-background = #ff0000
  88 
  89 label-empty = %name%
  90 label-empty-padding = 2
  91 
  92 label-urgent = %name%
  93 label-urgent-padding = 2
  94 label-urgent-background = ${colors.ug}
  95 label-urgent-foreground = ${colors.bg}
  96 
  97 [module/window]
  98 type = internal/xwindow
  99 label-maxlen = 100
 100 
 101 [module/lang]
 102 type = internal/xkeyboard
 103 
 104 label-layout = "  %name:0:2% "
 105 label-indicator-on = %name:0:4%
 106 
 107 [module/date]
 108 type = internal/date
 109 
 110 date = "%H:%M "
 111 date-alt = "%a, %d %B %T "
 112 
 113 # }}}
 114 # Scripts {{{
 115 
 116 [module/mail]
 117 type = custom/script
 118 exec = status mail
 119 interval = 2
 120 click-left = start mail
 121 click-right = status -n mail
 122 
 123 [module/news]
 124 type = custom/script
 125 exec = status news
 126 interval = 2
 127 click-left = start news
 128 click-right = status -n news
 129 
 130 [module/days]
 131 type = custom/script
 132 exec = status days
 133 interval = 5
 134 click-left = status -n days
 135 click-right = status -n days
 136 
 137 [module/music]
 138 type = custom/script
 139 exec = status music
 140 interval = 2
 141 click-left = start music
 142 click-middle = music pause
 143 click-right = status -n music
 144 
 145 [module/torrents]
 146 type = custom/script
 147 exec = status torrents
 148 click-left = start torrents
 149 click-right = status -n torrents
 150 
 151 [module/weather]
 152 type = custom/script
 153 exec = status weather
 154 interval = 2
 155 click-left = status -n weather
 156 click-right = status -n weather
 157 
 158 # }}}
 159 # Network {{{
 160 
 161 [module/netiface]
 162 type = custom/script
 163 exec = nmcli dev | awk 'NR == 2 { print "netiface: " $1 }' | xrdb -merge
 164 interval = 10
 165 
 166 [module/network]
 167 type = custom/script
 168 exec = status -i network
 169 
 170 click-left = pkill nm-applet || nm-applet &
 171 
 172 [module/netspeed]
 173 type = internal/network
 174 
 175 interface = ${xrdb:netiface:eth0}
 176 accumulate-stats = true
 177 
 178 label-connected = %downspeed% %upspeed%
 179 label-disconnected =
 180 
 181 # }}}
 182 # Volume {{{
 183 
 184 [module/mixer]
 185 type = custom/script
 186 exec = status -i mixer
 187 
 188 click-left = pavucontrol &
 189 
 190 [module/volume]
 191 type = internal/alsa
 192 
 193 format-volume = <bar-volume>
 194 format-muted = ${self.format-volume}
 195 format-muted-foreground = ${xrdb:color8}
 196 
 197 bar-volume-width = 20
 198 bar-volume-indicator = |
 199 bar-volume-fill  = •
 200 bar-volume-empty = •
 201 bar-volume-empty-foreground = ${xrdb:color8}
 202 
 203 format-volume-font = 3
 204 format-muted-font  = 3
 205 
 206 # }}}
 207 
 208 # vim: ft=dosini