Advertisement
Guest User

Untitled

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