Facebook
From omar, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 310
  1. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  2. ;;
  3. ;;          ____        __      __              
  4. ;;         / __ \____  / /_  __/ /_  ____ ______
  5. ;;        / /_/ / __ \/ / / / / __ \/ __ `/ ___/
  6. ;;       / ____/ /_/ / / /_/ / /_/ / /_/ / /    
  7. ;;      /_/    \____/_/\__, /_.___/\__,_/_/    
  8. ;;                    /____/                    
  9. ;;
  10. ;; Created By Aditya Shakya @adi1090x
  11. ;;
  12. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  13.  
  14. ;; Global WM Settings
  15.  
  16. [global/wm]
  17. margin-bottom = 0
  18. margin-top = 0
  19.  
  20. include-file = ~/.config/bspwm/polybar/colors
  21.  
  22. [bar/main]
  23. monitor =
  24. monitor-strict = false
  25. override-redirect = false
  26.  
  27. bottom = false
  28. fixed-center = true
  29.  
  30. width = 100%
  31. height = 20
  32. offset-x = 0
  33. offset-y = 0
  34.  
  35. background = ${color.BACKGROUND}
  36. foreground = ${color.FOREGROUND}
  37.  
  38. radius-top = 0.0
  39. radius-bottom = 0.0
  40.  
  41. line-size = 2
  42. line-color = ${color.BLUE}
  43.  
  44. border-size = 4
  45. border-color = ${color.BACKGROUND}
  46.  
  47. padding = 1
  48. module-margin-left = 1
  49. module-margin-right = 1
  50.  
  51.  
  52. font-0 = "Iosevka Nerd Font:size=13;3"
  53. font-1 = "Iosevka Nerd Font:size=12;3"
  54.  
  55. modules-left = mod bspwm
  56. modules-center = spotify previous playpause next
  57. modules-right = volume backlight battery network date
  58.  
  59. separator =
  60. spacing = 0
  61.  
  62. dim-value = 1.0
  63.  
  64. wm-name = bspwm
  65. locale =
  66.  
  67. tray-position = right
  68. tray-detached = false
  69. tray-maxsize = 16
  70. tray-transparent = false
  71. tray-background = ${color.BACKGROUND}
  72. tray-offset-x = 0
  73. tray-offset-y = 0
  74. tray-padding = 0
  75. tray-scale = 1.0
  76.  
  77. wm-restack = bspwm
  78.  
  79. enable-ipc = true
  80.  
  81. ; bspwm
  82. scroll-up = bspc desktop -f prev.local
  83. scroll-down = bspc desktop -f next.local
  84.  
  85. [settings]
  86. throttle-output = 5
  87. throttle-output-for = 10
  88. throttle-input-for = 30
  89.  
  90. screenchange-reload = false
  91.  
  92. compositing-background = source
  93. compositing-foreground = over
  94. compositing-overline = over
  95. compositing-underline = over
  96. compositing-border = over
  97.  
  98. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  99. ;;
  100. ;;          __  ___          __      __        
  101. ;;         /  |/  /___  ____/ /_  __/ /__  _____
  102. ;;        / /|_/ / __ \/ __  / / / / / _ \/ ___/
  103. ;;       / /  / / /_/ / /_/ / /_/ / /  __(__  )
  104. ;;      /_/  /_/\____/\__,_/\__,_/_/\___/____/  
  105. ;;
  106. ;; Created By Aditya Shakya @adi1090x
  107. ;;
  108. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  109.  
  110. [module/volume]
  111. type = internal/pulseaudio
  112.  
  113. ; Sink to be used, if it exists (find using `pacmd list-sinks`, name field)
  114. ; If not, uses default sink
  115. sink = alsa_output.pci-0000_12_00.3.analog-stereo
  116.  
  117. ; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
  118. ; Default: true
  119. use-ui-max = false
  120.  
  121. ; Interval for volume increase/decrease (in percent points)
  122. ; Default: 5
  123. interval = 5
  124.  
  125. format-volume = <ramp-volume> <label-volume>
  126.  
  127. format-muted = <label-muted>
  128. format-muted-prefix = 婢
  129. format-muted-prefix-font = 2
  130. format-muted-prefix-foreground = ${color.WHITE}
  131.  
  132. label-volume = %percentage%%
  133. label-muted = " Muted"
  134. label-muted-foreground = #757575
  135.  
  136. ramp-volume-0 = 奄
  137. ramp-volume-1 = 奄
  138. ramp-volume-2 = 奄
  139. ramp-volume-3 = 奔
  140. ramp-volume-4 = 奔
  141. ramp-volume-5 = 奔
  142. ramp-volume-6 = 墳
  143. ramp-volume-7 = 墳
  144. ramp-volume-8 = 墳
  145. ramp-volume-9 = 墳
  146. ramp-volume-font = 2
  147. ramp-volume-foreground = ${color.WHITE}
  148.  
  149. ramp-headphones-0 = 
  150. ramp-headphones-1 = 
  151.  
  152. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  153.  
  154. [module/backlight]
  155. type = internal/xbacklight
  156.  
  157. card = intel_backlight
  158.  
  159. format = <ramp> <label>
  160.  
  161. label = %percentage%%
  162.  
  163. ramp-0 = 
  164. ramp-1 = 
  165. ramp-2 = 
  166. ramp-3 = 
  167. ramp-4 = 
  168. ramp-5 = 
  169. ramp-6 = 
  170. ramp-7 = 
  171. ramp-8 = 
  172. ramp-9 = 
  173. ramp-font = 2
  174. ramp-foreground = ${color.WHITE}
  175.  
  176. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  177.  
  178. [module/battery]
  179. type = internal/battery
  180.  
  181. full-at = 99
  182.  
  183. battery = BAT1
  184. adapter = ACAD
  185.  
  186. poll-interval = 2
  187. time-format = %H:%M
  188.  
  189. format-charging = <animation-charging> <label-charging>
  190. format-charging-prefix =
  191.  
  192. format-discharging = <ramp-capacity> <label-discharging>
  193.  
  194. format-full = <label-full>
  195. format-full-prefix = " "
  196. format-full-prefix-font = 2
  197. format-full-prefix-foreground = ${color.WHITE}
  198.  
  199. label-charging = %percentage%%
  200. label-discharging = %percentage%%
  201. label-full = %percentage%%
  202.  
  203. ramp-capacity-0 = 
  204. ramp-capacity-1 = 
  205. ramp-capacity-2 = 
  206. ramp-capacity-3 = 
  207. ramp-capacity-4 = 
  208. ramp-capacity-font = 2
  209. ramp-capacity-foreground = ${color.WHITE}
  210.  
  211. animation-charging-0 = 
  212. animation-charging-1 = 
  213. animation-charging-2 = 
  214. animation-charging-3 = 
  215. animation-charging-4 = 
  216. animation-charging-font = 2
  217. animation-charging-foreground = ${color.WHITE}
  218. animation-charging-framerate = 750
  219.  
  220. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  221.  
  222. [module/bspwm]
  223. type = internal/bspwm
  224.  
  225. pin-workspaces = true
  226. inline-mode = false
  227.  
  228. enable-click = true
  229. enable-scroll = true
  230. reverse-scroll = true
  231.  
  232. fuzzy-match = true
  233.  
  234. ; ws-icon-[0-9]+ = label;icon
  235. ; Note that the label needs to correspond with the bspwm workspace name
  236. ;;ws-icon-0 = code;♚
  237. ;;ws-icon-1 = office;♛
  238. ;;ws-icon-2 = graphics;♜
  239. ;;ws-icon-3 = mail;♝
  240. ;;ws-icon-4 = web;♞
  241. ;;ws-icon-default = ♟
  242.  
  243. format = <label-state>
  244.  
  245. label-monitor = %name%
  246.  
  247. ; If any values for label-dimmed-N are defined, the workspace/mode
  248. ; colors will get overridden with those values if the monitor is out of focus
  249. ; To only override workspaces in a specific state, use:
  250. ;   label-dimmed-focused
  251. ;   label-dimmed-occupied
  252. ;   label-dimmed-urgent
  253. ;   label-dimmed-empty
  254. ;label-dimmed-foreground = ${color.FOREGROUND}
  255. ;label-dimmed-underline = ${color.YELLOW}
  256. ;label-dimmed-focused-background = ${color.BACKGROUND}
  257.  
  258. label-focused = %name%
  259. label-focused-foreground = ${color.WHITE}
  260. label-focused-background = ${color.ALTMAGENTA}
  261. label-focused-underline = ${color.WHITE}
  262. label-focused-padding = 1
  263.  
  264. label-occupied = %name%
  265. label-occupied-foreground = ${color.WHITE}
  266. label-occupied-background = ${color.BLUE}
  267. ;label-occupied-underline = ${color.GREEN}
  268. label-occupied-padding = 1
  269.  
  270. label-urgent = %name%
  271. label-urgent-foreground = ${color.BACKGROUND}
  272. label-urgent-background = ${color.RED}
  273. ;label-urgent-underline = ${color.RED}
  274. label-urgent-padding = 1
  275.  
  276. label-empty = %name%
  277. label-empty-foreground = ${color.FOREGROUND}
  278. label-empty-padding = 1
  279.  
  280. ; Separator in between workspaces
  281. label-separator = " "
  282. label-separator-padding = 0
  283. ;label-separator-foreground = ${color.YELLOW}
  284.  
  285. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  286.  
  287. [module/mod]
  288. type = internal/bspwm
  289.  
  290. format = <label-mode>
  291. ;;format-background = ${color.FOREGROUND}
  292. format-foreground = ${color.WHITE}
  293. format-padding = 1
  294. ;;label-floating = "Float"
  295. ;;label-monocle = "Monocle"
  296. ;;label-tiled = "Tiled"
  297. label-monocle = ""
  298. label-tiled = ""
  299.  
  300. ;label-floating = ", Float"
  301. ;label-pseudotiled = ", Pseudo"
  302. ;label-fullscreen = ", Full"
  303.  
  304. ;label-locked = " Locked"
  305. ;label-sticky = " Sticky"
  306. ;label-private = " Private"
  307.  
  308. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  309.  
  310. [module/modicons]
  311. type = internal/bspwm
  312.  
  313. format = <label-mode>
  314. format-background = ${color.YELLOW}
  315. format-foreground = ${color.BACKGROUND}
  316. format-padding = 1
  317.  
  318. label-monocle = ""
  319. label-tiled = ""
  320.  
  321. label-fullscreen = " "
  322. label-floating = " "
  323. label-pseudotiled = " "
  324.  
  325. label-locked = " "
  326. label-sticky = " "
  327. label-private = " "
  328.  
  329. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  330.  
  331. [module/date]
  332. type = internal/date
  333.  
  334. interval = 1.0
  335.  
  336. time = %I:%M %p
  337. time-alt = %A, %d %B %Y
  338.  
  339. format = <label>
  340. format-prefix = " "
  341. format-prefix-font = 2
  342. format-prefix-foreground = ${color.WHITE}
  343.  
  344. label = %time%
  345.  
  346.  
  347. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  348.  
  349. [module/previous]
  350. type = custom/ipc
  351. format-font = 1
  352. ; Default
  353. hook-0 = echo ""
  354. ; When spotify active
  355. hook-1 = echo ""
  356. click-left = "spotifyctl -q previous"
  357.  
  358.  
  359. [module/next]
  360. type = custom/ipc
  361. format-font = 1
  362. ; Default
  363. hook-0 = echo ""
  364. ; When spotify active
  365. hook-1 = echo ""
  366. click-left = "spotifyctl -q next"
  367.  
  368.  
  369. [module/playpause]
  370. type = custom/ipc
  371. format-font = 1
  372. ; Default
  373. hook-0 = echo ""
  374. ; Playing
  375. hook-1 = echo ""
  376. ; Paused
  377. hook-2 = echo ""
  378. click-left = "spotifyctl -q playpause"
  379.  
  380.  
  381. [module/spotify]
  382. ;;format-underline = #0f0
  383. format-prefix = " "
  384. type = custom/ipc
  385. ; Default
  386. hook-0 = echo ""
  387. ; Playing/paused show song name and artist
  388. hook-1 = spotifyctl -q status --format '%artist%: %title%'
  389. ;;
  390.  
  391.  
  392. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  393.  
  394. [module/network]
  395. type = internal/network
  396. interface = wlan0
  397.  
  398. interval = 1.0
  399.  
  400. ;;ping-interval = 3
  401. ;;udspeed-minwidth = 5
  402.  
  403. accumulate-stats = true
  404. unknown-as-up = true
  405.  
  406. format-connected = <ramp-signal> <label-connected>
  407.  
  408. format-disconnected = <label-disconnected>
  409. format-disconnected-prefix = "睊 "
  410. format-disconnected-prefix-font = 2
  411. format-disconnected-prefix-foreground = ${color.WHITE}
  412.  
  413. label-connected = "%{A1:nmd &:}%essid%%{A}"
  414. label-disconnected = "%{A1:nmd &:}Disconnected%{A}"
  415.  
  416. ramp-signal-0 = 直
  417. ramp-signal-1 = 直
  418. ramp-signal-2 = 直
  419. ramp-signal-3 = 直
  420. ramp-signal-4 = 直
  421. ramp-signal-font = 2
  422. ramp-signal-foreground = ${color.WHITE}
  423.  

Replies to polybar config rss

Title Name Language When
Re: polybar config Chartreuse Dove text 1 Year ago.