Advertisement
Dobbie03

modules.conf

Nov 25th, 2017
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.82 KB | None | 0 0
  1. ;=====================================================
  2. ; Modules
  3. ;=====================================================
  4.  
  5. ;;;;;;;;;;;;;;;;;;;;;;;;
  6. ;; Openbox Workspaces ;;
  7. ;;;;;;;;;;;;;;;;;;;;;;;;
  8. [module/workspaces]
  9. type = internal/xworkspaces
  10. pin-workspaces = false
  11. enable-click = true
  12. enable-scroll = true
  13. format-padding = 1
  14. icon-0 = 1;
  15. icon-1 = 2; 
  16. icon-2 = 3; 
  17. icon-3 = 4; 
  18. icon-4 = 5; 
  19. icon-5 = 6; 
  20. icon-6 = 7; 
  21. icon-7 = 8; 
  22. icon-8 = 9; 
  23. icon-9 = 10; 
  24. icon-default =
  25. format = <label-state>
  26. label-active = " %icon% %name% "
  27. label-active-foreground = ${colors.foreground}
  28. label-active-underline = ${colors.f-alt}
  29. label-occupied = " %icon% %name% "
  30. label-occupied-underline = ${colors.blue}
  31. label-urgent = " %icon% %name% "
  32. label-urgent-foreground = ${colors.urgent}
  33. label-urgent-underline = ${colors.urgent}
  34. label-empty = " %icon% %name% "
  35. label-empty-foreground = ${colors.foreground}
  36.  
  37.  
  38. ;;;;;;;;;;;;;;;;;;;
  39. ;; i3 Workspaces ;;
  40. ;;;;;;;;;;;;;;;;;;;
  41. [module/i3-workspaces]
  42. type = internal/i3
  43. pin-workspaces = false
  44. strip-wsnumbers = true
  45. index-sort = true
  46. enable-click = true
  47. enable-scroll = false
  48. wrapping-scroll = false
  49. reverse-scroll = false
  50. fuzzy-match = true
  51. ws-icon-0 = 1;
  52. ws-icon-1 = 2;
  53. ws-icon-2 = 3;
  54. ws-icon-3 = 4;
  55. ws-icon-4 = 5;
  56. ws-icon-5 = 6;
  57. ws-icon-6 = 7;
  58. ws-icon-7 = 8;
  59. ws-icon-8 = 9;
  60. ws-icon-9 = 10;
  61. ws-icon-default = 
  62. format = <label-state><label-mode>
  63. label-mode = %mode%
  64. label-mode-padding = 2
  65. label-mode-underline = ${colors.urgent}
  66. label-focused = "%name% %icon%"
  67. label-focused-underline = ${colors.blue}
  68. label-focused-padding = 2
  69. label-unfocused = "%name% %icon%"
  70. label-unfocused-padding = 2
  71. label-visible = "%name% %icon%"
  72. label-visible-underline = ${colors.blue}
  73. label-visible-padding = 2
  74. label-urgent = "%name% %icon%"
  75. label-urgent-underline = ${colors.urgent}
  76. label-urgent-padding = 2
  77.  
  78.  
  79.  
  80. ;;;;;;;;;;;;;
  81. ;; Network ;;
  82. ;;;;;;;;;;;;;
  83. [module/network]
  84. type = custom/script
  85. interface = enp2s0
  86. interval = 3.0
  87. format-connected = <label-connected>
  88. ;format-connected-prefix = " "
  89. format-connected-prefix-foreground = ${colors.foreground-alt}
  90. format-disconnected = <label-disconnected>
  91. label-connected = %{A1:networkmanager_dmenu:}%downspeed%%{A}
  92. label-connected-foreground = ${colors.foreground}
  93. label-disconnected = no connection
  94. format-padding = 1
  95.  
  96.  
  97. ;;;;;;;;;;;;;;;;;;;
  98. ;; Window Switch ;;
  99. ;;;;;;;;;;;;;;;;;;;
  100. [module/window_switch]
  101. type = custom/script
  102. interval = 5
  103. label = "%{A1:skippy-xd:} %{A3:skippy-xd:} %output% %{A} %{A}"
  104. exec = echo "  "
  105. format = <label>
  106.  
  107.  
  108. ;;;;;;;;;
  109. ;; CPU ;;
  110. ;;;;;;;;;
  111. [module/coreuse]
  112. type = internal/cpu
  113. interval = 1
  114. format = <label><ramp-coreload>
  115. label = %{A1:termite --exec=htop & disown:} %percentage%% %{A}
  116. ramp-coreload-0 = %{T1}%{F#8FA1B3}▂%{F-}%{T-}
  117. ramp-coreload-1 = %{T1}%{F#8FA1B3}▃%{F-}%{T-}
  118. ramp-coreload-2 = %{T1}%{F#6BA4E7}▄%{F-}%{T-}
  119. ramp-coreload-3 = %{T1}%{F#6BA4E7}▅%{F-}%{T-}
  120. ramp-coreload-4 = %{T1}%{F#FFFE5D}▆%{F-}%{T-}
  121. ramp-coreload-5 = %{T1}%{F#FFFE5D}▇%{F-}%{T-}
  122. ramp-coreload-6 = %{T1}%{F#FF5B6C}█%{F-}%{T-}
  123.  
  124. [module/cpu]
  125. type = internal/cpu
  126. interval = 1
  127. format-prefix = " "
  128. format-prefix-foreground = ${colors.foreground}
  129. label = %{A1:urxvt --geometry 150x30 -e htop:}%percentage%%%{A}
  130.  
  131. ;;;;;;;;;
  132. ;; MEM ;;
  133. ;;;;;;;;;
  134. [module/memory]
  135. type = internal/memory
  136. interval = 3
  137. format-prefix = " "
  138. format-prefix-foreground = ${colors.foreground}
  139. label = %{A1:urxvt --geometry 150x30 -e htop:}%percentage_used%%%{A}
  140.  
  141.  
  142. [module/pkg]
  143. type = custom/script
  144. label = %output%
  145. tail = true
  146. label-padding = 1
  147. exec = $HOME/.config/polybar/updates
  148. exec-if = "ping -c 1 8.8.8.8 > /dev/null"
  149. click-left = termite "--exec=sudo pacman -Syyu" &
  150.  
  151.  
  152. ;;;;;;;;;;;
  153. ;; Clock ;;
  154. ;;;;;;;;;;;
  155. [module/clock]
  156. type = internal/date
  157. format = <label>
  158. interval = 5
  159. time = %R
  160. label = %{A1:gsimplecal & disown:} %{A3:gsimplecal & disown:} %time% %{A}%{A}
  161.  
  162.  
  163. ;;;;;;;;;;;;;;;;;
  164. ;; TEMPERATURE ;;
  165. ;;;;;;;;;;;;;;;;;
  166. [module/temperature]
  167. type = internal/temperature
  168. interval = 3
  169. thermal-zone = 0
  170. warn-temperature = 70
  171.  
  172. format = <ramp><label>
  173. label = " %temperature%"
  174.  
  175. ramp-0 = ""
  176. ramp-0-foreground = ${colors.blue}
  177. ramp-1 = ""
  178. ramp-1-foreground = ${colors.pink}
  179. ramp-2 = ""
  180. ramp-2-foreground = ${colors.purple}
  181. ramp-3 = ""
  182. ramp-3-foreground = ${colors.urgent}
  183.  
  184. format-warn = <label-warn>
  185. label-warn = " %temperature%"
  186. label-warn-foreground = ${colors.urgent}
  187.  
  188. [module/temp]
  189. type = internal/temperature
  190.  
  191. thermal-zone = 2
  192.  
  193. format = <ramp> <label>
  194. format-padding = 1
  195.  
  196. label-foreground = ${colors.foreground}
  197.  
  198. ramp-0 = 
  199. ramp-1 = 
  200. ramp-2 = 
  201.  
  202. ramp-foreground = ${colors.foreground}
  203.  
  204.  
  205. ;;;;;;;;;;;;
  206. ;; Volume ;;
  207. ;;;;;;;;;;;;
  208. [module/volume]
  209. type = internal/volume
  210. master-mixer = Master
  211. label-volume-foreground = ${colors.foreground}
  212. label-volume = %{A3:pavucontrol & disown:}%percentage%% %{A}
  213. format-volume = <ramp-volume> <label-volume>
  214. label-muted = " muted"
  215. label-muted-foreground = #888
  216. ramp-volume-0 = ""
  217. ramp-volume-0-foreground = ${colors.foreground}
  218. ramp-volume-1 = ""
  219. ramp-volume-1-foreground = ${colors.blue}
  220. ramp-volume-2 = ""
  221. ramp-volume-2-foreground = ${colors.orange}
  222. ramp-volume-3 = ""
  223. ramp-volume-3-foreground = ${colors.urgent}
  224.  
  225. [module/volume1]
  226. type = custom/script
  227. interval = 1
  228. label = %output%
  229. exec = $HOME/.config/polybar/pavolume.sh
  230. click-right = exec pavucontrol &
  231. click-left = $HOME/.config/polybar/pavolume.sh --togmute
  232. scroll-up = $HOME/.config/polybar/pavolume.sh --up
  233. scroll-down = $HOME/.config/polybar/pavolume.sh --down
  234. tail = true
  235.  
  236.  
  237.  
  238. ;;;;;;;;;;;;;
  239. ;; BATTERY ;;
  240. ;;;;;;;;;;;;;
  241. [module/battery]
  242. type = internal/battery
  243.  
  244. ; Use $ ls -1 /sys/class/power_supply/
  245. battery = BAT1
  246. adapter = AC
  247. full-at = 98
  248. poll-interval = 5
  249. time-format = %H:%M
  250.  
  251. format-charging = <animation-charging><label-charging>
  252. format-discharging = <ramp-capacity><label-discharging>
  253. format-full = <ramp-capacity><label-full>
  254. format-padding = 0
  255.  
  256. ramp-capacity-0 = " "
  257. ramp-capacity-0-foreground = ${colors.urgent}
  258. ramp-capacity-1 = " "
  259. ramp-capacity-1-foreground = #ffa900
  260. ramp-capacity-2 = " "
  261. ramp-capacity-3 = " "
  262. ramp-capacity-4 = " "
  263. ramp-capacity-foreground = ${colors.blue}
  264.  
  265. bar-capacity-width = 10
  266. animation-charging-0 = "  "
  267. animation-charging-1 = "  "
  268. animation-charging-2 = "  "
  269. animation-charging-3 = "  "
  270. animation-charging-4 = "  "
  271. animation-charging-framerate = 750
  272.  
  273.  
  274. ;;;;;;;;;;
  275. ;; MENU ;;
  276. ;;;;;;;;;;
  277. [module/menu]
  278. type = custom/menu
  279. format-spacing = 1
  280. label-open = "  "
  281. label-open-foreground = ${colors.foreground}
  282. label-close = "  "
  283. label-close-foreground = ${colors.foreground}
  284. label-separator = "│"
  285. label-separator-foreground = ${colors.foreground-alt}
  286. menu-0-0 = Favs
  287. menu-0-0-exec = menu-open-1
  288. menu-0-1 = Extra
  289. menu-0-1-exec = menu-open-2
  290. menu-0-2 = System
  291. menu-0-2-exec = menu-open-3
  292. menu-0-3 = Power
  293. menu-0-3-exec = menu-open-4
  294.  
  295. menu-1-0 = "  "
  296. menu-1-0-exec = exo-open --launch WebBrowser
  297. menu-1-1 = "  "
  298. menu-1-1-exec = exo-open --launch TerminalEmulator
  299. menu-1-2 = "  "
  300. menu-1-2-exec = exo-open --launch FileManager
  301. menu-1-3 = "  "
  302. menu-1-3-exec = subl3
  303.  
  304. menu-2-0 = "  "
  305. menu-2-0-exec = gimp-2.8
  306. menu-2-1 = "  "
  307. menu-2-1-exec = spotify --force-device-scale-factor=1.5
  308. menu-2-2 = "  "
  309. menu-2-2-exec = deluge
  310. menu-2-3 = "  "
  311. menu-2-3-exec = exo-open --launch WebBrowser https://mail.google.com/mail/u/0/#inbox
  312. menu-2-4 = "  "
  313. menu-2-4-exec = steam-runtime
  314. menu-2-5 = "  "
  315. menu-2-5-exec = scrot %F-%S_$wx$h_scrot.png -e 'mv $f ~/images'
  316.  
  317. menu-3-0 = "  "
  318. menu-3-0-exec = termite --geometry=900x700 --exec=pacli &
  319. menu-3-1 = "  "
  320. menu-3-1-exec = xfce4-taskmanager &
  321. menu-3-2 = "  "
  322. menu-3-2-exec = pavucontrol &
  323. menu-3-3 = "  "
  324. menu-3-3-exec = gnome-disks &
  325. menu-3-4 = "  "
  326. menu-3-4-exec = obconf &
  327.  
  328. menu-4-0 = "  "
  329. menu-4-0-exec = i3lock-fancy
  330. menu-4-1 = "  "
  331. menu-4-1-exec = systemctl reboot
  332. menu-4-2 = "  "
  333. menu-4-2-exec = systemctl poweroff
  334.  
  335. [module/time]
  336. type = internal/date
  337. interval = 5
  338. label-foreground = ${colors.foreground}
  339. date =
  340. date-alt = " %Y-%m-%d"
  341.  
  342. time = %H:%M
  343. time-alt = %H:%M:%S
  344.  
  345. format-prefix = 
  346. format-prefix-foreground = ${colors.foreground}
  347. ;format-underline = #0a6cf5
  348.  
  349. label = %date% %time%
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357. ;;;;;;;;;;;;;;;;;;;
  358. ;; Extra Modules
  359. ;;;;;;;;;;;;;;;;;;;
  360.  
  361. ;;;;;;;;;;;;;;;
  362. ;; KEYBOARD ;;
  363. ;;;;;;;;;;;;;;;
  364. [module/keyboard]
  365. type = internal/xkeyboard
  366. ; List of indicators to ignore
  367. blacklist-0 = num lock
  368. blacklist-1 = scroll lock
  369. format = <label-layout>
  370. label-layout = %{A1:mintlocale & disown:} %{A3:mintlocale & disown:} %layout%%{A} %{A}
  371.  
  372.  
  373. ;;;;;;;;;;;;;;
  374. ;; ETHERNET ;;
  375. ;;;;;;;;;;;;;;
  376. [module/wired-network]
  377. type = custom/script
  378. ;label-background = ${colors.background}
  379. exec = ~/.config/polybar/network.sh
  380. click-left = networkmanager_dmenu
  381. click-right = networkmanager_dmenu
  382. label-padding = 1
  383. interval = 1
  384. tail = true
  385.  
  386.  
  387. ;;;;;;;;;;;;;;
  388. ;; REDSHIFT ;;
  389. ;;;;;;;;;;;;;;
  390. [module/redshift]
  391. type = custom/script
  392. interval = 5
  393. exec = $HOME/.config/polybar/redshift
  394. label = %output%
  395. tail = true
  396. click-left = $HOME/.config/polybar/redshift toggle
  397. click-right = $HOME/.config/polybar/redshift toggle
  398. format-online-prefix = " "
  399.  
  400. ;;;;;;;;;;;;
  401. ;; GITHUB ;;
  402. ;;;;;;;;;;;;
  403. [module/github]
  404. type = internal/github
  405. token = ${~/.config/polybar/github_access.token}
  406. empty-notifications = false
  407.  
  408.  
  409. ;;;;;;;;;;;;;;;;
  410. ;; FILESYSTEM ;;
  411. ;;;;;;;;;;;;;;;;
  412. [module/filesystem]
  413. type = internal/fs
  414. format-mounted = <label-mounted>
  415. label-mounted = %mountpoint% : %percentage_free%%
  416. label-mounted-foreground = ${colors.yellow}
  417. mount-0 = /
  418. interval = 1200
  419. fixed-values = false
  420. spacing = 2
  421.  
  422.  
  423. ;;;;;;;;;
  424. ;; MPD ;;
  425. ;;;;;;;;;
  426. [module/mpd]
  427. type = internal/mpd
  428. format-online = <bar-progress> <icon-prev> <icon-stop> <toggle> <icon-next> <label-song>
  429. format-offline = <label-offline>
  430. label-offline = mpd is off
  431. format-online-prefix = " "
  432.  
  433. icon-play = 
  434. icon-pause = 
  435. icon-stop = 
  436. icon-prev = 
  437. icon-next = 
  438. icon-random = 
  439. icon-repeat = 
  440.  
  441. toggle-on-foreground =
  442. toggle-off-foreground = #55
  443.  
  444. bar-progress-width = 35
  445. bar-progress-format = %{+o +u}%fill%%{-o -u}%indicator%%{+o +u}%empty%%{-u -o}
  446. ; bar-progress-indicator = |
  447. bar-progress-indicator = █
  448. bar-progress-indicator-foreground = #A85659
  449. bar-progress-indicator-font = 2
  450. ; bar-progress-fill = ─
  451. bar-progress-fill = █
  452. bar-progress-fill-foreground = #bb
  453. bar-progress-fill-font = 2
  454. ; bar-progress-empty = ─
  455. bar-progress-empty = ▒
  456. bar-progress-empty-font = 2
  457. bar-progress-empty-foreground = #44
  458.  
  459.  
  460.  
  461. ;;;;;;;;;;
  462. ;; WIFI ;;
  463. ;;;;;;;;;;
  464. [module/wireless-network]
  465. type = internal/network
  466. interface =
  467.  
  468. format-connected = <ramp-signal> <label-connected>
  469. format-packetloss = <animation-packetloss>
  470. label-connected = " %local_ip% "
  471.  
  472. ramp-signal-0 = 
  473. ramp-signal-0-foreground = #F03051
  474. ramp-signal-1 = 
  475. ramp-signal-1-foreground = #F07127
  476. ramp-signal-2 = 
  477. ramp-signal-2-foreground = #F9CE56
  478. ramp-signal-3 = 
  479. ramp-signal-3-foreground = ${colors.purple}
  480. ramp-signal-4 = 
  481. ramp-signal-4-foreground = ${colors.purple}
  482. ramp-signal-5 = 
  483. ramp-signal-5-foreground = ${colors.purple}
  484.  
  485. animation-packetloss-0 = ⚠
  486. animation-packetloss-0-foreground = #ffa64c
  487. animation-packetloss-1 = 📶
  488. animation-packetloss-1-foreground = #000000
  489. animation-packetloss-framerate = 500
  490.  
  491.  
  492. ;;;;;;;;;;;;;;;;
  493. ;; VOLUME BAR ;;
  494. ;;;;;;;;;;;;;;;;
  495. [module/volume-bar]
  496. type = internal/volume
  497.  
  498. format-volume = <label-volume><bar-volume>
  499. label-volume = "  "
  500. label-volume-foreground = #B6C2E7
  501.  
  502. format-muted-foreground = #E76BB4
  503. label-muted = "  mute"
  504. bar-volume-font = 2
  505. bar-volume-width = 20
  506. bar-volume-foreground-0 = #92A3F7
  507. bar-volume-foreground-1 = #92A3F7
  508. bar-volume-foreground-2 = #6BB3E7
  509. bar-volume-foreground-3 = #6BB3E7
  510. bar-volume-foreground-4 = #6BB3E7
  511. bar-volume-foreground-5 = #6BE7D8
  512. bar-volume-foreground-6 = #6BE7D8
  513. bar-volume-gradient = true
  514. bar-volume-indicator = |
  515. bar-volume-fill = •
  516. bar-volume-empty = ·
  517. bar-volume-empty-foreground = #666666
  518.  
  519. [module/music2]
  520. type = custom/script
  521. interval = 2
  522. label = %output:0:305:...%
  523. label-padding = 1
  524. exec = ~/.config/polybar/mpris.sh
  525.  
  526. [module/eth]
  527. type = internal/network
  528. interface = enp2s0
  529. interval = 3.0
  530. format-connected = <label-connected>
  531. format-connected-prefix = "  "
  532. format-connected-prefix-foreground = ${colors.foreground}
  533. format-disconnected = <label-disconnected>
  534. label-connected = %{A1:networkmanager_dmenu:}%downspeed%%{A}
  535. label-connected-foreground = ${colors.foreground}
  536. label-disconnected = no connection
  537. format-padding = 1
  538.  
  539. [module/play]
  540. type = custom/script
  541. exec = python3 ~/.config/polybar/Play.py
  542. format-padding = 1
  543. interval = 2
  544. format = <label>
  545. format-foreground = ${colors.foreground}
  546. ;format-background = ${colors.foreground-alt}
  547. click-left = playerctl play
  548. click-right = playerctl pause
  549.  
  550. [module/next]
  551. type = custom/script
  552. exec = echo 
  553. format-padding = 1
  554. format = <label>
  555. format-foreground = ${colors.foreground}
  556. ;format-background = ${colors.foreground-alt}
  557. click-left = playerctl next
  558.  
  559. [module/previous]
  560. type = custom/script
  561. exec = echo 
  562. format-padding = 1
  563. format = <label>
  564. format-foreground = ${colors.foreground}
  565. ;format-background = ${colors.foreground-alt}
  566. click-left = playerctl previous
  567.  
  568. [module/pause]
  569. type = custom/script
  570. exec = python3 ~/.config/polybar/Pause.py
  571. format-padding = 1
  572. format = <label>
  573. interval = 2
  574. format-foreground = ${colors.foreground}
  575. ;format-background = ${colors.foreground-alt}
  576. click-left = playerctl pause
  577.  
  578. [module/weather]
  579. type = custom/script
  580. interval = 10
  581. format = <label>
  582. format-prefix = "  "
  583. format-prefix-foreground = ${colors.foreground}
  584. label-foreground = ${colors.foreground}
  585. label-padding = 1
  586. exec = ~/.config/polybar/weather
  587. format-padding = 1
  588.  
  589. [module/rofi]
  590. type = custom/script
  591. exec = echo ""
  592. click-left = rofi -show drun -font "Pilcrow 20" -theme ~/.config/rofi/sidebar.rasi
  593. format-padding = 1
  594.  
  595. [module/now_playing]
  596. type = custom/script
  597. exec = "python ~/.config/polybar/now_playing.py"
  598. tail = true
  599. format = <label>
  600. format-prefix = " "
  601. format-prefix-foreground = ${colors.foreground}
  602. label = %output%
  603. label-maxlen = 75
  604. label-ellipsis = true
  605. format-margin = 20
  606.  
  607. [module/jgmenu]
  608. type = custom/script
  609. label = %output%
  610. label-padding = 1
  611. interval = 10
  612. exec = echo ""
  613. click-left = jgmenu_run xdg
  614.  
  615. [bar/powermenubar]
  616. monitor = HDMI-A-0
  617. width = 28%
  618. height = 32
  619. radius = 0
  620.  
  621. background = #DA222222
  622. foreground = ${colours.foreground}
  623.  
  624. border-size = 0
  625. border-color =${colours.foreground}
  626.  
  627. border-bottom-size = 0
  628. border-bottom-color = ${colours.foreground}
  629.  
  630. border-top-size = 0
  631. border-top-color = ${colours.foreground}
  632.  
  633. border-right-size = 0
  634. ; border-right-color = ${colours.foreground}
  635.  
  636. offset-x = 1370
  637. offset-y = 35
  638.  
  639.  
  640. padding = 3
  641. module-margin = 2
  642. separator = %{F#33}|
  643.  
  644. font-0 = System San Francisco Display:size=10;2
  645. font-1 = FontAwesome:size=14;3
  646. font-2 = MaterialIcons:size=14;4
  647. ;http://fontawesome.io/cheatsheet/
  648. ;https://shanfan.github.io/material-icons-cheatsheet/
  649.  
  650. modules-center = lock logout suspend reboot poweroff closepowermenubar
  651.  
  652. override-redirect = true
  653. wm-restack = true
  654.  
  655. ;;;;;;;;;;;;;;;;;;;;;;;;
  656. ;; GoRice Config UI ;;
  657. ;;;;;;;;;;;;;;;;;;;;;;;;
  658. [module/config]
  659. type = custom/script
  660. exec = echo ""
  661. interval = 5
  662.  
  663. label = %output%
  664. label-padding = 2
  665. format = <label>
  666.  
  667. click-left = ~/.go/bin/gorice dump i3 ~/.gorice/output.yaml.template; ~/bin/config_ui &
  668. click-right = termite "--exec=$HOME/go/bin/gorice edit i3/current" &
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement