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