Advertisement
Dobbie03

Polybar

Aug 8th, 2017
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.55 KB | None | 0 0
  1.  
  2. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  3. ;;;;;; ;;;;;;;
  4. ;;;;;; ♟ ♞ ♝ ♜ ♛ ♚           ;;;;;;;
  5. ;;;;;;   ─ │               ;;;;;;;
  6. ;;;;;;                 ;;;;;;;
  7. ;;;;;;                 ;;;;;;;
  8. ;;;;;;                 ↵ ;;;;;;;
  9. ;;;;;;    ⚡✓ ✘  🌞         ;;;;;;;
  10. ;;;;;;        ➤ ─         ;;;;;;;
  11. ;;;;;;  🔥 👌 ( ͡° ͜ʖ ͡°)         ;;;;;;;
  12. ;;;;;;         ○ ●         ;;;;;;;
  13. ;;;;;;                ;;;;;;;
  14. ;;;;;;         ;;;;;;;
  15. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  16.  
  17. [colors]
  18. background = #111111
  19. background-alt = #1a1a1a
  20. ;foreground = #C5C8C6
  21. foreground-alt = #454545
  22. foreground = #454545
  23. red = #CC6666
  24. yellow = #F0C674
  25. green = #B3BB67
  26. blue = #7FA0BC
  27.  
  28. [bar/panel]
  29. monitor = ${env:MONITOR:HDMI-A-0}
  30. width = 100%
  31. height = 35
  32. ;offset-x = 1%
  33. ;offset-y = 1%
  34. ;radius = 6.0
  35. fixed-center = true
  36. bottom = false
  37. background = #00ffffff
  38. ;background = ${colors.background}
  39. foreground = ${colors.foreground}
  40. line-size = 0
  41. ;line-color = #f00
  42. border-size = 4
  43. border-color = #00ffffff
  44. ;border-color = ${colors.background}
  45. padding-left = 1
  46. padding-right = 1
  47. module-margin-left = 1
  48. module-margin-right = 1
  49. ;locale = fr_FR.UTF-8
  50. font-0 = SFNS Display Regular:size=15;1
  51. font-1 = unifont:fontformat=truetype:size=12:antialias=false;0
  52. font-2 = FontAwesome:size=15;1
  53. modules-left = menu networkmanager workspace window_count previous play pause next music2
  54. modules-center = xtitle
  55. modules-right = weather volume temp cpu memory eth xkeyboard time rofi
  56. ;tray-position =
  57. ;tray-padding = 2
  58. ;tray-background = ${colors.background-alt}
  59. ;tray-transparent = true
  60. ;tray-offset-x =
  61. ;tray-detached = false
  62. ;tray-maxsize = 24
  63.  
  64. [module/browser]
  65. type = custom/text
  66. content = 
  67. content-foreground = ${colors.foreground}
  68. click-left = exo-open --launch WebBrowser &
  69.  
  70. [module/fx]
  71. type = custom/text
  72. content = 
  73. content-foreground = ${colors.foreground}
  74. click-left = firefox &
  75.  
  76. [module/fm]
  77. type = custom/text
  78. content = 
  79. content-foreground = ${colors.foreground}
  80. click-left = thunar &
  81. click-right = gksu thunar &
  82.  
  83. [module/scrot]
  84. type = custom/text
  85. content = 
  86. content-foreground = ${colors.foreground}
  87. click-left = scrot %F-%S_$wx$h_scrot.png -e 'mv $f ~/scrot' &
  88.  
  89. [module/term]
  90. type = custom/text
  91. content = 
  92. content-foreground = ${colors.foreground}
  93. click-left = termite &
  94. click-right = urxvt &
  95.  
  96. [module/editor]
  97. type = custom/text
  98. content = 
  99. content-foreground = ${colors.foreground}
  100. click-left = subl3 &
  101. click-right = geany &
  102.  
  103. [module/spotify]
  104. type = custom/text
  105. content = 
  106. content-foreground = ${colors.foreground}
  107. click-left = spotify --force-device-scale-factor=1.5
  108.  
  109. [module/steam]
  110. type = custom/text
  111. content = 
  112. content-foreground = ${colors.foreground}
  113. click-left = steam-runtime
  114.  
  115.  
  116. [module/torr]
  117. type = custom/text
  118. content = 
  119. content-foreground = ${colors.foreground}
  120. click-left = deluge &
  121. click-right = transmission-gtk &
  122.  
  123. [module/clip]
  124. type = custom/text
  125. content = 
  126. content-foreground = ${colors.foreground}
  127. click-left = diodon
  128.  
  129. [module/email]
  130. type = custom/text
  131. content = 
  132. content-foreground = ${colors.foreground}
  133. click-left = claws-mail &
  134.  
  135. [module/lock]
  136. type = custom/text
  137. content = 
  138. content-foreground = ${colors.foreground}
  139. click-left = slimlock
  140.  
  141. [module/chrome]
  142. type = custom/text
  143. content = 
  144. content-foreground = ${colors.foreground}
  145. click-left = exo-open --launch WebBrowser &
  146.  
  147. [module/music]
  148. type = custom/text
  149. content = 
  150. content-foreground = ${colors.foreground}
  151. click-left = audacious
  152.  
  153. [module/workspace]
  154. type = custom/script
  155. interval = 1
  156. label = %{A4:wmctrl -s "$(($(xprop -root _NET_CURRENT_DESKTOP | cut -d '=' -f 2 | cut -d ' ' -f 2)+1))":}%{A5:wmctrl -s "$(($(xprop -root _NET_CURRENT_DESKTOP | cut -d '=' -f 2 | cut -d ' ' -f 2)-1))":}%output% %{A}%{A}
  157. exec = echo "$(($(xprop -root _NET_CURRENT_DESKTOP | cut -d '=' -f 2 | cut -d ' ' -f 2)+1))"
  158. format = <label>
  159. format-prefix = " "
  160. format-prefix-foreground = ${colors.foreground-alt}
  161.  
  162. [module/window_count]
  163. type = custom/script
  164. interval = 1
  165. label = %{A1:rofi -width 30 -location 1 -xoffset 3 -show window:}%output% %{A}
  166. exec = echo "$(($(lsw | wc -l)-1))"
  167. format = <label>
  168. format-prefix = " "
  169. format-prefix-foreground = ${colors.foreground-alt}
  170.  
  171. [module/xtitle]
  172. type = internal/xwindow
  173. interval = 1
  174. label = %title%
  175. label-maxlen = 40
  176. exec = echo "$(xtitle)"
  177. format = <label>
  178. ;format-background = ${colors.background}
  179. format-backround = #ooffffff
  180. format-prefix = " "
  181. format-prefix-foreground = ${colors.foreground}
  182. format-padding = 1
  183.  
  184. [module/mpd]
  185. type = internal/mpd
  186. format-online = <icon-prev> <icon-stop> <toggle> <icon-next> <label-song>
  187. format-online-prefix = " "
  188. format-online-prefix-foreground = ${colors.foreground-alt}
  189. fomat-online-foreground = ${colors.blue}
  190. format-online-background = ${colors.background-alt}
  191. format-online-padding = 1
  192. icon-play = 
  193. icon-pause = 
  194. icon-stop = 
  195. icon-prev = 
  196. icon-next = 
  197. ;icon-play = 
  198. ;icon-pause = 
  199. ;icon-stop = 
  200. ;icon-prev = 
  201. ;icon-next = 
  202. ;icon-random = 
  203. label-song = %title% - %artist% - %album%
  204. label-song-maxlen = 75
  205. label-song-ellipsis = true
  206. label-padding = 1
  207. toggle-on-foreground = ${colors.foreground}
  208. toggle-off-foreground = ${colors.foreground-alt}
  209.  
  210. [module/xkeyboard]
  211. type = internal/xkeyboard
  212. blacklist-0 = num lock
  213. format-prefix = " "
  214. format-prefix-foreground = ${colors.foreground-alt}
  215. label-layout = %layout%
  216. label-indicator-padding = 1
  217. label-indicator-margin = 1
  218. label-indicator-foreground = ${colors.red}
  219. label-indicator-background = ${colors.background}
  220.  
  221. [module/cpu]
  222. type = internal/cpu
  223. interval = 1
  224. format-prefix = " "
  225. format-prefix-foreground = ${colors.foreground-alt}
  226. label = %{A1:urxvt --geometry 150x30 -e htop:}%percentage%%%{A}
  227.  
  228. [module/memory]
  229. type = internal/memory
  230. interval = 3
  231. format-prefix = " "
  232. format-prefix-foreground = ${colors.foreground-alt}
  233. label = %{A1:urxvt --geometry 150x30 -e htop:}%percentage_used%%%{A}
  234.  
  235. ;[module/date]
  236. ;type = custom/script
  237. ;interval = 60
  238. ;exec = echo "$(date +%a) $(date +%d) $(date +%b)"
  239. ;format = <label>
  240. ;format-prefix = " "
  241. ;format-prefix-foreground = ${colors.foreground-alt}
  242. ;label = %{A1:gsimplecal &:}%output%%{A}
  243.  
  244. [module/clock]
  245. type = custom/script
  246. interval = 5
  247. exec = echo "$(date +%R)"
  248. format = <label>
  249. format-prefix = " "
  250. format-prefix-foreground = ${colors.foreground-alt}
  251. label = %{A1:gsimplecal &:}%output%%{A}
  252.  
  253. [module/time]
  254. type = internal/date
  255. interval = 5
  256. label-foreground = ${colors.foreground}
  257. date =
  258. date-alt = " %Y-%m-%d"
  259.  
  260. time = %H:%M
  261. time-alt = %H:%M:%S
  262.  
  263. format-prefix = 
  264. format-prefix-foreground = ${colors.foreground}
  265. ;format-underline = #0a6cf5
  266.  
  267. label = %date% %time%
  268.  
  269. [module/volume]
  270. type = internal/volume
  271. format-volume = <ramp-volume> <label-volume>
  272. label-volume = %percentage%%
  273. label-volume-foreground = ${root.foreground}
  274. format-muted = <label-muted>
  275. format-muted-foreground = ${colors.foreground-alt}
  276. label-muted =  mute
  277. ramp-volume-0 = 
  278. ramp-volume-1 = 
  279. ramp-volume-foreground = ${colors.foreground-alt}
  280.  
  281.  
  282. [module/battery]
  283. type = internal/battery
  284. battery = BAT0
  285. adapter = AC
  286. full-at = 98
  287. format-charging = <animation-charging> <label-charging>
  288. format-discharging = <ramp-capacity> <label-discharging>
  289. format-full-prefix = " "
  290. format-full-prefix-foreground = ${colors.blue}
  291. ramp-capacity-0 = 
  292. ramp-capacity-0-foreground = ${colors.red}
  293. ramp-capacity-1 = 
  294. ramp-capacity-2 = 
  295. ramp-capacity-3 = 
  296. ramp-capacity-4 = 
  297. ramp-capacity-foreground = ${colors.foreground-alt}
  298. animation-charging-0 = 
  299. animation-charging-1 = 
  300. animation-charging-2 = 
  301. animation-charging-3 = 
  302. animation-charging-4 = 
  303. animation-charging-foreground = ${colors.foreground-alt}
  304. animation-charging-framerate = 750
  305.  
  306. [module/networkmanager]
  307. type = custom/text
  308. content = net 
  309. content-foreground = ${colors.foreground}
  310. click-left = networkmanager_dmenu
  311.  
  312. [module/eth]
  313. type = internal/network
  314. interface = enp2s0
  315. interval = 3.0
  316. format-connected = <label-connected>
  317. format-connected-prefix = " "
  318. format-connected-prefix-foreground = ${colors.foreground-alt}
  319. format-disconnected = <label-disconnected>
  320. label-connected = %{A1:networkmanager_dmenu:}%downspeed%%{A}
  321. label-connected-foreground = ${colors.foreground}
  322. label-disconnected = no connection
  323.  
  324. [module/wlan]
  325. type = internal/network
  326. interface = wlan0
  327. interval = 3.0
  328. format-connected = <label-connected>
  329. format-connected-prefix = " "
  330. format-connected-prefix-foreground = ${colors.foreground-alt}
  331. format-disconnected = <label-disconnected>
  332. label-connected = %{A1:networkmanager_dmenu:}%downspeed%%{A}
  333. label-connected-foreground = ${colors.foreground}
  334. label-disconnected =
  335.  
  336. [module/mail]
  337. type = custom/script
  338. interval = 30
  339. format = <label>
  340. format-prefix = " "
  341. format-prefix-foreground = ${colors.foreground-alt}
  342. exec = ~/.config/polybar/mail
  343. click-left = exo-open --launch WebBrowser https://mail.google.com &
  344.  
  345. [module/play]
  346. type = custom/script
  347. exec = python3 ~/.config/polybar/Play-dark.py
  348. format-padding = 1
  349. interval = 2
  350. format = <label>
  351. format-foreground = ${colors.foreground}
  352. ;format-background = ${colors.foreground-alt}
  353. click-left = playerctl play
  354.  
  355. [module/next]
  356. type = custom/script
  357. exec = echo 
  358. format-padding = 1
  359. format = <label>
  360. format-foreground = ${colors.foreground}
  361. ;format-background = ${colors.foreground-alt}
  362. click-left = playerctl next
  363.  
  364. [module/previous]
  365. type = custom/script
  366. exec = echo 
  367. format-padding = 1
  368. format = <label>
  369. format-foreground = ${colors.foreground}
  370. ;format-background = ${colors.foreground-alt}
  371. click-left = playerctl previous
  372.  
  373. [module/pause]
  374. type = custom/script
  375. exec = python3 ~/.config/polybar/Pause-dark.py
  376. format-padding = 1
  377. format = <label>
  378. interval = 2
  379. format-foreground = ${colors.foreground}
  380. ;format-background = ${colors.foreground-alt}
  381. click-left = playerctl pause
  382.  
  383. [module/music2]
  384. type = custom/script
  385. interval = 2
  386. label = %output:0:305:...%
  387. label-padding = 1
  388. exec = ~/.config/polybar/mpris-dark.sh
  389.  
  390. [module/love]
  391. type = custom/script
  392. interval = 2
  393. format = <label>
  394. ;format-prefix = "❤"
  395. format-prefix-foreground = ${colors.foreground}
  396. exec = echo "❤"
  397. click-left = /bin/love
  398.  
  399. [module/menu]
  400. type = custom/menu
  401.  
  402. format-spacing = 1
  403. label-open = "  "
  404. label-open-foreground = ${colors.foreground}
  405. label-close = "  "
  406. label-close-foreground = ${colors.foreground}
  407. label-separator = "│"
  408. label-separator-foreground = ${colors.foreground-alt}
  409. menu-0-0 = Top
  410. menu-0-0-exec = menu-open-1
  411. menu-0-1 = Extra
  412. menu-0-1-exec = menu-open-2
  413. menu-0-2 = Music
  414. menu-0-2-exec = menu-open-3
  415. menu-0-3 = Power
  416. menu-0-3-exec = menu-open-4
  417.  
  418. menu-1-0 = "  "
  419. menu-1-0-exec = exo-open --launch WebBrowser
  420. menu-1-1 = "  "
  421. menu-1-1-exec = exo-open --launch TerminalEmulator
  422. menu-1-2 = "  "
  423. menu-1-2-exec = exo-open --launch FileManager
  424. menu-1-3 = "  "
  425. menu-1-3-exec = subl3
  426.  
  427. menu-2-0 = "  "
  428. menu-2-0-exec = gimp-2.8
  429. menu-2-1 = "  "
  430. menu-2-1-exec = spotify --force-device-scale-factor=1.5
  431. menu-2-2 = "  "
  432. menu-2-2-exec = deluge
  433. menu-2-3 = "  "
  434. menu-2-3-exec = claws-mail
  435. menu-2-4 = "  "
  436. menu-2-4-exec = steam-runtime
  437. menu-2-5 = "  "
  438. menu-2-5-exec = scrot %F-%S_$wx$h_scrot.png -e 'mv $f ~/images'
  439.  
  440. menu-3-0 = "  "
  441. menu-3-0-exec = audacious &
  442. menu-3-1 = "  "
  443. menu-3-1-exec = playerctl previous
  444. menu-3-2 = "  "
  445. menu-3-2-exec = playerctl stop
  446. menu-3-3 = "  "
  447. menu-3-3-exec = playerctl play-pause
  448. menu-3-4 = "  "
  449. menu-3-4-exec = playerctl next
  450.  
  451. menu-4-0 = "  "
  452. menu-4-0-exec = slimlock
  453. menu-4-1 = "  "
  454. menu-4-1-exec = systemctl reboot
  455. menu-4-2 = "  "
  456. menu-4-2-exec = systemctl poweroff
  457.  
  458. [module/powermenu]
  459. type = custom/menu
  460. format-spacing = 1
  461. label-open = 
  462. label-open-font = 2
  463. label-open-foreground = ${colors.red}
  464. label-close = 
  465. label-close-foreground = ${colors.foreground}
  466. label-separator = |
  467. label-separator-foreground = ${colors.foreground-alt}
  468. menu-0-0 = 
  469. menu-0-0-foreground = ${colors.blue}
  470. menu-0-0-exec = menu-open-1
  471. menu-0-1 = 
  472. menu-0-1-foreground = ${colors.red}
  473. menu-0-1-exec = menu-open-2
  474. menu-1-0 = restart?
  475. menu-1-0-exec = /sbin/reboot
  476. menu-1-1 = 
  477. menu-1-1-exec = menu-open-0
  478. menu-2-0 = 
  479. menu-2-0-exec = menu-open-0
  480. menu-2-1 = shutdown?
  481. menu-2-1-exec = /sbin/poweroff
  482.  
  483. [module/mpd2]
  484. type = internal/mpd
  485. label-song = %artist% - %title%
  486. label-song-maxlen = 65
  487. label-song-ellipsis = true
  488. format-online = <icon-prev> <icon-stop> <toggle> <icon-next> <icon-random> <label-song> <bar-progress>
  489. label-song-foreground = ${colors.foreground}
  490. label-padding = 1
  491. label-song-background = ${colors.background}
  492. icon-pause-background = ${self.label-song-background}
  493. icon-play-background = ${self.label-song-background}
  494. icon-pause-foreground = ${self.label-song-foreground}
  495. icon-stop-foreground = ${self.label-song-foreground}
  496. icon-play-foreground = ${self.label-song-foreground}
  497. label-song-padding = 1
  498. icon-prev = ""
  499. icon-stop = ""
  500. icon-pause = ""
  501. icon-play = ""
  502. icon-next = ""
  503. icon-random = ""
  504. toggle-off-foreground = ${colors.foreground}
  505. toggle-on-foreground = ${colors.red}
  506. bar-progress-width = 20
  507. bar-progress-indicator = 
  508. bar-progress-fill = 
  509. bar-progress-empty = 
  510. bar-progress-fill-foreground = ${colors.foreground}
  511. bar-progress-indicator-foreground = ${colors.red}
  512.  
  513. [module/pkg]
  514. type = custom/script
  515. label-foreground = ${colors.blue}
  516. exec = ~/.config/polybar/pkg.sh
  517. click-left = ~/.config/polybar/update.sh
  518. click-right = ~/.config/polybar/aur-update.sh
  519.  
  520. [module/weather]
  521. type = custom/script
  522. interval = 10
  523. format = <label>
  524. format-prefix = "  "
  525. format-prefix-foreground = ${colors.foreground}
  526. label-foreground = ${colors.foreground}
  527. label-padding = 1
  528. exec = ~/.config/polybar/weather
  529.  
  530. [module/rofi]
  531. type = custom/script
  532. exec = echo ""
  533. click-left = rofi-launcher
  534.  
  535. [module/workspace-icon]
  536. type = internal/i3
  537. pin-workspaces = true
  538. strip-wsnumbers = true
  539. index-sort = true
  540. enable-click = true
  541. enable-scroll = false
  542. wrapping-scroll = false
  543. reverse-scroll = false
  544. fuzzy-match = true
  545. ws-icon-0 = 1;
  546. ws-icon-1 = 2;
  547. ws-icon-2 = 3;
  548. ws-icon-3 = 4;
  549. ws-icon-4 = 5;
  550. ws-icon-5 = 6;
  551. ws-icon-6 = 7;
  552. ws-icon-7 = 8;
  553. ws-icon-8 = 9;
  554. ws-icon-9 = 10;
  555. ws-icon-default = 
  556. format = <label-state>
  557. label-mode = %mode%
  558. label-mode-padding = 2
  559. label-mode-background = ${colors.red}
  560. label-focused = %icon% %name%
  561. label-focused-foreground = ${colors.foreground}
  562. label-focused-background = ${colors.background}
  563. label-focused-underline = ${colors.red}
  564. label-focused-padding = 2
  565. label-unfocused = %icon% %name%
  566. label-unfocused-padding = 2
  567. label-visible = %icon% %name%
  568. label-visible-underline = ${colors.foreground}
  569. label-visible-padding = 2
  570. label-urgent = %icon% %name%
  571. label-urgent-foreground = ${colors.foreground-alt}
  572. label-urgent-background = ${colors.red}
  573. label-urgent-padding = 2
  574.  
  575. [module/workspace-box]
  576. type = internal/i3
  577. format = <label-state><label-mode>
  578. pin-workspaces = true
  579. strip-wsnumbers = true
  580. index-sort = true
  581. enable-click = true
  582. enable-scroll = false
  583. wrapping-scroll = false
  584. reverse-scroll = false
  585. fuzzy-match = true
  586. label-mode-padding = 1
  587. label-mode = %mode%
  588. label-mode-foreground = ${colors.foreground}
  589. label-mode-background = ${colors.background}
  590. label-focused = ""
  591. label-focused-foreground = ${colors.foreground}
  592. label-focused-background = ${colors.background}
  593. label-focused-padding = 1
  594. label-unfocused = ""
  595. label-unfocused-foreground = ${colors.foreground}
  596. label-unfocused-background = ${colors.foreground-alt}
  597. label-unfocused-padding = 1
  598. label-urgent = ""
  599. label-urgent-foreground = ${colors.red}
  600. label-urgent-background = ${colors.foreground-alt}
  601. label-urgent-padding = 1
  602. label-visible = ""
  603. label-visible-foreground = ${colors.foreground}
  604. label-visible-background = ${colors.foreground-alt}
  605. label-visible-padding = 1
  606.  
  607. [module/temp]
  608. type = internal/temperature
  609.  
  610. thermal-zone = 2
  611.  
  612. format = <ramp> <label>
  613. format-padding = 1
  614.  
  615. label-foreground = ${colors.foreground}
  616.  
  617. ramp-0 = 
  618. ramp-1 = 
  619. ramp-2 = 
  620.  
  621. ramp-foreground = ${colors.foreground}
  622.  
  623. [module/updates]
  624. type = custom/script
  625. exec = ~/.bin/update
  626. format = <label>
  627. label = 
  628. label-padding = 1
  629. format-padding = 1
  630. tail = true
  631. interval = 90
  632. label-foreground = ${colors.foreground}
  633.  
  634. [module/altpkg]
  635. type = custom/script
  636. interval = 1200
  637. format = <label>
  638. label-foreground = ${colors.foreground}
  639. label-padding = 1
  640. ;format-underline = #dc322f
  641. format-padding = 1
  642. format-prefix-foreground = ${colors.foreground}
  643. label =  "%output:0:30%"
  644. exec = .config/polybar/pkg.sh
  645. exec-if = "ping -q -w 2 -c 1 176.34.135.167 > /dev/null"
  646.  
  647. [settings]
  648. screenchange-reload = true
  649. ;compositing-background = xor
  650. ;compositing-background = screen
  651. ;compositing-foreground = source
  652. ;compositing-border = over
  653.  
  654. ;[global/wm]
  655. ;margin-top = 0
  656. ;margin-bottom = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement