*nohtml*

config/polybar/config

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