SHARE
TWEET

My Polybar config

Volteos Oct 8th, 2017 (edited) 1,817 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;-------------------------------------------------
  2. ;                                                ;
  3. ;           POLYBAR CONFIG FOR CYBERPUNK         ;
  4. ;                                                ;
  5. ;-------------------------------------------------
  6.  
  7. ;-------------------------------------------------
  8. ;                                                ;
  9. ;                   COLORS                       ;
  10. ;                                                ;
  11. ;-------------------------------------------------
  12. [colors]
  13. background = #16060B
  14. foreground = #798D8F
  15. blue  = #244E64
  16. white = #FFFFFF
  17.  
  18. ;-------------------------------------------------
  19. ;                                                ;
  20. ;                   BAR MODULE                   ;
  21. ;                                                ;
  22. ;-------------------------------------------------
  23. [bar/future]
  24. width = 70%
  25. height = 40
  26. offset-x = 15%
  27. offset-y = 1%
  28. radius = 0.0
  29. fixed-center = true
  30.  
  31. background = ${colors.background}
  32. foreground = ${colors.foreground}
  33.  
  34. border-size = 2
  35. border-color = ${colors.foreground}
  36.  
  37. modules-left = bspwm
  38. modules-center = date
  39. modules-right = pavolume cpu powermenu
  40. font-0 = "Unifont:size=12:weight=bold;2"
  41. font-1 = "FontAwesome:size=12;"
  42.  
  43. ;-------------------------------------------------
  44. ;                                                ;
  45. ;                   BSPWM PARAMETERS             ;
  46. ;                                                ;
  47. ;-------------------------------------------------
  48. [module/bspwm]
  49. type = internal/bspwm
  50. pin-workspaces = true
  51. inline-mode = true
  52. enable-click = true
  53. enable-scroll = true
  54. reverse-scroll = true
  55. fuzzy-match = true
  56.  
  57. ;Dunno what this does
  58. format = <label-state>
  59. format-padding = 1
  60.  
  61. ws-icon-0=Terminal;I
  62. ws-icon-1=Sublime;II
  63. ws-icon-2=Firefox;III
  64. ws-icon-3=Thunar;IV
  65. ws-icon-4=Evince;V
  66.  
  67. ;NOTE: YOU CANNOT HAVE NAME AND ICON
  68. ;TOGETHER ONLY ONE OR THE OTHER!!
  69.  
  70. label-focused = %icon%
  71. label-focused-foreground = ${colors.blue}
  72. label-focused-padding = 1
  73.  
  74. label-occupied = %icon%
  75. label-occupied-foreground = ${colors.white}
  76. label-occupied-padding = 1
  77.  
  78. label-empty = %icon%
  79. label-empty-foreground = ${colors.white}
  80. label-empty-padding = 1
  81.  
  82. ;-------------------------------------------------
  83. ;                                                ;
  84. ;               DATE PARAMETERS                  ;
  85. ;                                                ;
  86. ;-------------------------------------------------
  87. [module/date]
  88. type = internal/date
  89. interval = 1.0
  90. date = %m-%d-%Y
  91. time = %r
  92.  
  93. ; if `date-alt` or `time-alt` is defined, clicking
  94. ; the module will toggle between formats
  95. date-alt = %A, %d %B %Y
  96. time-alt = %r
  97.  
  98. format =  <label>
  99. format-foreground = ${colors.white}
  100.  
  101. label = %date% %time%
  102. label-foreground = ${colors.white}
  103.  
  104. ;-------------------------------------------------
  105. ;                                                ;
  106. ;               POWER MENU PARAMETERS            ;
  107. ;                                                ;
  108. ;-------------------------------------------------
  109. [module/powermenu]
  110. type = custom/menu
  111.  
  112. format-spacing = 1
  113. label-open = POWER
  114. label-open-foreground = ${colors.white}
  115. label-close = CANCEL
  116. label-close-foreground = ${colors.blue}
  117. label-separator = |
  118. label-separator-foreground = ${colors.blue}
  119. label-open-padding = 2
  120.  
  121. menu-padding = 2
  122. menu-0-padding = 1
  123.  
  124. menu-0-0 = REBOOT
  125. menu-0-0-exec = menu-open-1
  126. menu-0-1 = SHUTDOWN
  127. menu-0-1-exec = menu-open-2
  128.  
  129. menu-1-0 = REBOOT
  130. menu-1-0-exec = reboot
  131. menu-1-1 = CANCEL REBOOT
  132. menu-1-1-exec = menu-open-0
  133.  
  134. menu-2-0 = SHUTDOWN
  135. menu-2-0-exec = poweroff
  136. menu-2-1 = CANCEL SHUTDOWN
  137. menu-2-1-exec = menu-open-0
  138.  
  139. ;-------------------------------------------------
  140. ;                                                ;
  141. ;               CPU MODULE PARAMETERS            ;
  142. ;                                                ;
  143. ;-------------------------------------------------
  144. [module/cpu]
  145. type = internal/cpu
  146. interval = 0.5
  147.  
  148. format = <label> <ramp-coreload>
  149. label =CORE USE:%percentage%%
  150. label-foreground = ${colors.white}
  151.  
  152. ramp-coreload-0 = ▁
  153. ramp-coreload-1 = ▂
  154. ramp-coreload-2 = ▃
  155. ramp-coreload-3 = ▄
  156. ramp-coreload-4 = ▅
  157. ramp-coreload-5 = ▆
  158. ramp-coreload-6 = ▇
  159. ramp-coreload-7 = █
  160.  
  161. ;--------------USER DEFINED MODULES---------------
  162. ;These modules require scripts to run, you can find
  163. ;the scripts and how to run them here:
  164. ;https://github.com/jaagr/polybar/wiki/User-contributed-modules
  165.  
  166. ;-------------------------------------------------
  167. ;                                                ;
  168. ;               VOLUME PARAMETERS                ;
  169. ;                                                ;
  170. ;-------------------------------------------------
  171.  
  172. [module/pavolume]
  173. type = custom/script
  174. interval = 2
  175. label=VOLUME:%output%
  176. exec = ~/.config/polybar/pavolume.sh
  177. click-right = exec pavucontrol
  178. click-left = ~/.config/polybar/pavolume.sh --togmute
  179. scroll-up = ~/.config/polybar/pavolume.sh --up
  180. scroll-down = ~/.config/polybar/pavolume.sh --down
  181. label-padding = 2
  182. label-foreground = ${colors.white}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top