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 # Internals {{{
  56 
  57 [module/workspaces]
  58 type = internal/i3
  59 
  60 label-focused = %index%
  61 label-focused-padding = 2
  62 label-focused-background = ${colors.fg}
  63 label-focused-foreground = ${colors.bg}
  64 
  65 label-unfocused = %index%
  66 label-unfocused-padding = 2
  67 
  68 label-urgent = %index%
  69 label-urgent-padding = 2
  70 label-urgent-background = ${colors.ug}
  71 label-urgent-foreground = ${colors.bg}
  72 
  73 [module/xworkspaces]
  74 type = internal/xworkspaces
  75 
  76 label-active = %index%
  77 label-active-padding = 2
  78 label-active-background = ${colors.fg}
  79 label-active-foreground = ${colors.bg}
  80 
  81 label-empty = %index%
  82 label-empty-padding = 2
  83 
  84 label-urgent = %index%
  85 label-urgent-padding = 2
  86 label-urgent-background = ${colors.ug}
  87 label-urgent-foreground = ${colors.bg}
  88 
  89 [module/window]
  90 type = internal/xwindow
  91 label-maxlen = 100
  92 
  93 [module/lang]
  94 type = internal/xkeyboard
  95 
  96 label-layout = "  %name:0:2% "
  97 label-indicator-on = %name:0:4%
  98 
  99 [module/date]
 100 type = internal/date
 101 
 102 date = "%H:%M "
 103 date-alt = "%a, %d %B %T "
 104 
 105 # }}}
 106 # Scripts {{{
 107 
 108 [module/mail]
 109 type = custom/script
 110 exec = status mail
 111 interval = 2
 112 click-left = start mail
 113 click-right = status -n mail
 114 
 115 [module/news]
 116 type = custom/script
 117 exec = status news
 118 interval = 2
 119 click-left = start news
 120 click-right = status -n news
 121 
 122 [module/days]
 123 type = custom/script
 124 exec = status days
 125 interval = 5
 126 click-left = status -n days
 127 click-right = status -n days
 128 
 129 [module/music]
 130 type = custom/script
 131 exec = status music
 132 interval = 2
 133 click-left = start music
 134 click-middle = music pause
 135 click-right = status -n music
 136 
 137 [module/torrents]
 138 type = custom/script
 139 exec = status torrents
 140 click-left = start torrents
 141 click-right = status -n torrents
 142 
 143 [module/weather]
 144 type = custom/script
 145 exec = status weather
 146 interval = 2
 147 click-left = status -n weather
 148 click-right = status -n weather
 149 
 150 # }}}
 151 # Network {{{
 152 
 153 [module/netiface]
 154 type = custom/script
 155 exec = nmcli dev | awk 'NR == 2 { print "netiface: " $1 }' | xrdb -merge
 156 interval = 10
 157 
 158 [module/network]
 159 type = custom/script
 160 exec = status -i network
 161 
 162 click-left = pkill nm-applet || nm-applet &
 163 
 164 [module/netspeed]
 165 type = internal/network
 166 
 167 interface = ${xrdb:netiface:eth0}
 168 accumulate-stats = true
 169 
 170 label-connected = %downspeed% %upspeed%
 171 label-disconnected =
 172 
 173 # }}}
 174 # Volume {{{
 175 
 176 [module/mixer]
 177 type = custom/script
 178 exec = status -i mixer
 179 
 180 click-left = pavucontrol &
 181 
 182 [module/volume]
 183 type = internal/alsa
 184 
 185 format-volume = <bar-volume>
 186 format-muted = ${self.format-volume}
 187 format-muted-foreground = ${xrdb:color8}
 188 
 189 bar-volume-width = 20
 190 bar-volume-indicator = |
 191 bar-volume-fill  = •
 192 bar-volume-empty = •
 193 bar-volume-empty-foreground = ${xrdb:color8}
 194 
 195 format-volume-font = 3
 196 format-muted-font  = 3
 197 
 198 # }}}
 199 
 200 # vim: ft=dosini