My personal dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. ;=====================================================
  2. ;
  3. ; To learn more about how to configure Polybar
  4. ; go to https://github.com/jaagr/polybar
  5. ;
  6. ; The README contains alot of information
  7. ;
  8. ;=====================================================
  9. [colors]
  10. background = #222
  11. background-alt = #444
  12. foreground = #dfdfdf
  13. foreground-alt = #555
  14. primary = #ffb52a
  15. secondary = #e60053
  16. alert = #bd2c40
  17. linecolor = #fba922
  18. bordercolor = #333
  19. accent = #e60053
  20. [bar/my-awesome-polybar]
  21. enable-ipc = true
  22. override-redirect = true
  23. monitor = ${env:MONITOR}
  24. width = 100%
  25. height = 25
  26. fixed-center = true
  27. background = ${colors.background}
  28. foreground = ${colors.foreground}
  29. line-size = 3
  30. #line-color = #f00
  31. line-color = ${colors.linecolor}
  32. underline-size = 2
  33. overline-size = 2
  34. border-size = 4
  35. border-color = #00000000
  36. padding-left = 0
  37. padding-right = 2
  38. module-margin-left = 1
  39. module-margin-right = 1
  40. font-0 = DejaVu Sans Mono:size=9;1
  41. font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
  42. font-2 = siji:pixelsize=10;1
  43. font-3 = "Font Awesome 5 Free:size=12:style=Solid"
  44. modules-left = ewmh xwindow
  45. modules-center =
  46. modules-right = xbacklight volume memory cpu wlan battery temperature date
  47. tray-position = right
  48. tray-padding = 4
  49. tray-maxsize = 16
  50. [module/ewmh]
  51. type = internal/xworkspaces
  52. pin-workspaces = true
  53. ; Only show workspaces defined on the same output as the bar
  54. ; ;
  55. ; ; Useful if you want to show monitor specific workspaces
  56. ; ; on different bars
  57. ; ;
  58. ; ; Default: false
  59. ; pin-workspaces = true
  60. ;
  61. ; ; Create click handler used to focus desktop
  62. ; ; Default: true
  63. enable-click = true
  64. ;
  65. ; ; Create scroll handlers used to cycle desktops
  66. ; ; Default: true
  67. enable-scroll = true
  68. ; icon-[0-9]+ = <desktop-name>;<icon>
  69. ; ; NOTE: The desktop name needs to match the name configured by the WM
  70. ; ; You can get a list of the defined desktops using:
  71. ; ; $ xprop -root _NET_DESKTOP_NAMES
  72. ; icon-0 = code;♚
  73. ; icon-1 = office;♛
  74. ; icon-2 = graphics;♜
  75. ; icon-3 = mail;♝
  76. ; icon-4 = web;♞
  77. ; icon-default = ♟
  78. ;
  79. ; ; Available tags:
  80. ; ; <label-monitor>
  81. ; ; <label> - gets replaced with <label-(active|urgent|occupied|empty)>
  82. ; ; Default: <label>
  83. ;format = <label>
  84. ;
  85. ; ; Available tokens:
  86. ; ; %name%
  87. ; ; Default: %name%
  88. #label-monitor = %name%
  89. ;
  90. ; ; Available tokens:
  91. ; ; %name%
  92. ; ; %icon%
  93. ; ; %index%
  94. ; ; Default: %icon% %name%
  95. label-active = %icon% %name% %icon%
  96. label-active-foreground = #ffffff
  97. label-active-background = #3f3f3f
  98. label-active-underline = #fba922
  99. ;
  100. ; ; Available tokens:
  101. ; ; %name%
  102. ; ; %icon%
  103. ; ; %index%
  104. ; ; Default: %icon% %name%
  105. label-occupied = %icon% %name% %icon%
  106. label-occupied-underline = #555555
  107. label-occupied-foreground = #ffffff
  108. ;
  109. ; ; Available tokens:
  110. ; ; %name%
  111. ; ; %icon%
  112. ; ; %index%
  113. ; ; Default: %icon% %name%
  114. label-urgent = %icon% %name% %icon%
  115. label-urgent-foreground = #000000
  116. label-urgent-background = #bd2c40
  117. label-urgent-underline = #9b0a20
  118. ;
  119. ; ; Available tokens:
  120. ; ; %name%
  121. ; ; %icon%
  122. ; ; %index%
  123. ; ; Default: %icon% %name%
  124. label-empty = %icon% %name% %icon%
  125. label-empty-foreground = #55
  126. [module/xwindow]
  127. type = internal/xwindow
  128. label = %title: 0:40:...%
  129. label-maxlen = 70
  130. #format-background = #808000
  131. format-background = #555555
  132. format-foreground = #FFFFFF
  133. format-padding = 2
  134. [module/xkeyboard]
  135. type = internal/xkeyboard
  136. blacklist-0 = num lock
  137. format-prefix = " "
  138. #format-prefix-foreground = ${colors.foreground-alt}
  139. format-prefix-underline = ${colors.secondary}
  140. label-layout = %layout%
  141. label-layout-underline = ${colors.secondary}
  142. label-indicator-padding = 2
  143. label-indicator-margin = 1
  144. label-indicator-background = ${colors.secondary}
  145. label-indicator-underline = ${colors.secondary}
  146. [module/filesystem]
  147. type = internal/fs
  148. interval = 25
  149. mount-0 = /
  150. mount-1 = /boot
  151. mount-2 = /home
  152. label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
  153. label-unmounted = %mountpoint% not mounted
  154. label-unmounted-foreground = ${colors.foreground-alt}
  155. [module/mpd]
  156. type = internal/mpd
  157. label-song = %artist% - %title%
  158. format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next> <icon-repeat> <icon-random> <label-time> <bar-progress>
  159. icon-prev = 
  160. icon-stop = 
  161. icon-play = 
  162. icon-pause = 
  163. icon-next = 
  164. icon-random = 
  165. icon-repeat = 
  166. toggle-on-foreground = #ff
  167. toggle-off-foreground = #55
  168. ; Only applies if <bar-progress> is used
  169. bar-progress-width = 45
  170. bar-progress-indicator = |
  171. bar-progress-fill = ─
  172. bar-progress-empty = ─
  173. bar-progress-fill-foreground = #00FF00
  174. label-song-maxlen = 50
  175. label-song-ellipsis = true
  176. [module/xbacklight]
  177. type = internal/xbacklight
  178. output = eDP1
  179. format = <label> <bar>
  180. label = " %percentage%%"
  181. bar-width = 10
  182. bar-indicator = |
  183. bar-indicator-foreground = #ff
  184. bar-indicator-font = 2
  185. bar-fill = ─
  186. bar-fill-font = 2
  187. bar-fill-foreground = #9f78e1
  188. bar-empty = ─
  189. bar-empty-font = 2
  190. bar-empty-foreground = ${colors.foreground-alt}
  191. [module/backlight-acpi]
  192. inherit = module/xbacklight
  193. type = internal/backlight
  194. card = intel_backlight
  195. [module/cpu]
  196. type = internal/cpu
  197. interval = 2
  198. format = <label> <ramp-coreload>
  199. format-prefix = " "
  200. #format-prefix-foreground = ${colors.foreground-alt}
  201. format-underline = #f90000
  202. label = %percentage%%
  203. ramp-coreload-0 = ▁
  204. ramp-coreload-0-font = 2
  205. ramp-coreload-0-foreground = #aaff77
  206. ramp-coreload-1 = ▂
  207. ramp-coreload-1-font = 2
  208. ramp-coreload-1-foreground = #aaff77
  209. ramp-coreload-2 = ▃
  210. ramp-coreload-2-font = 2
  211. ramp-coreload-2-foreground = #aaff77
  212. ramp-coreload-3 = ▄
  213. ramp-coreload-3-font = 2
  214. ramp-coreload-3-foreground = #aaff77
  215. ramp-coreload-4 = ▅
  216. ramp-coreload-4-font = 2
  217. ramp-coreload-4-foreground = #fba922
  218. ramp-coreload-5 = ▆
  219. ramp-coreload-5-font = 2
  220. ramp-coreload-5-foreground = #fba922
  221. ramp-coreload-6 = ▇
  222. ramp-coreload-6-font = 2
  223. ramp-coreload-6-foreground = #ff5555
  224. ramp-coreload-7 = █
  225. ramp-coreload-7-font = 2
  226. ramp-coreload-7-foreground = #ff5555
  227. [module/memory]
  228. type = internal/memory
  229. interval = 2
  230. format = <label> <bar-used>
  231. format-prefix = " "
  232. #format-prefix-foreground = ${colors.foreground-alt}
  233. format-underline = #4bffdc
  234. label = %percentage_used%%
  235. bar-used-width = 8
  236. bar-used-foreground-0 = #aaff77
  237. bar-used-foreground-1 = #aaff77
  238. bar-used-foreground-2 = #fba922
  239. bar-used-foreground-3 = #ff5555
  240. bar-used-indicator = |
  241. bar-used-indicator-font = 6
  242. bar-used-indicator-foreground = #ff
  243. bar-used-fill = ─
  244. bar-used-fill-font = 6
  245. bar-used-empty = ─
  246. bar-used-empty-font = 6
  247. bar-used-empty-foreground = #444444
  248. [module/ip-wired]
  249. type = internal/network
  250. interface = enp1s0f1
  251. format-connected = <label-connected>
  252. label-connected = LAN: %local_ip%
  253. label-connected-foreground = #eefafafa
  254. [module/ip-wireless]
  255. type = internal/network
  256. interface = wlp2s0
  257. format-connected = <label-connected>
  258. label-connected = WIFI: %local_ip%
  259. label-connected-foreground = #eefafafa
  260. [module/wlan]
  261. type = internal/network
  262. interface = wlp2s0
  263. ; ; Default: 1
  264. interval = 2.0
  265. ;
  266. ; ; Test connectivity every Nth update
  267. ; ; A value of 0 disables the feature
  268. ; ; NOTE: Experimental (needs more testing)
  269. ; ; Default: 0
  270. ; ;ping-interval = 3
  271. ;
  272. ; ; @deprecated: Define min width using token specifiers (%downspeed:min% and %upspeed:min%)
  273. ; ; Minimum output width of upload/download rate
  274. ; ; Default: 3
  275. ; udspeed-minwidth = 5
  276. ;
  277. ; ; Accumulate values from all interfaces
  278. ; ; when querying for up/downspeed rate
  279. ; ; Default: false
  280. ; accumulate-stats = true
  281. ; Available tags:
  282. ; ; <label-connected> (default)
  283. ; ; <ramp-signal>
  284. format-connected =  <label-connected>
  285. format-connected-underline = #9f78e1
  286. ;
  287. ; ; Available tags:
  288. ; ; <label-disconnected> (default)
  289. format-disconnected = <label-disconnected>
  290. ;
  291. ; ; Available tags:
  292. ; ; <label-connected> (default)
  293. ; ; <label-packetloss>
  294. ; ; <animation-packetloss>
  295. format-packetloss = <animation-packetloss> <label-connected>
  296. ;
  297. ; ; Available tokens:
  298. ; ; %ifname% [wireless+wired]
  299. ; ; %local_ip% [wireless+wired]
  300. ; ; %essid% [wireless]
  301. ; ; %signal% [wireless]
  302. ; ; %upspeed% [wireless+wired]
  303. ; ; %downspeed% [wireless+wired]
  304. ; ; %linkspeed% [wired]
  305. ; ; Default: %ifname% %local_ip%
  306. label-connected = %essid% %downspeed:8%%upspeed:8%
  307. label-connected-foreground = #eefafafa
  308. ;
  309. ; ; Available tokens:
  310. ; ; %ifname% [wireless+wired]
  311. ; ; Default: (none)
  312. #format-disconnected =
  313. #format-disconnected = <label-disconnected>
  314. format-disconnected-underline = ${self.format-connected-underline}
  315. label-disconnected = %ifname% disconnected
  316. label-disconnected-foreground = ${colors.foreground-alt}
  317. ;
  318. ; ; Available tokens:
  319. ; ; %ifname% [wireless+wired]
  320. ; ; %local_ip% [wireless+wired]
  321. ; ; %essid% [wireless]
  322. ; ; %signal% [wireless]
  323. ; ; %linkspeed% [wired]
  324. ; ; Default: (none)
  325. label-packetloss = %essid%
  326. label-packetloss-foreground = #eefafafa
  327. ;
  328. ; ; Only applies if <ramp-signal> is used
  329. ramp-signal-0 = 😱
  330. ramp-signal-1 = 😠
  331. ramp-signal-2 = 😒
  332. ramp-signal-3 = 😊
  333. ramp-signal-4 = 😃
  334. ramp-signal-5 = 😈
  335. ;
  336. ; ; Only applies if <animation-packetloss> is used
  337. animation-packetloss-0 = ⚠
  338. animation-packetloss-0-foreground = #ffa64c
  339. animation-packetloss-1 = 📶
  340. animation-packetloss-1-foreground = #000000
  341. ; ; Framerate in milliseconds
  342. animation-packetloss-framerate = 500
  343. [module/eth]
  344. type = internal/network
  345. interface = enp1s0f1
  346. interval = 3.0
  347. format-connected-underline = #55aa55
  348. format-connected-prefix = " "
  349. format-connected-prefix-foreground = ${colors.foreground-alt}
  350. label-connected = %local_ip%
  351. ;format-disconnected =
  352. ;format-disconnected = <label-disconnected>
  353. ;format-disconnected-underline = ${self.format-connected-underline}
  354. ;label-disconnected = %ifname% disconnected
  355. ;label-disconnected-foreground = ${colors.foreground-alt}
  356. [module/date]
  357. type = internal/date
  358. interval = 5
  359. date =
  360. date-alt = " %Y-%m-%d"
  361. time = %H:%M
  362. time-alt = %H:%M:%S
  363. format-prefix = 
  364. #format-prefix-foreground = ${colors.foreground-alt}
  365. format-underline = #0a6cf5
  366. label = %date% %time%
  367. [module/volume]
  368. type = internal/alsa
  369. format-volume = "<label-volume> <bar-volume>"
  370. label-volume = " %percentage%%"
  371. label-volume-foreground = ${root.foreground}
  372. format-muted-prefix = " "
  373. format-muted-foreground = ${colors.foreground-alt}
  374. label-muted = sound muted
  375. bar-volume-width = 10
  376. bar-volume-foreground-0 = #55aa55
  377. bar-volume-foreground-1 = #55aa55
  378. bar-volume-foreground-2 = #55aa55
  379. bar-volume-foreground-3 = #55aa55
  380. bar-volume-foreground-4 = #55aa55
  381. bar-volume-foreground-5 = #f5a70a
  382. bar-volume-foreground-6 = #ff5555
  383. bar-volume-gradient = false
  384. bar-volume-indicator = |
  385. bar-volume-indicator-font = 2
  386. bar-volume-fill = ─
  387. bar-volume-fill-font = 2
  388. bar-volume-empty = ─
  389. bar-volume-empty-font = 2
  390. bar-volume-empty-foreground = ${colors.foreground-alt}
  391. [module/battery]
  392. type = internal/battery
  393. battery = BAT0
  394. adapter = AC
  395. full-at = 98
  396. format-charging = <animation-charging> <label-charging>
  397. format-charging-underline = #ffb52a
  398. format-discharging = <ramp-capacity> <label-discharging>
  399. format-discharging-underline = ${self.format-charging-underline}
  400. format-full-prefix = " "
  401. format-full-prefix-foreground = ${colors.foreground-alt}
  402. format-full-underline = ${self.format-charging-underline}
  403. ramp-capacity-0 = " "
  404. ramp-capacity-1 = " "
  405. ramp-capacity-2 = " "
  406. #ramp-capacity-foreground = ${colors.foreground-alt}
  407. animation-charging-0 = " "
  408. animation-charging-1 = " "
  409. animation-charging-2 = " "
  410. animation-charging-foreground = ${colors.foreground-alt}
  411. animation-charging-framerate = 750
  412. [module/temperature]
  413. type = internal/temperature
  414. thermal-zone = 0
  415. warn-temperature = 60
  416. format = <ramp> <label>
  417. format-underline = #f50a4d
  418. format-warn = <ramp> <label-warn>
  419. format-warn-underline = ${self.format-underline}
  420. label = %temperature-c%
  421. label-warn = %temperature-c%
  422. label-warn-foreground = ${colors.secondary}
  423. ramp-0 = 
  424. ramp-1 = 
  425. ramp-2 = 
  426. #ramp-foreground = ${colors.foreground-alt}
  427. [module/powermenu]
  428. type = custom/menu
  429. format-spacing = 1
  430. label-open = 
  431. label-open-foreground = ${colors.secondary}
  432. label-close =  cancel
  433. label-close-foreground = ${colors.secondary}
  434. label-separator = |
  435. label-separator-foreground = ${colors.foreground-alt}
  436. menu-0-0 = reboot
  437. menu-0-0-exec = gksudo reboot
  438. menu-0-1 = power off
  439. menu-0-1-exec = gksudo poweroff
  440. menu-1-0 = cancel
  441. menu-1-0-exec = menu-open-0
  442. menu-1-1 = reboot
  443. menu-1-1-exec = gksudo reboot
  444. menu-2-0 = power off
  445. menu-2-0-exec = gksudo poweroff
  446. menu-2-1 = cancel
  447. menu-2-1-exec = menu-open-0
  448. [settings]
  449. screenchange-reload = true
  450. [global/wm]
  451. margin-top = 5
  452. margin-bottom = 5
  453. ; vim:ft=dosini