config/polybar/config

   1 [bar/top]
   2 width = 100%
   3 height = 28
   4 
   5 locale = ru_RU.UTF-8
   6 font-0 = Terminus-8;2
   7 font-1 = Nerd-8;2
   8 font-2 = Nerd-8;3
   9 font-3 = Ubuntu-8:antialias=false;2
  10 font-4 = Emoji:scale=15;1
  11 
  12 background = ${xrdb:bga:#aa000000}
  13 foreground = ${xrdb:fg:#eeeeee}
  14 
  15 module-margin-left = 1
  16 module-margin-right = 1
  17 
  18 modules-left = i3 window netiface
  19 modules-center = mail news torrents weather music
  20 modules-right = network netspeed mixer volume lang days date
  21 
  22 tray-padding = 4
  23 tray-position = right
  24 
  25 # Internals {{{
  26 
  27 [module/i3]
  28 type = internal/i3
  29 
  30 label-focused = %index%
  31 label-focused-padding = 2
  32 label-focused-background = ${bar/top.foreground}
  33 label-focused-foreground = ${bar/top.background}
  34 
  35 label-unfocused = ${self.label-focused}
  36 label-unfocused-padding = ${self.label-focused-padding}
  37 
  38 label-urgent = ${self.label-focused}
  39 label-urgent-padding = ${self.label-focused-padding}
  40 label-urgent-background = ${xrdb:color12:#fff}
  41 label-urgent-foreground = ${self.label-focused-foreground}
  42 
  43 [module/window]
  44 type = internal/xwindow
  45 label-maxlen = 100
  46 
  47 [module/lang]
  48 type = internal/xkeyboard
  49 
  50 label-layout = "  %name:0:2% "
  51 label-indicator-on = %name:0:4%
  52 
  53 [module/date]
  54 type = internal/date
  55 
  56 date = "%H:%M "
  57 date-alt = "%a, %d %B %T "
  58 
  59 # }}}
  60 # Scripts {{{
  61 
  62 [module/mail]
  63 type = custom/script
  64 exec = status -i mail
  65 interval = 2
  66 click-left = start mail
  67 click-right = status -n mail
  68 
  69 [module/news]
  70 type = custom/script
  71 exec = status -i news
  72 interval = 2
  73 click-left = start news
  74 click-right = status -n news
  75 
  76 [module/days]
  77 type = custom/script
  78 exec = status days
  79 interval = 5
  80 click-left = status -n days
  81 click-right = status -n days
  82 
  83 [module/music]
  84 type = custom/script
  85 exec = status -I music
  86 interval = 2
  87 click-left = start music
  88 click-middle = music pause
  89 click-right = status -n music
  90 
  91 [module/torrents]
  92 type = custom/script
  93 exec = status -i torrents
  94 click-left = start torrents
  95 click-right = status -n torrents
  96 
  97 [module/weather]
  98 type = custom/script
  99 exec = status -I weather
 100 interval = 2
 101 click-left = status -n weather
 102 click-right = status -n weather
 103 
 104 # }}}
 105 # Network {{{
 106 
 107 [module/netiface]
 108 type = custom/script
 109 exec = nmcli dev | awk 'NR == 2 { print "netiface: " $1 }' | xrdb -merge
 110 interval = 10
 111 
 112 [module/network]
 113 type = custom/script
 114 exec = status -i network
 115 
 116 click-left = start nmtui
 117 click-right = status -n network
 118 
 119 [module/netspeed]
 120 type = internal/network
 121 
 122 interface = ${xrdb:netiface:eth0}
 123 accumulate-stats = true
 124 
 125 label-connected = %downspeed% %upspeed%
 126 label-disconnected = ${self.label-connected}
 127 
 128 # }}}
 129 # Volume {{{
 130 
 131 [module/mixer]
 132 type = custom/script
 133 exec = status -i mixer
 134 
 135 click-left = pavucontrol &
 136 click-right = status -n volume
 137 
 138 label-font = 3
 139 
 140 [module/volume]
 141 type = internal/alsa
 142 
 143 format-volume = <bar-volume>
 144 format-muted = ${self.format-volume}
 145 format-muted-foreground = ${xrdb:color8:#888}
 146 
 147 bar-volume-width = 20
 148 bar-volume-indicator = |
 149 bar-volume-fill = •
 150 bar-volume-empty = ${self.bar-volume-fill}
 151 bar-volume-empty-foreground = ${self.format-muted-foreground}
 152 
 153 format-volume-font = 4
 154 format-muted-font = ${self.format-volume-font}
 155 
 156 # }}}
 157 
 158 # vim: ft=dosini