Advertisement
Dobbie03

test

Sep 1st, 2017
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.12 KB | None | 0 0
  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;;;;;;;; Fonts you may want ;;;;;;;;
  3. ;;;;;;;; --- ttf-font-awesome ;;;;;;;;
  4. ;;;;;;;; --- ttf-material-icons ;;;;;;;;
  5. ;;;;;;;; --- nerd-fonts-complete ;;;;;;;;
  6. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  7. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  8. ;;;;;; Colours
  9. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  10.  
  11.  
  12. [colors]
  13. background = #131313
  14. foreground = #EFF0F1
  15. urgent = #E64141
  16. blue = #1793D1
  17. b-alt = #131313
  18.  
  19.  
  20. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  21. ;;;;;; Bars
  22. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  23.  
  24. [settings]
  25. throttle-output = 5
  26. throttle-output-for = 10
  27. throttle-input-for = 30
  28. compositing-background = over
  29. compositing-foreground = source
  30. compositing-overline = over
  31. compositing-underline = over
  32. compositing-border = over
  33.  
  34. [bar/bar1]
  35. ; Use xrandr -q | grep " connected" | cut -d ' ' -f1
  36. ; for a list of connected monitors
  37. monitor =
  38. monitor-strict = false
  39. override-redirect = false
  40. width = 100%
  41. height = 24
  42. offset-x = 0
  43. offset-y = 0
  44. fixed-center = true
  45. border-bottom-size = 0
  46. border-bottom-color = ${colors.background}
  47. border-top-size = 0
  48. border-top-color = ${colors.background}
  49. background = ${colors.background}
  50. foreground = ${colors.foreground}
  51. font-0 = Ubuntu Nerd Font:size=13:antialias=false;2
  52. font-1 = FontAwesome:pixelsize=12:antialias=false;2
  53. font-2 = MaterialIcons:size=12:antialias=false;2
  54. font-3 = Fira Sans:size=12:weight=regular;2
  55.  
  56. modules-left = workspaces rofi menu
  57. modules-center = window_count
  58. modules-right = pkg compton memory cpu temp volume networkmanager time
  59.  
  60. module-margin = 1
  61. padding-right = 0
  62. padding-left = 0
  63. bottom = false
  64. underline-size = 2
  65. ;tray-position = center
  66. ;tray-padding = 10
  67. ;tray-background = ${colors.background}
  68. ;tray-offset-x = 10%
  69. ;tray-offset-y = 0
  70.  
  71.  
  72. [bar/bar2]
  73. ; Use xrandr -q | grep " connected" | cut -d ' ' -f1
  74. ; for a list of connected monitors
  75. ;monitor =
  76. monitor-strict = false
  77. override-redirect = false
  78. width = 100%
  79. height = 24
  80. offset-x = 0
  81. offset-y = 0
  82. fixed-center = true
  83. border-bottom-size = 0
  84. border-bottom-color = ${colors.background}
  85. border-top-size = 0
  86. border-top-color = ${colors.background}
  87. background = ${colors.background}
  88. foreground = ${colors.foreground}
  89. font-0 = Ubuntu Nerd Font:size=13:antialias=false;2
  90. font-1 = FontAwesome:pixelsize=12:antialias=false;2
  91. font-2 = MaterialIcons:size=12:antialias=false;2
  92. font-3 = Fira Sans:size=12:weight=regular;2
  93.  
  94. modules-left = workspaces rofi
  95. modules-center = window_count
  96. modules-right = filesystem trash volume
  97.  
  98. module-margin = 1
  99. padding-right = 0
  100. padding-left = 0
  101. bottom = false
  102. underline-size = 2
  103.  
  104.  
  105.  
  106. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  107. ;;;;;; Modules
  108. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  109.  
  110.  
  111. [module/rofi]
  112. type = custom/script
  113. exec = echo "  "
  114. click-left = rofi-apps
  115. label-foreground = ${colors.foreground}
  116. label-background = ${colors.b-alt}
  117.  
  118.  
  119. [module/temp]
  120. type = internal/temperature
  121. interval = 3
  122. thermal-zone = 0
  123. warn-temp = 70
  124. format = <label>
  125. format-padding = 0
  126. label-foreground = ${colors.foreground}
  127. label-background = ${colors.b-alt}
  128. label-warn-foreground = ${colors.urgent}
  129. label = "  %temperature% "
  130. label-warn = "  %temperature% "
  131.  
  132.  
  133. [module/memory]
  134. type = internal/memory
  135. interval = 3
  136. format = <label>
  137. format-prefix = "  "
  138. format-prefix-foreground = ${colors.foreground}
  139. label = %{A1:termite --geometry=500x300 --exec=htop &:}%percentage_used%%%{A}
  140.  
  141.  
  142. [module/cpu]
  143. type = internal/cpu
  144. interval = 1
  145. format-prefix = "  "
  146. format-prefix-foreground = ${colors.foreground}
  147. label = %{A1:termite --geometry=500x300 --exec=htop &:}%percentage%%%{A}
  148.  
  149.  
  150. [module/time]
  151. type = internal/date
  152. interval = 5
  153. label-foreground = ${colors.foreground}
  154. date-alt = " %Y-%m-%d"
  155. time = "%H:%M "
  156. time-alt = "%H:%M:%S "
  157. format-prefix = " "
  158. format-prefix-foreground = ${colors.foreground}
  159. label = %date% %time%
  160.  
  161.  
  162. [module/pkg]
  163. type = custom/script
  164. label-foreground = ${colors.foreground}
  165. label-background = ${colors.b-alt}
  166. exec = $HOME/.config/polybar/scripts/pkg.sh
  167. exec-if = "ping -c 1 8.8.8.8 > /dev/null"
  168. click-left = $HOME/.config/polybar/scripts/update.sh
  169. click-right = $HOME/.config/polybar/scripts/aur-update.sh
  170. label-padding = 0
  171. interval = 1500
  172. tail = true
  173.  
  174.  
  175. [module/compton]
  176. type = custom/script
  177. label-background = ${colors.b-alt}
  178. exec = $HOME/.config/polybar/scripts/compton.sh
  179. click-left = $HOME/.config/polybar/scripts/compton-toggle.sh
  180. click-right = $HOME/.config/polybar/scripts/compton-toggle.sh
  181. interval = 2
  182. label-padding = 1
  183.  
  184.  
  185. [module/window_count]
  186. type = custom/script
  187. interval = 1
  188. label = %{A1:skippy-xd --toggle-window-picker:} %output% %{A}
  189. exec = echo "$(($(wmctrl -l -i | wc -l)-1))"
  190. format = <label>
  191. format-prefix = " "
  192. format-prefix-foreground = ${colors.foreground}
  193. format-padding = 3
  194.  
  195.  
  196. [module/filesystem]
  197. type = internal/fs
  198. interval = 25
  199. mount-0 = /
  200. label-mounted =  %mountpoint%:%percentage_used%%
  201. label-mounted-foreground = ${colors.foreground}
  202. label-unmounted = %mountpoint% not mounted
  203. label-unmounted-foreground = ${colors.blue}
  204.  
  205.  
  206.  
  207. [module/volume]
  208. type = internal/volume
  209. master-mixer = Master
  210. format-volume = <label-volume><bar-volume>
  211. label-volume = "  "
  212. label-volume-foreground = ${colors.foreground}
  213. label-volume-background = ${colors.b-alt}
  214. format-muted-prefix = "  "
  215. format-muted-foreground = ${colors.foreground}
  216. format-muted-background = ${colors.b-alt}
  217. label-muted = sound muted
  218. bar-volume-width = 15
  219. bar-volume-foreground-0 = ${colors.foreground}
  220. bar-volume-gradient = true
  221. bar-volume-indicator = "➤"
  222. bar-volume-indicator-foreground = ${colors.blue}
  223. bar-volume-indicator-backround = ${colors.b-alt}
  224. bar-volume-fill-background = ${colors.b-alt}
  225. bar-volume-fill-foreground = ${colors.blue}
  226. bar-volume-fill = "─"
  227. bar-volume-empty = "─"
  228. bar-volume-empty-foreground = ${colors.foreground}
  229. bar-volume-empty-background = ${colors.b-alt}
  230.  
  231.  
  232.  
  233. [module/trash]
  234. interval = 1
  235. type = custom/script
  236. exec = $HOME/.config/polybar/scripts/trash
  237. format-prefix = "  "
  238. format-prefix-foreground = ${colors.foreground}
  239. format-background = ${colors.b-alt}
  240. click-right = rm -rf $HOME/.local/share/Trash/files/*
  241. click-left = exo-open --launch FileManager $HOME/.local/share/Trash/files
  242.  
  243.  
  244.  
  245. [module/menu]
  246. type = custom/menu
  247. format-spacing = 1
  248. format-background = ${colors.b-alt}
  249. label-open = "  "
  250. label-open-foreground = ${colors.foreground}
  251. label-open-background = ${colors.b-alt}
  252. label-close = "  "
  253. label-close-foreground = ${colors.urgent}
  254. label-separator = " "
  255. label-separator-foreground = ${colors.background}
  256. # Top level
  257. menu-0-0 = "  "
  258. menu-0-0-exec = menu-open-1
  259. menu-0-1 = "  "
  260. menu-0-1-exec = menu-open-2
  261. menu-0-2 = "  "
  262. menu-0-2-exec = menu-open-3
  263. # 1
  264. menu-1-0 = "  "
  265. menu-1-0-exec = exo-open --launch WebBrowser
  266. menu-1-1 = "  "
  267. menu-1-1-exec = exo-open --launch TerminalEmulator
  268. menu-1-2 = "  "
  269. menu-1-2-exec = exo-open --launch FileManager
  270. menu-1-3 = "  "
  271. menu-1-3-exec = geany &
  272. # 2
  273. menu-2-0 = "  "
  274. menu-2-0-exec = audacious &
  275. menu-2-1 = "  "
  276. menu-2-1-exec = termite --geometry=600x500 --exec=pacli &
  277. menu-2-2 = "  "
  278. menu-2-2-exec = xfce4-settings-manager &
  279. menu-2-3 = "  "
  280. menu-2-3-exec = scrot 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f' &
  281. # 3
  282. menu-3-0 = "  "
  283. menu-3-0-exec = slimlock
  284. menu-3-1 = "  "
  285. menu-3-1-exec = openbox --exit
  286. menu-3-2 = "  "
  287. menu-3-2-exec = systemctl reboot
  288. menu-3-3 = "  "
  289. menu-3-3-exec = systemctl poweroff
  290.  
  291.  
  292. [module/workspaces]
  293. type = internal/xworkspaces
  294. enable-click = true
  295. enable-scroll = true
  296. format-padding = 1
  297. Additional formatting
  298. icon-0 = 1;
  299. icon-1 = 2;
  300. icon-2 = 3;
  301. icon-3 = 4;
  302. icon-4 = 5;
  303. icon-5 = 6;
  304. icon-6 = 7;
  305. icon-7 = 8;
  306. icon-8 = 9;
  307. icon-9 = 10;
  308. ;icon-default = 
  309.  
  310. format = <label-state>
  311. label-monitor = %name%
  312.  
  313. label-active = " %icon% %name% "
  314. label-active-foreground = ${colors.blue}
  315. label-active-background = ${colors.background}
  316. label-active-underline = ${colors.blue}
  317.  
  318. label-occupied = " %icon% %name% "
  319. label-occupied-underline = ${colors.blue}
  320. label-occupied-background = ${colors.background}
  321. label-occupied-foreground = ${colors.foreground}
  322.  
  323. label-urgent = " %icon% %name% "
  324. label-urgent-foreground = ${colors.urgent}
  325. label-urgent-background = ${colors.background}
  326. label-urgent-underline = ${colors.urgent}
  327.  
  328. label-empty = " %icon% %name% "
  329. label-empty-foreground = ${colors.foreground}
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  344. ;;;;;; Extra Modules (not used)
  345. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  346.  
  347.  
  348.  
  349. [module/title]
  350. type = custom/script
  351. interval = 1
  352. label = %output%
  353. label-maxlen = 65
  354. exec = echo "$(xtitle)"
  355. format = <label>
  356. format-background = ${colors.b-alt}
  357. format-prefix = " "
  358. format-prefix-foreground = ${colors.foreground}
  359. format-padding = 3
  360.  
  361.  
  362.  
  363. [module/eth]
  364. type = internal/network
  365. interface = eno1
  366. interval = 1
  367. label-connected = "  "
  368. label-connected-foreground = ${colors.foreground}
  369. label-connected-background = ${colors.b-alt}
  370. label-disconnected = "  "
  371. label-disconnected-foreground = ${colors.foreground}
  372. label-disconnected-background = ${colors.b-alt}
  373.  
  374.  
  375.  
  376. [module/coreuse]
  377. type = internal/cpu
  378. interval = 1
  379. format = <label>
  380. format-background = ${colors.b-alt}
  381. format-prefix = ""
  382. format-prefix-padding = 1
  383. format-prefix-foreground = ${colors.foreground}
  384. label = %percentage%%
  385. ramp-coreload-0 = %{F#81817F}▂%{F-}
  386. ramp-coreload-1 = %{F#81817F}▃%{F-}
  387. ramp-coreload-2 = %{F#D1D1D0}▄%{F-}
  388. ramp-coreload-3 = %{F#D1D1D0}▅%{F-}
  389. ramp-coreload-4 = %{F#D1D1D0}▆%{F-}
  390. ramp-coreload-5 = %{F#FFFFFF}▇%{F-}
  391. ramp-coreload-6 = %{F#FFFFFF}█%{F-}
  392.  
  393. [module/networkmanager]
  394. type = custom/text
  395. content = net 
  396. content-foreground = ${colors.foreground}
  397. click-left = networkmanager_dmenu
  398. format-padding = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement