Advertisement
mrneilypops

ArchLabs-07-2018-polybar-modules-config

Jul 28th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.86 KB | None | 0 0
  1. ;=====================================================
  2. ; Modules
  3. ;=====================================================
  4.  
  5. ;;;;;;;;;;;;;;;
  6. ;; Jgmenu ;;
  7. ;;;;;;;;;;;;;;;
  8. [module/jgmenu]
  9. type = custom/script
  10. label = %output%
  11. label-padding = 2
  12. interval = 10
  13. exec = echo "?"
  14. click-left = "jgmenu_run >/dev/null 2>&1 &"
  15. click-right = exo-open $HOME/.config/jgmenu/jgmenurc
  16.  
  17.  
  18. ;;;;;;;;;;;;;;;;;;;;;;;;
  19. ;; Openbox Workspaces ;;
  20. ;;;;;;;;;;;;;;;;;;;;;;;;
  21. [module/workspaces]
  22. type = internal/xworkspaces
  23. pin-workspaces = false
  24. enable-click = true
  25. enable-scroll = true
  26. format-padding = 0
  27. icon-0 = 1;?
  28. icon-1 = 2;?
  29. icon-2 = 3;?
  30. icon-3 = 4;?
  31. icon-4 = 5;?
  32. icon-5 = 6;?
  33. icon-6 = 7;?
  34. icon-7 = 8;?
  35. icon-8 = 9;?
  36. icon-9 = 10;?
  37. icon-default =
  38. format = <label-state>
  39. label-active = %icon% %name%
  40. label-occupied = %icon% %name%
  41. label-urgent = %icon% %name%
  42. label-empty = %icon% %name%
  43. label-occupied-padding = 1
  44. label-empty-padding = 1
  45. label-urgent-padding = 1
  46. label-active-padding = 1
  47. label-active-foreground = ${colors.blue}
  48. label-active-underline = ${colors.blue}
  49. label-occupied-underline = ${colors.moderate}
  50. label-urgent-foreground = ${colors.urgent}
  51. label-urgent-underline = ${colors.urgent}
  52. label-empty-foreground = ${colors.foreground}
  53.  
  54.  
  55. ;;;;;;;;;;;;;;;;;;;
  56. ;; i3 Workspaces ;;
  57. ;;;;;;;;;;;;;;;;;;;
  58. [module/i3]
  59. type = internal/i3
  60. pin-workspaces = true
  61. strip-wsnumbers = true
  62. index-sort = true
  63. enable-click = true
  64. fuzzy-match = true
  65. ws-icon-default = ?
  66. format = <label-state><label-mode>
  67. label-mode = %mode%
  68. label-mode-padding = 2
  69. label-focused = %index% %name%
  70. label-focused-padding = 2
  71. label-unfocused = %index% %name%
  72. label-unfocused-padding = 2
  73. label-visible = %index% %name%
  74. label-visible-padding = 2
  75. label-urgent = %index% %name%
  76. label-urgent-padding = 2
  77. label-mode-underline = ${colors.urgent}
  78. label-focused-underline = ${colors.blue}
  79. label-visible-underline = ${colors.purple}
  80. label-urgent-underline = ${colors.urgent}
  81.  
  82.  
  83. ;;;;;;;;;;;;;;;;;;;;
  84. ;;Bspwm Workspaces;;
  85. ;;;;;;;;;;;;;;;;;;;;
  86. [module/bspwm]
  87. type = internal/bspwm
  88. pin-workspaces = true
  89. inline-mode = false
  90. enable-click = true
  91. enable-scroll = false
  92. reverse-scroll = false
  93. fuzzy-match = false
  94. ; ws-icon-[0-9]+ = label;icon
  95. ; Note that the label needs to correspond with the bspwm workspace name
  96. ws-icon-0 = I;?
  97. ws-icon-1 = II;?
  98. ws-icon-2 = III;?
  99. ws-icon-3 = IV;?
  100. ws-icon-4 = V;?
  101. ws-icon-5 = VI;?
  102. ws-icon-6 = VII;?
  103. ws-icon-7 = VIII;?
  104. ws-icon-8 = IX;?
  105. ws-icon-9 = X;?
  106. ;ws-icon-default = ?
  107. format = <label-state> <label-mode>
  108. label-monitor = %name%
  109. label-mode-padding = 1
  110. label-focused = %icon% %name%
  111. label-focused-padding = 1
  112. label-occupied = %icon% %name%
  113. label-occupied-padding = 1
  114. label-urgent = %icon% %name%
  115. label-urgent-padding = 1
  116. label-empty = %icon% %name%
  117. label-empty-padding = 1
  118. label-dimmed-foreground = ${colors.purple}
  119. label-dimmed-underline = ${colors.purple}
  120. label-dimmed-focused-background = ${colors.purple}
  121. label-focused-foreground = ${colors.blue}
  122. label-focused-underline = ${colors.blue}
  123. label-occupied-underline = ${colors.purple}
  124. label-urgent-foreground = ${colors.urgent}
  125. label-urgent-underline = ${colors.urgent}
  126. ; The following labels will be used to indicate the layout/mode
  127. ; for the focused workspace. Requires <label-mode>
  128. label-monocle = ?
  129. label-tiled = ?
  130. label-fullscreen = ?
  131. label-floating = ?
  132. label-pseudotiled = P
  133. label-locked = ?
  134. label-sticky = ?
  135. label-private = ?
  136. label-sticky-foreground = ${colors.purple}
  137. label-locked-foreground = ${colors.moderate}
  138. label-private-foreground = ${colors.urgent}
  139.  
  140.  
  141. ;;;;;;;;;;;;;
  142. ;; Network ;;
  143. ;;;;;;;;;;;;;
  144. [module/network]
  145. type = custom/script
  146. exec = check-network
  147. click-left = networkmanager_dmenu &
  148. click-right = networkmanager_dmenu &
  149. label-padding = 1
  150. tail = true
  151.  
  152.  
  153. ;;;;;;;;;;;;;;;;;;;
  154. ;; Window Switch ;;
  155. ;;;;;;;;;;;;;;;;;;;
  156. [module/window_switch]
  157. type = custom/script
  158. interval = 5
  159. label = %output%
  160. click-left = skippy-xd
  161. click-right = skippy-xd
  162. exec = echo " ? "
  163. format = <label>
  164.  
  165.  
  166. ;;;;;;;;;
  167. ;; CPU ;;
  168. ;;;;;;;;;
  169. [module/coreuse]
  170. type = internal/cpu
  171. interval = 3
  172. format-padding = 1
  173. format = <label> <ramp-coreload>
  174. label = %{A1:st -e htop -s PERCENT_CPU & disown:}? %percentage:2%% %{A}
  175. ramp-coreload-0 = ?
  176. ramp-coreload-1 = ?
  177. ramp-coreload-2 = ?
  178. ramp-coreload-3 = ?
  179. ramp-coreload-4 = ?
  180. ramp-coreload-5 = ?
  181. ramp-coreload-0-foreground = ${colors.blue}
  182. ramp-coreload-1-foreground = ${colors.blue}
  183. ramp-coreload-2-foreground = ${colors.moderate}
  184. ramp-coreload-3-foreground = ${colors.moderate}
  185. ramp-coreload-4-foreground = ${colors.urgent}
  186. ramp-coreload-5-foreground = ${colors.urgent}
  187.  
  188.  
  189. ;;;;;;;;;
  190. ;; MEM ;;
  191. ;;;;;;;;;
  192. [module/memory]
  193. type = internal/memory
  194. interval = 3
  195. format = <label>
  196. label-padding = 1
  197. label = %{A1:st -e htop -s PERCENT_MEM & disown:}? %percentage_used%%%{A}
  198.  
  199.  
  200. ;;;;;;;;;
  201. ;; PKG ;;
  202. ;;;;;;;;;
  203. [module/pkg]
  204. type = custom/script
  205. exec = updates.sh
  206. exec-if = "ping -q -w 2 -c 1 176.34.135.167 > /dev/null"
  207. label = %{A1:st -e aurman -Syyu & disown:} %{A3:st -e aurman -Syyu & disown:}%output%%{A} %{A}
  208. tail = true
  209. label-underline = ${colors.blue}
  210.  
  211. ;;;;;;;;;;;
  212. ;; Clock ;;
  213. ;;;;;;;;;;;
  214. [module/clock]
  215. type = internal/date
  216. format = <label>
  217. interval = 5
  218. time = %R
  219. label = %{A1:gsimplecal & disown:} %{A3:gsimplecal & disown:}? %time%%{A} %{A}
  220.  
  221.  
  222. ;;;;;;;;;;;;;;;;;
  223. ;; TEMPERATURE ;;
  224. ;;;;;;;;;;;;;;;;;
  225. [module/temperature]
  226. type = internal/temperature
  227. interval = 3
  228. thermal-zone = 0
  229. warn-temperature = 70
  230. format = <ramp><label>
  231. format-padding = 1
  232. label = %{A1:st -e watch sensors & disown:} %temperature-c%%{A}
  233. ramp-0 = "?"
  234. ramp-1 = "?"
  235. ramp-2 = "?"
  236. ramp-3 = "?"
  237. ramp-4 = "?"
  238. ramp-0-foreground = ${colors.blue}
  239. ramp-1-foreground = ${colors.blue}
  240. ramp-2-foreground = ${colors.moderate}
  241. ramp-3-foreground = ${colors.moderate}
  242. ramp-4-foreground = ${colors.urgent}
  243. format-warn = <label-warn>
  244. label-warn = "? %temperature-c%"
  245. label-warn-padding = 1
  246. label-warn-foreground = ${colors.urgent}
  247.  
  248.  
  249. ;;;;;;;;;;;;
  250. ;; Volume ;;
  251. ;;;;;;;;;;;;
  252. [module/volume]
  253. type = internal/alsa
  254. master-mixer = Master
  255. format-volume-padding = 1
  256. label-volume-foreground = ${colors.foreground}
  257. label-volume = %{A3:pavucontrol & disown:}%percentage:2%% %{A}
  258. format-volume = <ramp-volume> <label-volume>
  259. label-muted = " ?muted "
  260. ramp-volume-0 = ?
  261. ramp-volume-1 = ?
  262. ramp-volume-2 = ?
  263. ramp-volume-3 = ?
  264. label-muted-foreground = #888
  265. ramp-volume-0-foreground = ${colors.trim}
  266. ramp-volume-1-foreground = ${colors.blue}
  267. ramp-volume-2-foreground = ${colors.moderate}
  268. ramp-volume-3-foreground = ${colors.urgent}
  269.  
  270.  
  271. ;;;;;;;;;;;;;
  272. ;; BATTERY ;;
  273. ;;;;;;;;;;;;;
  274. [module/battery]
  275. type = internal/battery
  276. ; Use $ ls -1 /sys/class/power_supply/
  277. battery = BAT0
  278. adapter = AC
  279. full-at = 98
  280. poll-interval = 5
  281. time-format = %H:%M
  282.  
  283. format-charging = <animation-charging> <label-charging>
  284. format-discharging = <ramp-capacity> <label-discharging>
  285. format-full = <ramp-capacity> <label-full>
  286.  
  287. ramp-capacity-0 = ?
  288. ramp-capacity-1 = ?
  289. ramp-capacity-2 = ?
  290. ramp-capacity-3 = ?
  291. ramp-capacity-4 = ?
  292. ramp-capacity-0-foreground = ${colors.urgent}
  293. ramp-capacity-1-foreground = ${colors.moderate}
  294. ramp-capacity-foreground = ${colors.blue}
  295.  
  296. bar-capacity-width = 10
  297. animation-charging-0 = "? ?"
  298. animation-charging-1 = "? ?"
  299. animation-charging-2 = "? ?"
  300. animation-charging-3 = "? ?"
  301. animation-charging-4 = "? ?"
  302. animation-charging-framerate = 750
  303.  
  304.  
  305. ;;;;;;;;;;
  306. ;; MENU ;;
  307. ;;;;;;;;;;
  308. [module/menu]
  309. type = custom/menu
  310. format-spacing = 1
  311. label-open = " ? "
  312. label-close = " ? "
  313. label-close-foreground = ${colors.urgent}
  314. label-separator = " | "
  315. # Top level
  316. menu-0-0 = " ? "
  317. menu-0-0-exec = menu-open-1
  318. menu-0-1 = " ? "
  319. menu-0-1-exec = menu-open-2
  320. menu-0-2 = " ? |"
  321. menu-0-2-exec = menu-open-3
  322. # 1
  323. menu-1-0 = " ? "
  324. menu-1-0-exec = menu-open-0
  325. menu-1-0-foreground = ${colors.urgent}
  326. menu-1-1 = " ? "
  327. menu-1-1-exec = exo-open --launch WebBrowser
  328. menu-1-2 = " ? "
  329. menu-1-2-exec = exo-open --launch TerminalEmulator
  330. menu-1-3 = " ? |"
  331. menu-1-3-exec = exo-open --launch FileManager
  332. # 2
  333. menu-2-0 = " ? "
  334. menu-2-0-exec = menu-open-0
  335. menu-2-0-foreground = ${colors.urgent}
  336. menu-2-1 = " ? "
  337. menu-2-1-exec = xfce4-settings-manager &
  338. menu-2-2 = " ? |"
  339. menu-2-2-exec = pavucontrol &
  340. # 3
  341. menu-3-0 = " ? "
  342. menu-3-0-exec = menu-open-0
  343. menu-3-0-foreground = ${colors.urgent}
  344. menu-3-1 = " ? "
  345. menu-3-1-exec = i3lock-fancy -p -f Ubuntu &
  346. menu-3-2 = " ? "
  347. menu-3-2-exec = systemctl -i reboot
  348. menu-3-3 = " ? |"
  349. menu-3-3-exec = systemctl -i poweroff
  350.  
  351.  
  352. ;;;;;;;;;;;;;;;;;;;;
  353. ;; Compton Toggle ;;
  354. ;;;;;;;;;;;;;;;;;;;;
  355. [module/compton_toggle]
  356. type = custom/script
  357. tail = true
  358. label = %output%
  359. click-left = toggle.sh -c -t &
  360. exec = toggle.sh -c
  361. format = <label>
  362.  
  363.  
  364. ;;;;;;;;;;;;;;;
  365. ;; KEYBOARD ;;
  366. ;;;;;;;;;;;;;;;
  367. [module/keyboard]
  368. type = internal/xkeyboard
  369. blacklist-0 = scroll lock
  370. format = <label-layout> <label-indicator>
  371. format-spacing = 0
  372. label-layout = ? %layout%
  373. label-indicator = %name%
  374. label-indicator-padding = 2
  375. label-indicator-background = ${colors.purple}
  376.  
  377.  
  378. ;;;;;;;;;;;;;;
  379. ;; ETHERNET ;;
  380. ;;;;;;;;;;;;;;
  381. [module/wired-network]
  382. type = internal/network
  383. interface =
  384. format-connected = <label-connected>
  385. format-disconnected = <label-disconnected>
  386. label-connected = ? %local_ip%
  387. format-connected-foreground = ${colors.purple}
  388.  
  389.  
  390. ;;;;;;;;;;;;;;
  391. ;; REDSHIFT ;;
  392. ;;;;;;;;;;;;;;
  393. [module/redshift]
  394. type = custom/script
  395. tail = true
  396. exec = toggle.sh -r
  397. label = %output%
  398. click-left = toggle.sh -r -t &
  399.  
  400.  
  401. ;;;;;;;;;;;;;;;;
  402. ;; FILESYSTEM ;;
  403. ;;;;;;;;;;;;;;;;
  404. [module/filesystem]
  405. type = internal/fs
  406. format-mounted = <label-mounted>
  407. label-mounted = %mountpoint% : %percentage_free%%
  408. mount-0 = /
  409. interval = 1200
  410. fixed-values = false
  411. spacing = 2
  412. label-mounted-foreground = ${colors.moderate}
  413.  
  414.  
  415. ;;;;;;;;;
  416. ;; MPD ;;
  417. ;;;;;;;;;
  418. [module/mpd]
  419. type = internal/mpd
  420. # format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
  421. format-online = <label-song>
  422. format-offline = <label-offline>
  423. # bar-progress-format = %{+o +u}%fill%%{-o -u}%indicator%%{+o +u}%empty%%{-u -o}
  424. label-offline = mpd is off
  425. format-online-prefix = "? "
  426. icon-play = ?
  427. icon-pause = ?
  428. icon-stop = ?
  429. icon-prev = ?
  430. icon-next = ?
  431. icon-random = ?
  432. icon-repeat = ?
  433. toggle-on-foreground =
  434. toggle-off-foreground = #55
  435. bar-progress-width = 35
  436. bar-progress-indicator = ?
  437. bar-progress-fill = ?
  438. bar-progress-empty = ?
  439. bar-progress-empty-font = 2
  440. bar-progress-indicator-font = 2
  441. bar-progress-fill-font = 2
  442. bar-progress-fill-foreground = #bb
  443. bar-progress-empty-foreground = #44
  444. bar-progress-indicator-foreground = #A85659
  445. label-song = %title%
  446. format-online-margin = 1
  447.  
  448.  
  449. ;;;;;;;;;;
  450. ;; WIFI ;;
  451. ;;;;;;;;;;
  452. [module/wireless-network]
  453. type = internal/network
  454. interface =
  455.  
  456. format-connected = <ramp-signal> <label-connected>
  457. format-packetloss = <animation-packetloss>
  458. label-connected = %local_ip%
  459. ramp-signal-0 = ?
  460. ramp-signal-1 = ?
  461. ramp-signal-2 = ?
  462. ramp-signal-3 = ?
  463. ramp-signal-4 = ?
  464. ramp-signal-5 = ?
  465. ramp-signal-0-foreground = ${colors.urgent}
  466. ramp-signal-1-foreground = ${colors.purple}
  467. ramp-signal-2-foreground = ${colors.moderate}
  468. ramp-signal-3-foreground = ${colors.moderate}
  469. ramp-signal-4-foreground = ${colors.blue}
  470. ramp-signal-5-foreground = ${colors.blue}
  471. animation-packetloss-0 = ?
  472. animation-packetloss-1 = !
  473. animation-packetloss-0-foreground = ${colors.moderate}
  474. animation-packetloss-1-foreground = ${colors.urgent}
  475. animation-packetloss-framerate = 500
  476.  
  477.  
  478. ;;;;;;;;;;;;;;;;
  479. ;; VOLUME BAR ;;
  480. ;;;;;;;;;;;;;;;;
  481. [module/volume-bar]
  482. type = internal/volume
  483. bar-volume-font = 2
  484. bar-volume-width = 20
  485. format-volume = <label-volume><bar-volume>
  486. label-volume = " ? "
  487. label-muted = " ? mute"
  488. label-volume-foreground = #B6C2E7
  489. format-muted-foreground = #E76BB4
  490. bar-volume-foreground-0 = #92A3F7
  491. bar-volume-foreground-1 = #92A3F7
  492. bar-volume-foreground-2 = #6BB3E7
  493. bar-volume-foreground-3 = #6BB3E7
  494. bar-volume-foreground-4 = #6BB3E7
  495. bar-volume-foreground-5 = #6BE7D8
  496. bar-volume-foreground-6 = #6BE7D8
  497. bar-volume-gradient = true
  498. bar-volume-indicator = |
  499. bar-volume-fill = ?
  500. bar-volume-empty = ยท
  501. bar-volume-empty-foreground = #666666
  502.  
  503.  
  504. ;;;;;;;;;;;;;;;;
  505. ;; kernel ;;
  506. ;;;;;;;;;;;;;;;;
  507. [module/kernel]
  508. type = custom/script
  509. exec = uname -r
  510. label-font = 7
  511. format-padding = 1
  512.  
  513.  
  514. ;;;;;;;;;;;;;;;;
  515. ;; weather ;;
  516. ;;;;;;;;;;;;;;;;
  517. [module/weather]
  518. type = custom/script
  519. exec = weather-bar
  520. tail = true
  521. interval = 300
  522. label-font = 1
  523. format-padding = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement