Advertisement
Guest User

Untitled

a guest
Dec 9th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.75 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:termite -e "htop -s PERCENT_CPU" & disown:} %percentage:%% %{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-4foreground = ${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:termite -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:xterm -e "yay -Syyu" & disown:} %{A3:xterm -e "yay -Syyu" & disown:}%output%%{A} %{A}
  208. tail = true
  209.  
  210. [module/telegram]
  211. type = custom/script
  212. exec = echo "  "
  213. click-left = telegram-desktop
  214. #label-foreground = #
  215. #label-background = ${colors.b-alt}
  216.  
  217.  
  218. ;;;;;;;;;;;
  219. ;; Clock ;;
  220. ;;;;;;;;;;;
  221. [module/clock]
  222. type = internal/date
  223. format = <label>
  224. interval = 5
  225. time = %R
  226. label = %{A1:gsimplecal & disown:} %{A3:gsimplecal & disown:} %time%%{A} %{A}
  227.  
  228. [module/info-kernel]
  229. type = custom/script
  230. exec = uname -r
  231. interval = 1024
  232.  
  233.  
  234. ;;;;;;;;;;;;;;;;;
  235. ;; TEMPERATURE ;;
  236. ;;;;;;;;;;;;;;;;;
  237. [module/temperature]
  238. type = internal/temperature
  239. interval = 3
  240. thermal-zone = 0
  241. warn-temperature = 70
  242. format = <ramp><label>
  243. format-padding = 1
  244. label = %{A1:termite -e "watch sensors" & disown:} %temperature-c%%{A}
  245. ramp-0 = ""
  246. ramp-1 = ""
  247. ramp-2 = ""
  248. ramp-3 = ""
  249. ramp-4 = ""
  250. ramp-0-foreground = ${colors.blue}
  251. ramp-1-foreground = ${colors.blue}
  252. ramp-2-foreground = ${colors.moderate}
  253. ramp-3-foreground = ${colors.moderate}
  254. ramp-4-foreground = ${colors.urgent}
  255. format-warn = <label-warn>
  256. label-warn = " %temperature-c%"
  257. label-warn-padding = 1
  258. label-warn-foreground = ${colors.urgent}
  259.  
  260.  
  261. ;;;;;;;;;;;;
  262. ;; Volume ;;
  263. ;;;;;;;;;;;;
  264. [module/volume]
  265. type = internal/alsa
  266. master-mixer = Master
  267. format-volume-padding = 1
  268. label-volume-foreground = ${colors.foreground}
  269. label-volume = %{A3:pavucontrol & disown:}%percentage:2%% %{A}
  270. format-volume = <ramp-volume> <label-volume>
  271. label-muted = " muted "
  272. ramp-volume-0 = 
  273. ramp-volume-1 = 
  274. ramp-volume-2 = 
  275. ramp-volume-3 = 
  276. label-muted-foreground = #888
  277. ramp-volume-0-foreground = ${colors.trim}
  278. ramp-volume-1-foreground = ${colors.blue}
  279. ramp-volume-2-foreground = ${colors.moderate}
  280. ramp-volume-3-foreground = ${colors.urgent}
  281.  
  282.  
  283. ;;;;;;;;;;;;;
  284. ;; BATTERY ;;
  285. ;;;;;;;;;;;;;
  286. [module/battery]
  287. type = internal/battery
  288. ; Use $ ls -1 /sys/class/power_supply/
  289. battery = BAT0
  290. adapter = AC
  291. full-at = 98
  292. poll-interval = 5
  293. time-format = %H:%M
  294.  
  295. format-charging = <animation-charging> <label-charging>
  296. format-discharging = <ramp-capacity> <label-discharging>
  297. format-full = <ramp-capacity> <label-full>
  298.  
  299. ramp-capacity-0 = 
  300. ramp-capacity-1 = 
  301. ramp-capacity-2 = 
  302. ramp-capacity-3 = 
  303. ramp-capacity-4 = 
  304. ramp-capacity-0-foreground = ${colors.urgent}
  305. ramp-capacity-1-foreground = ${colors.moderate}
  306. ramp-capacity-foreground = ${colors.blue}
  307.  
  308. bar-capacity-width = 10
  309. animation-charging-0 = " "
  310. animation-charging-1 = " "
  311. animation-charging-2 = " "
  312. animation-charging-3 = " "
  313. animation-charging-4 = " "
  314. animation-charging-framerate = 750
  315.  
  316.  
  317. ;;;;;;;;;;
  318. ;; MENU ;;
  319. ;;;;;;;;;;
  320. [module/menu]
  321. type = custom/menu
  322. format-spacing = 1
  323. label-open = "  "
  324. label-close = "  "
  325. label-close-foreground = ${colors.urgent}
  326. label-separator = " | "
  327. # Top level
  328. menu-0-0 = "  "
  329. menu-0-0-exec = menu-open-1
  330. menu-0-1 = "  "
  331. menu-0-1-exec = menu-open-2
  332. menu-0-2 = "  |"
  333. menu-0-2-exec = menu-open-3
  334. # 1
  335. menu-1-0 = "  "
  336. menu-1-0-exec = menu-open-0
  337. menu-1-0-foreground = ${colors.urgent}
  338. menu-1-1 = "  "
  339. menu-1-1-exec = exo-open --launch WebBrowser
  340. menu-1-2 = "  "
  341. menu-1-2-exec = exo-open --launch TerminalEmulator
  342. menu-1-3 = "  |"
  343. menu-1-3-exec = exo-open --launch FileManager
  344. # 2
  345. menu-2-0 = "  "
  346. menu-2-0-exec = menu-open-0
  347. menu-2-0-foreground = ${colors.urgent}
  348. menu-2-1 = "  "
  349. menu-2-1-exec = xfce4-settings-manager &
  350. menu-2-2 = "  |"
  351. menu-2-2-exec = pavucontrol &
  352. # 3
  353. menu-3-0 = "  "
  354. menu-3-0-exec = menu-open-0
  355. menu-3-0-foreground = ${colors.urgent}
  356. menu-3-1 = "  "
  357. menu-3-1-exec = i3lock-fancy -p -f Ubuntu &
  358. menu-3-2 = "  "
  359. menu-3-2-exec = systemctl -i reboot
  360. menu-3-3 = "  |"
  361. menu-3-3-exec = systemctl -i poweroff
  362.  
  363.  
  364. ;;;;;;;;;;;;;;;;;;;;
  365. ;; Compton Toggle ;;
  366. ;;;;;;;;;;;;;;;;;;;;
  367. [module/compton_toggle]
  368. type = custom/script
  369. tail = true
  370. label = %output%
  371. click-left = toggle.sh -c -t &
  372. exec = toggle.sh -c
  373. format = <label>
  374.  
  375.  
  376. ;;;;;;;;;;;;;;;
  377. ;; KEYBOARD ;;
  378. ;;;;;;;;;;;;;;;
  379. [module/keyboard]
  380. type = internal/xkeyboard
  381. blacklist-0 = scroll lock
  382. format = <label-layout> <label-indicator>
  383. format-spacing = 0
  384. label-layout =  %layout%
  385. label-indicator = %name%
  386. label-indicator-padding = 2
  387. label-indicator-background = ${colors.purple}
  388.  
  389.  
  390. ;;;;;;;;;;;;;;
  391. ;; ETHERNET ;;
  392. ;;;;;;;;;;;;;;
  393. [module/wired-network]
  394. type = internal/network
  395. interface =
  396. format-connected = <label-connected>
  397. format-disconnected = <label-disconnected>
  398. label-connected =  %local_ip%
  399. format-connected-foreground = ${colors.purple}
  400.  
  401.  
  402. ;;;;;;;;;;;;;;
  403. ;; REDSHIFT ;;
  404. ;;;;;;;;;;;;;;
  405. [module/redshift]
  406. type = custom/script
  407. tail = true
  408. exec = toggle.sh -r
  409. label = %output%
  410. click-left = toggle.sh -r -t &
  411.  
  412.  
  413. ;;;;;;;;;;;;;;;;
  414. ;; FILESYSTEM ;;
  415. ;;;;;;;;;;;;;;;;
  416. [module/filesystem]
  417. type = internal/fs
  418. format-mounted = <label-mounted>
  419. label-mounted = %mountpoint% : %percentage_free%%
  420. mount-0 = /
  421. interval = 1200
  422. fixed-values = false
  423. spacing = 2
  424. label-mounted-foreground = ${colors.foreground}
  425.  
  426. [module/trash]
  427. interval = 1
  428. type = custom/script
  429. exec = ~/.config/polybar/trash
  430. format-prefix = "  "
  431. #format-prefix-foreground = ${colors.foreground}
  432. #format-background = ${colors.b-alt}
  433. click-right = rm -rf ~/.local/share/Trash/files/*
  434. click-left = exo-open --launch FileManager ~/.local/share/Trash/files
  435.  
  436.  
  437. ;;;;;;;;;
  438. ;; MPD ;;
  439. ;;;;;;;;;
  440. [module/mpd]
  441. type = internal/mpd
  442. format-online = <bar-progress> <icon-prev> <icon-stop> <toggle> <icon-next> <label-song>
  443. format-offline = <label-offline>
  444. bar-progress-format = " %{-o -u}%fill%%{-o -u}%indicator%%{-o -u}%empty%%{-u -o}"
  445. label-offline = mpd is off
  446. format-online-prefix = " "
  447. icon-play = 
  448. icon-pause = 
  449. icon-stop = 
  450. icon-prev = 
  451. icon-next = 
  452. icon-random = 
  453. icon-repeat = 
  454. toggle-on-foreground =
  455. toggle-off-foreground = #16a085
  456. bar-progress-width = 20
  457. bar-progress-indicator = █
  458. bar-progress-fill = █
  459. bar-progress-empty = ▒
  460. bar-progress-empty-font = 2
  461. bar-progress-indicator-font = 2
  462. bar-progress-fill-font = 2
  463. bar-progress-fill-foreground = #64727D
  464. bar-progress-empty-foreground = #64727D
  465. bar-progress-indicator-foreground = #7F8C96
  466.  
  467.  
  468. ;;;;;;;;;;
  469. ;; WIFI ;;
  470. ;;;;;;;;;;
  471. [module/wireless-network]
  472. type = internal/network
  473. interface =
  474.  
  475. format-connected = <ramp-signal> <label-connected>
  476. format-packetloss = <animation-packetloss>
  477. label-connected = %local_ip%
  478. ramp-signal-0 = 
  479. ramp-signal-1 = 
  480. ramp-signal-2 = 
  481. ramp-signal-3 = 
  482. ramp-signal-4 = 
  483. ramp-signal-5 = 
  484. ramp-signal-0-foreground = ${colors.urgent}
  485. ramp-signal-1-foreground = ${colors.purple}
  486. ramp-signal-2-foreground = ${colors.moderate}
  487. ramp-signal-3-foreground = ${colors.moderate}
  488. ramp-signal-4-foreground = ${colors.blue}
  489. ramp-signal-5-foreground = ${colors.blue}
  490. animation-packetloss-0 = ⚠
  491. animation-packetloss-1 = !
  492. animation-packetloss-0-foreground = ${colors.moderate}
  493. animation-packetloss-1-foreground = ${colors.urgent}
  494. animation-packetloss-framerate = 500
  495.  
  496.  
  497. ;;;;;;;;;;;;;;;;
  498. ;; VOLUME BAR ;;
  499. ;;;;;;;;;;;;;;;;
  500. [module/volume-bar]
  501. type = internal/volume
  502. bar-volume-font = 2
  503. bar-volume-width = 20
  504. format-volume = <label-volume><bar-volume>
  505. label-volume = "  "
  506. label-muted = "  mute"
  507. label-volume-foreground = #B6C2E7
  508. format-muted-foreground = #E76BB4
  509. bar-volume-foreground-0 = #92A3F7
  510. bar-volume-foreground-1 = #92A3F7
  511. bar-volume-foreground-2 = #6BB3E7
  512. bar-volume-foreground-3 = #6BB3E7
  513. bar-volume-foreground-4 = #6BB3E7
  514. bar-volume-foreground-5 = #6BE7D8
  515. bar-volume-foreground-6 = #6BE7D8
  516. bar-volume-gradient = true
  517. bar-volume-indicator = |
  518. bar-volume-fill = •
  519. bar-volume-empty = ·
  520. bar-volume-empty-foreground = #666666
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement