Advertisement
dibusure

My config

Jul 6th, 2021
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.62 KB | None | 0 0
  1. ;====================================================
  2. ;
  3. ; To learn more about how to configure Polybar
  4. ; go to https://github.com/jaagr/polybar
  5. ;
  6. ; The README contains alot of information
  7. ;
  8. ;=====================================================
  9.  
  10. [colors]
  11. background = #BCC3C3
  12. background-alt = #002B36
  13. foreground = #002B36
  14. foreground-alt = #BCC3C3
  15. primary = #ffb52a
  16. secondary = #e60053
  17. alert = #FF0000
  18.  
  19. [bar/example]
  20. monitor = ${env:MONITOR:}
  21. width = 100%
  22. height = 22
  23. radius = 0.0
  24. ;offset-x = 1%
  25. ;offset-y = 1%
  26. fixed-center = true
  27. bottom = no
  28. enable-ipc = true
  29.  
  30. foreground = ${colors.foreground-alt}
  31. background = ${colors.background-alt}
  32.  
  33. ; Under-/overline pixel size and argb color
  34. ; Individual values can be defined using:
  35. ; {overline,underline}-size
  36. ; {overline,underline}-color
  37. line-size = 1
  38. line-color = #dfdfdf
  39.  
  40. ;border-size = 5
  41. border-top-size = 0
  42. border-bottom-size = 0
  43. border-left-size = 0
  44. border-right-size = 0
  45. ;border-color = ${colors.background-alt}
  46.  
  47. padding-left = 0
  48. padding-right = 0
  49.  
  50. module-margin-left = 0
  51. module-margin-right = 0
  52.  
  53. ;font-0 = Hack:pixelsize=9;3
  54. ;font-1 = siji:pixelsize=10;3
  55. ;font-2 = FontAwesome5Free:size=10:0;
  56. ;font-2 = FontAwesome5Free:style=Solid:pixelsize=10
  57. ;font-2 = FontAwesome5Brands:style=Solid:pixelsize=10
  58.  
  59. font-0 = Hack:pixelsize=9;
  60. font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
  61. font-2 = siji:pixelsize=10;1
  62. font-3 = Font Awesome 5 Free:pixelsize=10
  63. font-4 = Font Awesome 5 Free Solid:pixelsize=10
  64. font-5 = Font Awesome 5 Brands:pixelsize=10
  65.  
  66.  
  67. ;separator = " "
  68.  
  69. modules-left = i3 wlan sp2 trash sp2 fs1 sp2 hum1 xkeyboard sp2 xbacklight
  70. modules-right = spotify-prev spotify spotify-play-pause spotify-next sp2 eth openweathermap-simple sp2 cpu sp2 btc-price sp2 usd-price sp2 pub-ip sp2 volume sp2 memory sp2 temperature sp2 date
  71.  
  72.  
  73. ;modules-left = i3 wlan sp2 trash sp2 fs1 sp2 fs2 sp2 fs3 sp2 fs4 sp2 btcrub sp2 hum1 sp2 hum2 updates-arch-combined
  74. ;modules-center = vpn-openvpn-status info-ssh-sessions profile xwindow powermenu xkeyboard sp2 xbacklight sp2 netspdeth spi2 battery1
  75. ;modules-right = eth openweathermap-fullfeatured sp2 netspdwlan sp2 system-cpu-loadavg sp2 btc-price sp2 usd-price sp2 pub-ip sp2 mybright sp2 volume sp2 filesystem sp1 memory sp1 temperature sp2 battery0 sp2 date
  76.  
  77. tray-position = right
  78. ;tray-padding = 0
  79. ;tray-detached = false
  80. ;tray-maxsize = 14
  81. ;tray-transparent =
  82. ;pseudo-transparency =
  83. ;tray-scale = 1
  84. ;tray-offset-x = 0
  85. ;tray-offset-y = 0
  86.  
  87. ;wm-restack = bspwm
  88. wm-restack = i3
  89.  
  90. ;override-redirect = true
  91.  
  92. scroll-up = i3wm-wsnext
  93. scroll-down = i3wm-wsprev
  94.  
  95. cursor-click = pointer
  96. ;cursor-scroll = ns-resize
  97.  
  98. [module/mybright]
  99. type = custom/script
  100. exec = /home/dibusure/.config/polybar/scripts/brightness.sh
  101. scroll-up = /home/dibusure/.config/polybar/scripts/brightness.sh + DP1
  102. scroll-down = /home/dibusure/.config/polybar/scripts/brightness.sh - DP1
  103. label = %{T4}%{T-} %output%
  104. interval = 0.5
  105.  
  106. [module/caffeine]
  107. type = custom/menu
  108.  
  109. label-open = 
  110. label-close = 
  111. label-open-padding = 0
  112. label-close-padding = 1
  113. label-separator = " "
  114.  
  115. menu-0-0 = 
  116. menu-0-0-exec = caffeine -a
  117. menu-0-1 = 
  118. menu-0-1-exec = caffeine -d
  119. menu-0-2 = 
  120. menu-0-2-exec = caffeine kill
  121.  
  122. [module/fs1]
  123. type = custom/script
  124. exec = /home/dibusure/.config/polybar/scripts/free_space_home.sh
  125. interval = 600
  126. label = %{T4}%{T-} %output%
  127.  
  128. [module/fs2]
  129. type = custom/script
  130. exec = /home/dibusure/.config/polybar/scripts/free_space_mnt.sh
  131. interval = 600
  132. label = %{T4}%{T-} %output%
  133.  
  134. [module/fs3]
  135. type = custom/script
  136. exec = /home/dibusure/.config/polybar/scripts/free_space_buflash.sh
  137. interval = 600
  138. label = %{T4}%{T-} %output%
  139.  
  140. [module/fs4]
  141. type = custom/script
  142. exec = /home/dibusure/.config/polybar/scripts/free_space_myarchserver.sh
  143. interval = 6000
  144. label = %{T4}%{T-} %output%
  145.  
  146. [module/btcrub]
  147. type=custom/script
  148. exec=/home/dibusure/.config/polybar/scripts/usd_price_2.sh
  149. interval = 6000
  150.  
  151. [module/hum1]
  152. type = custom/script
  153. exec = /home/dibusure/.config/polybar/scripts/humidity1.sh
  154. interval = 600
  155.  
  156. [module/hum2]
  157. type = custom/script
  158. exec = /home/dibusure/.config/polybar/scripts/humidity2.sh
  159. interval = 600
  160.  
  161.  
  162.  
  163.  
  164. [module/ttt]
  165. type = custom/script
  166. exec = /home/dibusure/.config/polybar/scripts/inbox-imap-shellnetrc.sh
  167. interval = 10
  168. label = %{T4}%{T-} %output%
  169. click-left = thunderbird
  170.  
  171. [module/unread_mail]
  172. type = custom/script
  173. click-left= thunderbird & ; you can set your own client
  174. exec = /home/dibusure/.config/polybar/scripts/UnseenMail.py
  175. ;exec = /home/dibusure/.config/polybar/scripts/inbox-imap-shellnetrc.sh
  176. interval = 100
  177.  
  178. [module/openweathermap-simple]
  179. type = custom/script
  180. exec = /home/dibusure/.config/polybar/scripts/openweathermap-simple.sh
  181. interval = 600
  182. label-font = 0
  183.  
  184. [module/trash]
  185. type = custom/script
  186. exec = /home/dibusure/.config/polybar/scripts/trash.sh
  187. interval = 1
  188. label = %output%
  189. format-prefix = "%{T4}%{T-} "
  190. format-prefix-padding-left = 0
  191. format-prefix-padding-right = 0
  192. ;format-prefix-foreground = ${colors.foreground}
  193. label-padding = 0
  194. ;label-foreground = ${colors.foreground}
  195. click-left = pcmanfm -n ~/.local/share/Trash/files
  196. click-right = rm -rf ~/.local/share/Trash/files/* ;exec notify-send 'Trash cleaned'
  197.  
  198.  
  199. [module/test1]
  200. type = custom/script
  201. exec = /home/dibusure/.config/polybar/scripts/inbox-imap-shellnetrc.sh
  202. interval = 60
  203. label = 1 %output%
  204.  
  205. [module/system-cpu-loadavg]
  206. type = custom/script
  207. exec = /home/dibusure/.config/polybar/scripts/cpu_loadavg.sh
  208. interval = 5
  209. label = %output%
  210.  
  211. [module/pub-ip]
  212. type = custom/script
  213. exec = /home/dibusure/.config/polybar/scripts/pub_ip_polybar.sh
  214. interval = 5
  215. label = %{T4}%{T-} %output%
  216.  
  217. [module/btc-price]
  218. type = custom/script
  219. exec = /home/dibusure/.config/polybar/scripts/btc_price_coinm.sh
  220. interval = 5
  221. label =  %output%
  222.  
  223. [module/updates-arch-combined]
  224. type = custom/script
  225. #exec = /home/dibusure/.config/polybar/scripts/arch_updates.sh
  226. #exec = /home/dibusure/.config/polybar/scripts/au.sh
  227. interval = 600
  228. label = %{T4}%{T-} %output%
  229.  
  230. [module/usd-price]
  231. type = custom/script
  232. exec = /home/dibusure/.config/polybar/scripts/usd_price_cbr.sh
  233. interval = 5
  234. label =  %output%
  235.  
  236. [module/info-ssh-sessions]
  237. type = custom/script
  238. exec = /home/dibusure/.config/polybar/scripts/info_ssh_sessions.sh
  239. interval = 60
  240.  
  241. [module/soft]
  242. type = custom/script
  243. exec = /home/dibusure/.config/polybar/scripts/info-softwarecounter.py
  244. interval = 10
  245.  
  246. [module/vpn-openvpn-status]
  247. type = custom/script
  248. exec = /home/dibusure/.config/polybar/scripts/vpn_status.sh
  249. interval = 5
  250.  
  251. [module/sp1]
  252. type = custom/text
  253. content = " "
  254. content-foreground = ${colors.foreground-alt}
  255. content-background = ${colors.background-alt}
  256.  
  257. [module/sp2]
  258. type = custom/text
  259. content = " | "
  260. content-foreground = #93A1A1
  261. content-background = ${colors.background-alt}
  262.  
  263. [module/profile]
  264. type = custom/text
  265. content = "  BANDITHIJO "
  266. content-foreground = ${colors.foreground-alt}
  267. content-background = ${colors.background-alt}
  268.  
  269. [module/i3]
  270. type = internal/i3
  271. format = <label-state> <label-mode>
  272. index-sort = true
  273. wrapping-scroll = false
  274. strip-wsnumbers = false
  275. enable-click = false
  276. enable-scroll = false
  277.  
  278. ;ws-icon-0 = 1;
  279. ;ws-icon-1 = 2;
  280. ;ws-icon-2 = 3;
  281. ;ws-icon-3 = 4;
  282. ;ws-icon-4 = 5;
  283. ;ws-icon-5 = 6;
  284. ;ws-icon-6 = 7;
  285. ;ws-icon-7 = 8;
  286. ;ws-icon-8 = 9;
  287. ;ws-icon-9 = 10;
  288. ;ws-icon-default = ♟
  289.  
  290. ; Only show workspaces on the same output as the bar
  291. ;pin-workspaces = true
  292.  
  293. label-mode = %mode%
  294. label-mode-padding = 1
  295. label-mode-foreground = ${colors.foreground-alt}
  296. label-mode-background = ${colors.background-alt}
  297.  
  298. ; focused = Active workspace on focused monitor
  299. label-focused = %index%
  300. label-focused-foreground = ${colors.foreground}
  301. label-focused-background = ${colors.background}
  302. label-focused-underline = ${colors.foreground-alt}
  303. label-focused-padding = 1
  304.  
  305. ; unfocused = Inactive workspace on any monitor
  306. label-unfocused = %index%
  307. label-unfocused-padding = ${self.label-focused-padding}
  308. label-unfocused-foreground = ${colors.foreground-alt}
  309. label-unfocused-background = ${colors.background-alt}
  310.  
  311. ; visible = Active workspace on unfocused monitor
  312. label-visible = %index%
  313. label-visible-foreground = ${self.label-focused-background}
  314. label-visible-background = ${self.label-focused-foreground}
  315. label-visible-underline = ${self.label-focused-underline}
  316. label-visible-padding = ${self.label-focused-padding}
  317.  
  318. ; urgent = Workspace with urgency hint set
  319. label-urgent = %index%
  320. label-urgent-foreground = ${colors.foreground}
  321. label-urgent-background = ${colors.alert}
  322. label-urgent-padding = 1
  323.  
  324. ; Separator in between workspaces
  325. label-separator =
  326. label-separator-padding = 0
  327. label-separator-foreground = #FFF
  328.  
  329. [module/mpd]
  330. type = internal/mpd
  331. format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
  332.  
  333. icon-prev = 
  334. icon-stop = 
  335. icon-play = 
  336. icon-pause = 
  337. icon-next = 
  338.  
  339. label-song-maxlen = 25
  340. label-song-ellipsis = true
  341.  
  342. [module/xbacklight]
  343. type = internal/xbacklight
  344. ;label-padding = 2
  345. format-prefix = " "
  346. format = <label>
  347.  
  348. [module/backlight-acpi]
  349. inherit = module/xbacklight
  350. type = internal/backlight
  351. card = intel_backlight
  352.  
  353. [module/xwindow]
  354. type = internal/xwindow
  355. format = <label>
  356. format-padding = 0
  357.  
  358. ;label = "  %title:0:60:...% "
  359. label = "  %title%"
  360. label-maxlen = 30
  361. label-foreground = ${colors.foreground-alt}
  362. label-background = ${colors.background-alt}
  363. ;label-underline = ${colors.foreground}
  364.  
  365. label-empty =
  366. label-empty-foreground = ${colors.background}
  367.  
  368. [module/xkeyboard]
  369. type = internal/xkeyboard
  370. blacklist-0 = num lock
  371. blacklist-1 = scroll lock
  372.  
  373. ;format = <label-layout><label-indicator>
  374. format = <label-layout>
  375. format-spacing = 0
  376.  
  377. format-prefix = ""
  378. format-prefix-foreground = ${colors.foreground-alt}
  379. format-prefix-background = ${colors.background-alt}
  380. ;format-prefix-underline = ${colors.foreground}
  381.  
  382. label-layout = "%layout%"
  383. label-layout-foreground = ${colors.foreground-alt}
  384. label-layout-background = ${colors.background-alt}
  385. label-layout-underline = #99ff99
  386.  
  387. label-indicator-padding = 0
  388. label-indicator-margin = 0
  389. label-indicator = " CAPS "
  390. label-indicator-foreground = ${colors.foreground}
  391. label-indicator-background = ${colors.alert}
  392. ;label-indicator-underline = ${colors.alert}
  393.  
  394. [module/filesystem]
  395. type = internal/fs
  396. interval = 25
  397.  
  398. mount-0 = /
  399.  
  400. label-mounted = " %percentage_used%%"
  401. label-mounted-foreground = ${colors.foreground-alt}
  402. label-mounted-background = ${colors.background-alt}
  403. ;label-mounted-underline = ${colors.foreground}
  404. label-unmounted = %mountpoint% not mounted
  405. label-unmounted-foreground = ${colors.foreground}
  406.  
  407. [module/cpu]
  408. type = internal/cpu
  409. interval = 1
  410. format-prefix = " "
  411. format-prefix-foreground = ${colors.foreground-alt}
  412. format-prefix-background = ${colors.background-alt}
  413. ;format-underline = ${colors.foreground}
  414. label = "%percentage:2%%"
  415. label-foreground = ${colors.foreground-alt}
  416. label-background = ${colors.background-alt}
  417.  
  418. [module/memory]
  419. type = internal/memory
  420. interval = 1
  421. format-prefix = ""
  422. format-prefix-foreground = ${colors.foreground-alt}
  423. format-prefix-background = ${colors.background-alt}
  424. ;format-underline = ${colors.foreground}
  425. label = "%percentage_used%%"
  426. label-foreground = ${colors.foreground-alt}
  427. label-background = ${colors.background-alt}
  428.  
  429. [module/netspdwlan]
  430. type = internal/network
  431. interface = wlp2s0
  432. interval = 1.0
  433. format-connected = "<label-connected>"
  434. label-connected = "%downspeed:9:9% %upspeed:9:9%"
  435. label-connected-foreground = ${colors.foreground-alt}
  436. label-connected-background = ${colors.background-alt}
  437.  
  438. [module/wlan]
  439. type = internal/network
  440. interface = wlp2s0
  441. interval = 1.0
  442.  
  443. ; Available tokens:
  444. ; %ifname% [wireless+wired]
  445. ; %local_ip% [wireless+wired]
  446. ; %local_ip6% [wireless+wired]
  447. ; %essid% [wireless]
  448. ; %signal% [wireless]
  449. ; %upspeed% [wireless+wired]
  450. ; %downspeed% [wireless+wired]
  451. ; %linkspeed% [wired]
  452. ; Default: %ifname% %local_ip%
  453. format-connected = "<label-connected>"
  454. ;format-connected-underline = ${colors.foreground}
  455. ;qlabel-connected = " %essid:0:28:% "
  456. ;label-connected = " %essid% (%signal%%)"
  457. label-connected = " | W: %signal%%"
  458. label-connected-foreground = ${colors.foreground-alt}
  459. label-connected-background = ${colors.background-alt}
  460.  
  461. format-disconnected = <label-disconnected>
  462. ;format-disconnected-underline = ${self.format-connected-underline}
  463. label-disconnected = " OFFLINE "
  464. label-disconnected-foreground = ${colors.foreground-alt}
  465.  
  466. ramp-signal-0 = 
  467. ramp-signal-1 = 
  468. ramp-signal-2 = 
  469. ramp-signal-3 = 
  470. ramp-signal-foreground = ${colors.foreground-alt}
  471. ramp-signal-background = ${colors.background-alt}
  472.  
  473. [module/netspdeth]
  474. type = internal/network
  475. interface = enp0s31f6
  476. interval = 1.0
  477. format-connected = "<label-connected>"
  478. label-connected = " %downspeed:3% %upspeed:3% |"
  479. label-connected-foreground = ${colors.foreground-alt}
  480. label-connected-background = ${colors.background-alt}
  481.  
  482. [module/eth]
  483. type = internal/network
  484. interface = enp3s0
  485. interval = 1.0
  486.  
  487. format-connected-prefix = " "
  488. format-connected-prefix-foreground = ${colors.foreground-alt}
  489. format-connected-prefix-background = ${colors.background-alt}
  490. ;format-connected-underline = ${colors.foreground}
  491. label-connected = " %local_ip% "
  492.  
  493. ;format-disconnected = <label-disconnected>
  494. ;format-disconnected-underline = ${self.format-connected-underline}
  495. ;label-disconnected =  %ifname%
  496. ;label-disconnected-foreground = ${colors.foreground-alt}
  497.  
  498. [module/date]
  499. type = internal/date
  500. interval = 1
  501.  
  502. date = ""
  503. date-alt = "%a %d %B"
  504.  
  505. time = "%H:%M"
  506. time-alt = " %H:%M"
  507.  
  508. format-prefix = " "
  509. format-prefix-foreground = ${colors.foreground-alt}
  510. format-prefix-background = ${colors.background-alt}
  511. ;format-underline = ${colors.foreground}
  512.  
  513. label = %date%%time%
  514. label-foreground = ${colors.foreground-alt}
  515. label-background = ${colors.background-alt}
  516.  
  517. [module/volume]
  518. type = internal/alsa
  519.  
  520. ; Soundcard to be used
  521. ; Usually in the format hw:# where # is the card number
  522. ; You can find the different card numbers in `/proc/asound/cards`
  523. master-soundcard = default
  524. speaker-soundcard = default
  525. headphone-soundcard = default
  526.  
  527. ; Name of the master, speaker and headphone mixers
  528. ; Use the following command to list available mixer controls:
  529. ; $ amixer scontrols | sed -nr "s/.*'([[:alnum:]]+)'.*/\1/p"
  530. ; If master, speaker or headphone-soundcard isn't the default,
  531. ; use `amixer -c # scontrols` instead where # is the number
  532. ; of the master, speaker or headphone soundcard respectively
  533. ;
  534. ; Default: Master
  535. master-mixer = Master
  536.  
  537. format-volume = "<label-volume><bar-volume>"
  538. label-volume = " "
  539. label-volume-foreground = ${colors.foreground-alt}
  540. label-volume-background = ${colors.background-alt}
  541. ;label-volume-underline = ${colors.foreground}
  542.  
  543. format-muted-prefix = " "
  544. format-muted-foreground = ${colors.foreground-alt}
  545. format-muted-background = ${colors.background-alt}
  546. label-muted = MUTED
  547.  
  548. bar-volume-width = 10
  549. bar-volume-foreground-0 = ${colors.foreground-alt}
  550. bar-volume-foreground-1 = ${colors.foreground-alt}
  551. bar-volume-foreground-2 = ${colors.foreground-alt}
  552. bar-volume-foreground-3 = ${colors.foreground-alt}
  553. bar-volume-foreground-4 = ${colors.foreground-alt}
  554. bar-volume-foreground-5 = ${colors.foreground-alt}
  555. bar-volume-foreground-6 = ${colors.foreground-alt}
  556. bar-volume-gradient = false
  557. bar-volume-indicator = []
  558. bar-volume-indicator-font = 1
  559. bar-volume-indicator-foreground = ${colors.foreground-alt}
  560. bar-volume-indicator-background = ${colors.background-alt}
  561. ;bar-volume-indicator-underline = ${colors.foreground}
  562. bar-volume-fill = -
  563. bar-volume-fill-font = 1
  564. bar-volume-fill-foreground = ${colors.foreground-alt}
  565. bar-volume-fill-background = ${colors.background-alt}
  566. ;bar-volume-fill-underline = ${colors.foreground}
  567. bar-volume-empty = -
  568. bar-volume-empty-font = 1
  569. bar-volume-empty-foreground = ${colors.foreground-alt}
  570. bar-volume-empty-background = ${colors.background-alt}
  571. ;bar-volume-empty-underline = ${colors.foreground}
  572.  
  573. [module/battery0]
  574. type = internal/battery
  575. battery = BAT0
  576. adapter = AC
  577. full-at = 90
  578.  
  579. format-charging = "<animation-charging><label-charging>"
  580. ;format-charging-underline = ${colors.foreground}
  581. label-charging-foreground = ${colors.foreground-alt}
  582. label-charging-background = ${colors.background-alt}
  583.  
  584. format-discharging = "<ramp-capacity><label-discharging>"
  585. ;format-discharging-underline = ${self.format-charging-underline}
  586. label-discharging-foreground = ${colors.foreground-alt}
  587. label-discharging-background = ${colors.background-alt}
  588.  
  589. format-full-prefix = " "
  590. format-full-prefix-foreground = ${colors.foreground-alt}
  591. format-full-prefix-background = ${colors.background-alt}
  592. ;format-full-underline = ${self.format-charging-underline}
  593.  
  594. ramp-capacity-0 = " "
  595. ramp-capacity-0-foreground = ${colors.alert}
  596. ramp-capacity-1 = " "
  597. ramp-capacity-2 = " "
  598. ramp-capacity-foreground = ${colors.foreground-alt}
  599. ramp-capacity-background = ${colors.background-alt}
  600.  
  601. animation-charging-0 = " "
  602. animation-charging-1 = " "
  603. animation-charging-2 = " "
  604. animation-charging-foreground = ${colors.foreground-alt}
  605. animation-charging-background = ${colors.background-alt}
  606. animation-charging-framerate = 750
  607.  
  608. [module/battery1]
  609. type = internal/battery
  610. battery = BAT1
  611. adapter = AC
  612. full-at = 90
  613.  
  614. format-charging = "<animation-charging><label-charging>"
  615. ;format-charging-underline = ${colors.foreground}
  616. label-charging-foreground = ${colors.foreground-alt}
  617. label-charging-background = ${colors.background-alt}
  618.  
  619. format-discharging = "<ramp-capacity><label-discharging>"
  620. ;format-discharging-underline = ${self.format-charging-underline}
  621. label-discharging-foreground = ${colors.foreground-alt}
  622. label-discharging-background = ${colors.background-alt}
  623.  
  624. format-full-prefix = " "
  625. format-full-prefix-foreground = ${colors.foreground-alt}
  626. format-full-prefix-background = ${colors.background-alt}
  627. ;format-full-underline = ${self.format-charging-underline}
  628.  
  629. ramp-capacity-0 = " "
  630. ramp-capacity-0-foreground = ${colors.alert}
  631. ramp-capacity-1 = " "
  632. ramp-capacity-2 = " "
  633. ramp-capacity-foreground = ${colors.foreground-alt}
  634. ramp-capacity-background = ${colors.background-alt}
  635.  
  636. animation-charging-0 = " "
  637. animation-charging-1 = " "
  638. animation-charging-2 = " "
  639. animation-charging-foreground = ${colors.foreground-alt}
  640. animation-charging-background = ${colors.background-alt}
  641. animation-charging-framerate = 750
  642.  
  643. [module/temperature]
  644. type = internal/temperature
  645. thermal-zone = 0
  646. warn-temperature = 80
  647.  
  648. format = "<ramp><label>"
  649. format-foreground = ${colors.foreground-alt}
  650. format-background = ${colors.background-alt}
  651. ;format-underline = ${colors.foreground}
  652. format-warn = <ramp><label-warn>
  653. ;format-warn-underline = #f50a4d
  654.  
  655. label = "%temperature%"
  656. label-foreground = ${colors.foreground-alt}
  657. label-background = ${colors.background-alt}
  658. label-warn = "%temperature%"
  659. label-warn-foreground = ${colors.alert}
  660.  
  661. ramp-0 = " "
  662. ramp-1 = " "
  663. ramp-2 = " "
  664. ramp-foreground = ${colors.foreground-alt}
  665. ramp-background = ${colors.background-alt}
  666.  
  667. [module/powermenu]
  668. type = custom/menu
  669.  
  670. expand-right = true
  671.  
  672. format-spacing = 1
  673.  
  674. label-open = %{T4}%{T-}
  675. label-open-foreground = ${colors.secondary}
  676. label-close = cancel
  677. label-close-foreground = ${colors.secondary}
  678. label-separator = |
  679. label-separator-foreground = ${colors.foreground-alt}
  680.  
  681. menu-0-0 = reboot
  682. menu-0-0-exec = menu-open-1
  683. menu-0-1 = power off
  684. menu-0-1-exec = menu-open-2
  685.  
  686. menu-1-0 = cancel
  687. menu-1-0-exec = menu-open-0
  688. menu-1-1 = reboot
  689. menu-1-1-exec = sudo reboot
  690.  
  691. menu-2-0 = power off
  692. menu-2-0-exec = sudo poweroff
  693. menu-2-1 = cancel
  694. menu-2-1-exec = menu-open-0
  695.  
  696. [module/spotify]
  697. type = custom/script
  698. tail = true
  699. ; prefix symbol is shown before the text
  700. format-prefix = " "
  701. format = <label>
  702. exec = ~/.config/polybar/scripts/scroll_spotify_status.sh
  703. click-left = i3-msg '[class="Spotify"] focus'
  704.  
  705.  
  706. [module/spotify-prev]
  707. type = custom/script
  708. exec = echo " "
  709. format = <label>
  710. click-left = playerctl previous spotify
  711.  
  712. [module/spotify-play-pause]
  713. type = custom/ipc
  714. hook-0 = echo " "
  715. hook-1 = echo " "
  716. initial = 1
  717. click-left = playerctl -p spotify play-pause
  718.  
  719. [module/spotify-next]
  720. type = custom/script
  721. exec = echo " "
  722. format = <label>
  723. click-left = playerctl next spotify
  724.  
  725.  
  726. [settings]
  727. throttle-output = 5
  728. throttle-output-for = 10
  729. throttle-input-for = 30
  730. screenchange-reload = true
  731. compositing-background = over
  732. compositing-foreground = over
  733. compositing-overline = over
  734. ;compositing-underline = over
  735. compositing-border = over
  736. ;compositing-background = xor
  737. ;compositing-background = screen
  738. ;compositing-foreground = source
  739.  
  740. [global/wm]
  741. margin-top = 5
  742. margin-bottom = 5
  743.  
  744.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement