Advertisement
Dobbie03

Polybar

Jul 21st, 2017
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.52 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 = #B2B2B2
  22. red = #CC6666
  23. yellow = #F0C674
  24. green = #B3BB67
  25. blue = #7FA0BC
  26.  
  27. [bar/top]
  28. monitor = ${env:MONITOR:HDMI-A-0}
  29. width = 100%
  30. height = 35
  31. ;offset-x = 1%
  32. ;offset-y = 1%
  33. ;radius = 6.0
  34. fixed-center = false
  35. bottom = false
  36. background = ${colors.background}
  37. foreground = ${colors.foreground}
  38. line-size = 0
  39. ;line-color = #f00
  40. border-size = 4
  41. border-color = ${colors.background}
  42. padding-left = 1
  43. padding-right = 1
  44. module-margin-left = 1
  45. module-margin-right = 1
  46. ;locale = fr_FR.UTF-8
  47. font-0 = SFNS Display Regular:size=15;1
  48. font-1 = unifont:fontformat=truetype:size=12:antialias=false;0
  49. font-2 = FontAwesome:size=15;1
  50. modules-left = menu networkmanager workspace window_count music2
  51. modules-center =
  52. modules-right = weather volume xkeyboard mail cpu memory eth time rofi
  53. ;tray-position =
  54. ;tray-padding = 2
  55. ;tray-background = ${colors.background-alt}
  56. ;tray-transparent = true
  57. ;tray-offset-x =
  58. ;tray-detached = false
  59. ;tray-maxsize = 24
  60.  
  61. [module/browser]
  62. type = custom/text
  63. content = 
  64. content-foreground = ${colors.foreground}
  65. click-left = chromium &
  66.  
  67. [module/fx]
  68. type = custom/text
  69. content = 
  70. content-foreground = ${colors.foreground}
  71. click-left = firefox &
  72.  
  73. [module/fm]
  74. type = custom/text
  75. content = 
  76. content-foreground = ${colors.foreground}
  77. click-left = thunar &
  78. click-right = gksu thunar &
  79.  
  80. [module/scrot]
  81. type = custom/text
  82. content = 
  83. content-foreground = ${colors.foreground}
  84. click-left = scrot %F-%S_$wx$h_scrot.png -e 'mv $f ~/scrot' &
  85.  
  86. [module/term]
  87. type = custom/text
  88. content = 
  89. content-foreground = ${colors.foreground}
  90. click-left = termite &
  91. click-right = urxvt &
  92.  
  93. [module/editor]
  94. type = custom/text
  95. content = 
  96. content-foreground = ${colors.foreground}
  97. click-left = subl3 &
  98. click-right = geany &
  99.  
  100. [module/spotify]
  101. type = custom/text
  102. content = 
  103. content-foreground = ${colors.foreground}
  104. click-left = spotify --force-device-scale-factor=1.5
  105.  
  106. [module/steam]
  107. type = custom/text
  108. content = 
  109. content-foreground = ${colors.foreground}
  110. click-left = steam-runtime
  111.  
  112.  
  113. [module/torr]
  114. type = custom/text
  115. content = 
  116. content-foreground = ${colors.foreground}
  117. click-left = deluge &
  118. click-right = transmission-gtk &
  119.  
  120. [module/clip]
  121. type = custom/text
  122. content = 
  123. content-foreground = ${colors.foreground}
  124. click-left = diodon
  125.  
  126. [module/email]
  127. type = custom/text
  128. content = 
  129. content-foreground = ${colors.foreground}
  130. click-left = claws-mail &
  131.  
  132. [module/lock]
  133. type = custom/text
  134. content = 
  135. content-foreground = ${colors.foreground}
  136. click-left = slimlock
  137.  
  138. [module/chrome]
  139. type = custom/text
  140. content = 
  141. content-foreground = ${colors.foreground}
  142. click-left = chromium &
  143.  
  144. [module/music]
  145. type = custom/text
  146. content = 
  147. content-foreground = ${colors.foreground}
  148. click-left = audacious
  149.  
  150. [module/workspace]
  151. type = custom/script
  152. interval = 1
  153. 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}
  154. exec = echo "$(($(xprop -root _NET_CURRENT_DESKTOP | cut -d '=' -f 2 | cut -d ' ' -f 2)+1))"
  155. format = <label>
  156. format-prefix = " "
  157. format-prefix-foreground = ${colors.foreground-alt}
  158.  
  159. [module/window_count]
  160. type = custom/script
  161. interval = 1
  162. label = %{A1:rofi -width 30 -location 1 -xoffset 3 -show window:}%output% %{A}
  163. exec = echo "$(($(lsw | wc -l)-1))"
  164. format = <label>
  165. format-prefix = " "
  166. format-prefix-foreground = ${colors.foreground-alt}
  167.  
  168. [module/xtitle]
  169. type = internal/xwindow
  170. interval = 1
  171. label = %title%
  172. label-maxlen = 40
  173. exec = echo "$(xtitle)"
  174. format = <label>
  175. format-background = ${colors.background-alt}
  176. format-prefix = " "
  177. format-prefix-foreground = ${colors.foreground}
  178. format-padding = 1
  179.  
  180. [module/mpd]
  181. type = internal/mpd
  182. format-online = <icon-prev> <icon-stop> <toggle> <icon-next> <label-song>
  183. format-online-prefix = " "
  184. format-online-prefix-foreground = ${colors.foreground-alt}
  185. fomat-online-foreground = ${colors.blue}
  186. format-online-background = ${colors.background-alt}
  187. format-online-padding = 1
  188. icon-play = 
  189. icon-pause = 
  190. icon-stop = 
  191. icon-prev = 
  192. icon-next = 
  193. ;icon-play = 
  194. ;icon-pause = 
  195. ;icon-stop = 
  196. ;icon-prev = 
  197. ;icon-next = 
  198. ;icon-random = 
  199. label-song = %title% - %artist% - %album%
  200. label-song-maxlen = 25
  201. label-song-ellipsis = true
  202. toggle-on-foreground = ${colors.foreground}
  203. toggle-off-foreground = ${colors.foreground-alt}
  204.  
  205. [module/xkeyboard]
  206. type = internal/xkeyboard
  207. blacklist-0 = num lock
  208. format-prefix = " "
  209. format-prefix-foreground = ${colors.foreground-alt}
  210. label-layout = %layout%
  211. label-indicator-padding = 1
  212. label-indicator-margin = 1
  213. label-indicator-foreground = ${colors.red}
  214. label-indicator-background = ${colors.background}
  215.  
  216. [module/cpu]
  217. type = internal/cpu
  218. interval = 1
  219. format-prefix = " "
  220. format-prefix-foreground = ${colors.foreground-alt}
  221. label = %{A1:urxvt --geometry 150x30 -e htop:}%percentage%%%{A}
  222.  
  223. [module/memory]
  224. type = internal/memory
  225. interval = 3
  226. format-prefix = " "
  227. format-prefix-foreground = ${colors.foreground-alt}
  228. label = %{A1:urxvt --geometry 150x30 -e htop:}%percentage_used%%%{A}
  229.  
  230. ;[module/date]
  231. ;type = custom/script
  232. ;interval = 60
  233. ;exec = echo "$(date +%a) $(date +%d) $(date +%b)"
  234. ;format = <label>
  235. ;format-prefix = " "
  236. ;format-prefix-foreground = ${colors.foreground-alt}
  237. ;label = %{A1:gsimplecal &:}%output%%{A}
  238.  
  239. [module/clock]
  240. type = custom/script
  241. interval = 5
  242. exec = echo "$(date +%R)"
  243. format = <label>
  244. format-prefix = " "
  245. format-prefix-foreground = ${colors.foreground-alt}
  246. label = %{A1:gsimplecal &:}%output%%{A}
  247.  
  248. [module/time]
  249. type = internal/date
  250. interval = 5
  251. label-foreground = ${colors.foreground-alt}
  252. date =
  253. date-alt = " %Y-%m-%d"
  254.  
  255. time = %H:%M
  256. time-alt = %H:%M:%S
  257.  
  258. format-prefix = 
  259. format-prefix-foreground = ${colors.foreground-alt}
  260. ;format-underline = #0a6cf5
  261.  
  262. label = %date% %time%
  263.  
  264. [module/volume]
  265. type = internal/volume
  266. format-volume = <ramp-volume> <label-volume>
  267. label-volume = %percentage%%
  268. label-volume-foreground = ${root.foreground}
  269. format-muted = <label-muted>
  270. format-muted-foreground = ${colors.foreground-alt}
  271. label-muted =  mute
  272. ramp-volume-0 = 
  273. ramp-volume-1 = 
  274. ramp-volume-foreground = ${colors.foreground-alt}
  275.  
  276.  
  277. [module/battery]
  278. type = internal/battery
  279. battery = BAT0
  280. adapter = AC
  281. full-at = 98
  282. format-charging = <animation-charging> <label-charging>
  283. format-discharging = <ramp-capacity> <label-discharging>
  284. format-full-prefix = " "
  285. format-full-prefix-foreground = ${colors.blue}
  286. ramp-capacity-0 = 
  287. ramp-capacity-0-foreground = ${colors.red}
  288. ramp-capacity-1 = 
  289. ramp-capacity-2 = 
  290. ramp-capacity-3 = 
  291. ramp-capacity-4 = 
  292. ramp-capacity-foreground = ${colors.foreground-alt}
  293. animation-charging-0 = 
  294. animation-charging-1 = 
  295. animation-charging-2 = 
  296. animation-charging-3 = 
  297. animation-charging-4 = 
  298. animation-charging-foreground = ${colors.foreground-alt}
  299. animation-charging-framerate = 750
  300.  
  301. [module/networkmanager]
  302. type = custom/text
  303. content = net 
  304. content-foreground = ${colors.foreground}
  305. click-left = networkmanager_dmenu
  306.  
  307. [module/eth]
  308. type = internal/network
  309. interface = enp2s0
  310. interval = 3.0
  311. format-connected = <label-connected>
  312. format-connected-prefix = " "
  313. format-connected-prefix-foreground = ${colors.foreground-alt}
  314. format-disconnected = <label-disconnected>
  315. label-connected = %{A1:networkmanager_dmenu:}%downspeed%%{A}
  316. label-connected-foreground = ${colors.foreground}
  317. label-disconnected = no connection
  318.  
  319. [module/wlan]
  320. type = internal/network
  321. interface = wlan0
  322. interval = 3.0
  323. format-connected = <label-connected>
  324. format-connected-prefix = " "
  325. format-connected-prefix-foreground = ${colors.foreground-alt}
  326. format-disconnected = <label-disconnected>
  327. label-connected = %{A1:networkmanager_dmenu:}%downspeed%%{A}
  328. label-connected-foreground = ${colors.foreground}
  329. label-disconnected =
  330.  
  331. [module/mail]
  332. type = custom/script
  333. interval = 30
  334. format = <label>
  335. format-prefix = " "
  336. format-prefix-foreground = ${colors.foreground-alt}
  337. exec = ~/.config/polybar/mail
  338. click-left = chromium https://mail.google.com &
  339.  
  340. [module/play]
  341. type = custom/script
  342. exec = python3 ~/.config/polybar/Play.py
  343. format-padding = 1
  344. interval = 2
  345. format = <label>
  346. format-foreground = ${colors.foreground}
  347. ;format-background = ${colors.foreground-alt}
  348. click-left = playerctl play
  349.  
  350. [module/next]
  351. type = custom/script
  352. exec = echo 
  353. format-padding = 1
  354. format = <label>
  355. format-foreground = ${colors.foreground}
  356. ;format-background = ${colors.foreground-alt}
  357. click-left = playerctl next
  358.  
  359. [module/previous]
  360. type = custom/script
  361. exec = echo 
  362. format-padding = 1
  363. format = <label>
  364. format-foreground = ${colors.foreground}
  365. ;format-background = ${colors.foreground-alt}
  366. click-left = playerctl previous
  367.  
  368. [module/pause]
  369. type = custom/script
  370. exec = python3 ~/.config/polybar/Pause.py
  371. format-padding = 1
  372. format = <label>
  373. interval = 2
  374. format-foreground = ${colors.foreground}
  375. ;format-background = ${colors.foreground-alt}
  376. click-left = playerctl pause
  377.  
  378. [module/music2]
  379. type = custom/script
  380. interval = 2
  381. label = %output:0:305:...%
  382. label-padding = 1
  383. exec = ~/.config/polybar/mpris.sh
  384.  
  385. [module/love]
  386. type = custom/script
  387. interval = 2
  388. format = <label>
  389. ;format-prefix = "❤"
  390. format-prefix-foreground = ${colors.foreground}
  391. exec = echo "❤"
  392. click-left = /bin/love
  393.  
  394. [module/menu]
  395. type = custom/menu
  396.  
  397. format-spacing = 1
  398. label-open = "  "
  399. label-open-foreground = ${colors.red}
  400. label-close = "  "
  401. label-close-foreground = ${colors.red}
  402. label-separator = "│"
  403. label-separator-foreground = ${colors.foreground-alt}
  404. menu-0-0 = Top
  405. menu-0-0-exec = menu-open-1
  406. menu-0-1 = Extra
  407. menu-0-1-exec = menu-open-2
  408. menu-0-2 = Music
  409. menu-0-2-exec = menu-open-3
  410. menu-0-3 = Power
  411. menu-0-3-exec = menu-open-4
  412.  
  413. menu-1-0 = "  "
  414. menu-1-0-exec = exo-open --launch WebBrowser
  415. menu-1-1 = "  "
  416. menu-1-1-exec = exo-open --launch TerminalEmulator
  417. menu-1-2 = "  "
  418. menu-1-2-exec = exo-open --launch FileManager
  419. menu-1-3 = "  "
  420. menu-1-3-exec = subl3
  421.  
  422. menu-2-0 = "  "
  423. menu-2-0-exec = gimp-2.8
  424. menu-2-1 = "  "
  425. menu-2-1-exec = spotify --force-device-scale-factor=1.5
  426. menu-2-2 = "  "
  427. menu-2-2-exec = deluge
  428. menu-2-3 = "  "
  429. menu-2-3-exec = claws-mail
  430. menu-2-4 = "  "
  431. menu-2-4-exec = steam-runtime
  432. menu-2-5 = "  "
  433. menu-2-5-exec = scrot %F-%S_$wx$h_scrot.png -e 'mv $f ~/images'
  434.  
  435. menu-3-0 = "  "
  436. menu-3-0-exec = audacious &
  437. menu-3-1 = "  "
  438. menu-3-1-exec = playerctl previous
  439. menu-3-2 = "  "
  440. menu-3-2-exec = playerctl stop
  441. menu-3-3 = "  "
  442. menu-3-3-exec = playerctl play-pause
  443. menu-3-4 = "  "
  444. menu-3-4-exec = playerctl next
  445.  
  446. menu-4-0 = "  "
  447. menu-4-0-exec = slimlock
  448. menu-4-1 = "  "
  449. menu-4-1-exec = systemctl reboot
  450. menu-4-2 = "  "
  451. menu-4-2-exec = systemctl poweroff
  452.  
  453. [module/powermenu]
  454. type = custom/menu
  455. format-spacing = 1
  456. label-open = 
  457. label-open-font = 2
  458. label-open-foreground = ${colors.red}
  459. label-close = 
  460. label-close-foreground = ${colors.foreground}
  461. label-separator = |
  462. label-separator-foreground = ${colors.foreground-alt}
  463. menu-0-0 = 
  464. menu-0-0-foreground = ${colors.blue}
  465. menu-0-0-exec = menu-open-1
  466. menu-0-1 = 
  467. menu-0-1-foreground = ${colors.red}
  468. menu-0-1-exec = menu-open-2
  469. menu-1-0 = restart?
  470. menu-1-0-exec = /sbin/reboot
  471. menu-1-1 = 
  472. menu-1-1-exec = menu-open-0
  473. menu-2-0 = 
  474. menu-2-0-exec = menu-open-0
  475. menu-2-1 = shutdown?
  476. menu-2-1-exec = /sbin/poweroff
  477.  
  478. [module/mpd2]
  479. type = internal/mpd
  480. label-song = %artist% - %title%
  481. label-song-maxlen = 65
  482. label-song-ellipsis = true
  483. format-online = <icon-prev> <icon-stop> <toggle> <icon-next> <icon-random> <label-song> <bar-progress>
  484. label-song-foreground = ${colors.foreground}
  485. label-padding = 1
  486. label-song-background = ${colors.background}
  487. icon-pause-background = ${self.label-song-background}
  488. icon-play-background = ${self.label-song-background}
  489. icon-pause-foreground = ${self.label-song-foreground}
  490. icon-stop-foreground = ${self.label-song-foreground}
  491. icon-play-foreground = ${self.label-song-foreground}
  492. label-song-padding = 1
  493. icon-prev = ""
  494. icon-stop = ""
  495. icon-pause = ""
  496. icon-play = ""
  497. icon-next = ""
  498. icon-random = ""
  499. toggle-off-foreground = ${colors.foreground}
  500. toggle-on-foreground = ${colors.red}
  501. bar-progress-width = 20
  502. bar-progress-indicator = 
  503. bar-progress-fill = 
  504. bar-progress-empty = 
  505. bar-progress-fill-foreground = ${colors.foreground}
  506. bar-progress-indicator-foreground = ${colors.red}
  507.  
  508. [module/pkg]
  509. type = custom/script
  510. label-foreground = ${colors.blue}
  511. exec = ~/.config/polybar/pkg.sh
  512. click-left = ~/.config/polybar/update.sh
  513. click-right = ~/.config/polybar/aur-update.sh
  514.  
  515. [module/weather]
  516. type = custom/script
  517. interval = 10
  518. format = <label>
  519. format-prefix = " "
  520. format-prefix-foreground = ${colors.foreground}
  521. label-foreground = ${colors.foreground}
  522. label-padding = 1
  523. exec = ~/.config/polybar/weather
  524.  
  525. [module/rofi]
  526. type = custom/script
  527. exec = echo ""
  528. click-left = rofi-launcher
  529.  
  530. [settings]
  531. screenchange-reload = true
  532. ;compositing-background = xor
  533. ;compositing-background = screen
  534. ;compositing-foreground = source
  535. ;compositing-border = over
  536.  
  537. ;[global/wm]
  538. ;margin-top = 0
  539. ;margin-bottom = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement