config/polybar/config

   1 # bar/top {{{
   2 
   3 [bar/top]
   4 width = 100%
   5 height = 28
   6 
   7 font-0 = -misc-fixed-medium-r-s*-13-*-iso10646-1
   8 font-1 = Font Awesome:size=8
   9 
  10 background = #222228
  11 foreground = #d8dade
  12 
  13 underline-size = 2
  14 underline-color = #00f
  15 
  16 module-margin-left = 1
  17 module-margin-right = 0
  18 
  19 modules-left = i3 xwindow
  20 modules-center = mail news todo music
  21 modules-right = lan wlan volume xkeyboard date
  22 
  23 tray-position = right
  24 tray-padding = 2
  25 
  26 # }}}
  27 # bar/bottom {{{
  28 
  29 [bar/bottom]
  30 inherit = bar/top
  31 bottom = true
  32 
  33 # }}}
  34 # module/i3 {{{
  35 
  36 [module/i3]
  37 type = internal/i3
  38 
  39 label-focused = %index%
  40 label-focused-padding = 2
  41 label-focused-background = #37373f
  42 label-focused-underline= #87af5f
  43 
  44 label-unfocused = ${self.label-focused}
  45 label-unfocused-padding = ${self.label-focused-padding}
  46 
  47 label-urgent = ${self.label-focused}
  48 label-urgent-padding = ${self.label-focused-padding}
  49 label-urgent-foreground = ${self.label-focused-background}
  50 label-urgent-background = ${self.label-focused-underline}
  51 label-urgent-underline = ${self.label-focused-background}
  52 
  53 # }}}
  54 # module/xwindow {{{
  55 
  56 [module/xwindow]
  57 type = internal/xwindow
  58 format-underline = #a8aaae
  59 
  60 # }}}
  61 # module/music {{{
  62 
  63 [module/music]
  64 type = custom/script
  65 interval = 2
  66 
  67 exec = echo $(music.sh)
  68 format-underline = #d7af87
  69 
  70 click-left = music.sh pause
  71 click-right = start.sh music
  72 scroll-up = music.sh prev
  73 scroll-down = music.sh next
  74 
  75 # }}}
  76 # module/mail {{{
  77 
  78 [module/mail]
  79 type = custom/script
  80 interval = 2
  81 
  82 exec = echo " $(~/.config/polybar/mail.sh 60)"
  83 format-underline = #d70087
  84 
  85 click-left = ~/.config/polybar/mail.sh 0
  86 click-right = start.sh mail
  87 
  88 # }}}
  89 # module/news {{{
  90 
  91 [module/news]
  92 type = custom/script
  93 interval = 2
  94 
  95 exec = echo " $(~/.config/polybar/news.sh 60)"
  96 format-underline = #00d787
  97 
  98 click-left = ~/.config/polybar/news.sh 0
  99 click-right = start.sh news
 100 
 101 # }}}
 102 # module/todo {{{
 103 
 104 [module/todo]
 105 type = custom/script
 106 interval = 5
 107 
 108 exec = echo $(~/.config/polybar/todo.sh)
 109 format-underline = #66cce1
 110 
 111 click-right = start.sh calendar
 112 
 113 # }}}
 114 # module/lan {{{
 115 
 116 [module/lan]
 117 type = internal/network
 118 interface = enp0s3
 119 
 120 format-connected = <label-connected>
 121 format-connected-underline = #9f78e1
 122 
 123 label-connected =  %downspeed% %upspeed%
 124 
 125 # }}}
 126 # module/wlan {{{
 127 
 128 [module/wlan]
 129 inherit = module/lan
 130 interface = wlx784476bf0f9a
 131 
 132 # }}}
 133 # module/volume {{{
 134 
 135 [module/volume]
 136 type = internal/volume
 137 
 138 format-volume =  <bar-volume>
 139 format-volume-underline = #87d7d7
 140 
 141 label-muted-foreground = #4e4e56
 142 
 143 format-muted =  <bar-volume>
 144 format-muted-foreground = ${self.label-muted-foreground}
 145 format-muted-underline = ${self.format-volume-underline}
 146 
 147 bar-volume-width = 20
 148 bar-volume-indicator = |
 149 bar-volume-fill = -
 150 bar-volume-empty = -
 151 bar-volume-empty-foreground = ${self.label-muted-foreground}
 152 
 153 # }}}
 154 # module/xkeyboard {{{
 155 
 156 [module/xkeyboard]
 157 type = internal/xkeyboard
 158 
 159 format = <label-layout><label-indicator>
 160 
 161 label-layout =   %layout%
 162 label-layout-underline = #ff5f5f
 163 
 164 label-indicator = (%name%)
 165 label-indicator-padding = 1
 166 label-indicator-underline = ${self.label-layout-underline}
 167 
 168 # }}}
 169 # module/date {{{
 170 
 171 [module/date]
 172 type = internal/date
 173 
 174 label = %date% %time%
 175 format-underline = #5f5fff
 176 
 177 date =
 178 time = %H:%M
 179 
 180 date-alt = " %a, %d %b"
 181 time-alt = %H:%M:%S
 182 
 183 # }}}
 184 
 185 # vim: ft=dosini
 186