zerinol

polybar config.ini

Dec 9th, 2019 (edited)
2,706
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;; ┌────────────────────────────────────────────────────────────┐
  2. ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█▀█░█▀▀░▀█▀░█▀▀│
  3. ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░█░█▀▀░░█░░█░█│
  4. ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀░▀░▀░░░▀▀▀░▀▀▀│
  5. ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│
  6. ;; └────────────────────────────────────────────────────────────┘
  7.  
  8. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  9.  
  10. ;; Global WM Settings
  11.  
  12. [global/wm]
  13. ; Adjust the _NET_WM_STRUT_PARTIAL top value
  14. ; Used for top aligned bars
  15. margin-bottom = 0
  16.  
  17. ; Adjust the _NET_WM_STRUT_PARTIAL bottom value
  18. ; Used for bottom aligned bars
  19. margin-top = 0
  20.  
  21. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  22.  
  23. ;; File Inclusion
  24. ; include an external file, like module file, etc.
  25.  
  26. include-file = ~/.config/polybar/grayblocks/bars.ini
  27. include-file = ~/.config/polybar/grayblocks/colors.ini
  28. include-file = ~/.config/polybar/grayblocks/modules.ini
  29. include-file = ~/.config/polybar/grayblocks/user_modules.ini
  30.  
  31. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  32.  
  33. ;; Bar Settings
  34.  
  35. [bar/main]
  36. ; Use either of the following command to list available outputs:
  37. ; If unspecified, the application will pick the first one it finds.
  38. ; $ polybar -m | cut -d ':' -f 1
  39. ; $ xrandr -q | grep " connected" | cut -d ' ' -f1
  40. monitor =
  41.  
  42. ; Use the specified monitor as a fallback if the main one is not found.
  43. monitor-fallback =
  44.  
  45. ; Require the monitor to be in connected state
  46. ; XRandR sometimes reports my monitor as being disconnected (when in use)
  47. monitor-strict = false
  48.  
  49. ; Tell the Window Manager not to configure the window.
  50. ; Use this to detach the bar if your WM is locking its size/position.
  51. override-redirect = false
  52.  
  53. ; Put the bar at the bottom of the screen
  54. bottom = true
  55.  
  56. ; Prefer fixed center position for the `modules-center` block
  57. ; When false, the center position will be based on the size of the other blocks.
  58. fixed-center = true
  59.  
  60. ; Dimension defined as pixel value (e.g. 35) or percentage (e.g. 50%),
  61. ; the percentage can optionally be extended with a pixel offset like so:
  62. ; 50%:-10, this will result in a width or height of 50% minus 10 pixels
  63. width = 100%
  64. height = 40
  65.  
  66. ; Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
  67. ; the percentage can optionally be extended with a pixel offset like so:
  68. ; 50%:-10, this will result in an offset in the x or y direction
  69. ; of 50% minus 10 pixels
  70. offset-x = 0%
  71. offset-y = 0%
  72.  
  73. ; Background ARGB color (e.g. #f00, #ff992a, #ddff1023)
  74. background = ${color.background}
  75.  
  76. ; Foreground ARGB color (e.g. #f00, #ff992a, #ddff1023)
  77. foreground = ${color.foreground}
  78.  
  79. ; Background gradient (vertical steps)
  80. ;   background-[0-9]+ = #aarrggbb
  81. ;;background-0 =
  82.  
  83. ; Value used for drawing rounded corners
  84. ; Note: This shouldn't be used together with border-size because the border
  85. ; doesn't get rounded
  86. ; Individual top/bottom values can be defined using:
  87. ;   radius-{top,bottom}
  88. radius-top = 0.0
  89. radius-bottom = 0.0
  90.  
  91. ; Under-/overline pixel size and argb color
  92. ; Individual values can be defined using:
  93. ;   {overline,underline}-size
  94. ;   {overline,underline}-color
  95. line-size = 6
  96. line-color = ${color.background}
  97.  
  98. ; Values applied to all borders
  99. ; Individual side values can be defined using:
  100. ;   border-{left,top,right,bottom}-size
  101. ;   border-{left,top,right,bottom}-color
  102. ; The top and bottom borders are added to the bar height, so the effective
  103. ; window height is:
  104. ;   height + border-top-size + border-bottom-size
  105. ; Meanwhile the effective window width is defined entirely by the width key and
  106. ; the border is placed withing this area. So you effectively only have the
  107. ; following horizontal space on the bar:
  108. ;   width - border-right-size - border-left-size
  109. border-top-size = 4
  110. border-top-color = ${color.primary}
  111.  
  112. ; Number of spaces to add at the beginning/end of the bar
  113. ; Individual side values can be defined using:
  114. ;   padding-{left,right}
  115. padding = 0
  116.  
  117. ; Number of spaces to add before/after each module
  118. ; Individual side values can be defined using:
  119. ;   module-margin-{left,right}
  120. module-margin-left = 0
  121. module-margin-right = 0
  122.  
  123. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  124.  
  125. ; Fonts are defined using <font-name>;<vertical-offset>
  126. ; Font names are specified using a fontconfig pattern.
  127. ;   font-0 = NotoSans-Regular:size=8;2
  128. ;   font-1 = MaterialIcons:size=10
  129. ;   font-2 = Termsynu:size=8;-1
  130. ;   font-3 = FontAwesome:size=10
  131. ; See the Fonts wiki page for more details
  132.  
  133. font-0 = "Iosevka Nerd Font:size=10;4"
  134. font-1 = "feather:size=10;3"
  135.  
  136. ; Modules are added to one of the available blocks
  137. ;   modules-left = cpu ram
  138. ;   modules-center = xwindow xbacklight
  139. ;   modules-right = ipc clock
  140.  
  141. modules-left = launcher workspaces sep cpu sep memory
  142. modules-center = updates sep alsa mpd battery sep backlight
  143. modules-right = color-switch sep network sep date sysmenu
  144.  
  145. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  146.  
  147. ; The separator will be inserted between the output of each module
  148. separator =
  149.  
  150. ; Opacity value between 0.0 and 1.0 used on fade in/out
  151. dim-value = 1.0
  152.  
  153. ; Value to be used to set the WM_NAME atom
  154. ; If the value is empty or undefined, the atom value
  155. ; will be created from the following template: polybar-[BAR]_[MONITOR]
  156. ; NOTE: The placeholders are not available for custom values
  157. wm-name =
  158.  
  159. ; Locale used to localize various module data (e.g. date)
  160. ; Expects a valid libc locale, for example: sv_SE.UTF-8
  161. locale =
  162.  
  163. ; Position of the system tray window
  164. ; If empty or undefined, tray support will be disabled
  165. ; NOTE: A center aligned tray will cover center aligned modules
  166. ;
  167. ; Available positions:
  168. ;   left
  169. ;   center
  170. ;   right
  171. ;   none
  172. tray-position = none
  173.  
  174. ; If true, the bar will not shift its
  175. ; contents when the tray changes
  176. tray-detached = false
  177.  
  178. ; Tray icon max size
  179. tray-maxsize = 16
  180.  
  181. ; Background color for the tray container
  182. ; ARGB color (e.g. #f00, #ff992a, #ddff1023)
  183. ; By default the tray container will use the bar
  184. ; background color.
  185. tray-background = ${color.background}
  186.  
  187. ; Tray offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
  188. tray-offset-x = 0
  189. tray-offset-y = 0
  190.  
  191. ; Pad the sides of each tray icon
  192. tray-padding = 0
  193.  
  194. ; Scale factor for tray clients
  195. tray-scale = 1.0
  196.  
  197. ; Restack the bar window and put it above the
  198. ; selected window manager's root
  199. ;
  200. ; Fixes the issue where the bar is being drawn
  201. ; on top of fullscreen window's
  202. ;
  203. ; Currently supported WM's:
  204. ;   bspwm
  205. ;   i3 (requires: `override-redirect = true`)
  206. ;;wm-restack =
  207.  
  208. ; Set a DPI values used when rendering text
  209. ; This only affects scalable fonts
  210. ; dpi =
  211.  
  212. ; Enable support for inter-process messaging
  213. ; See the Messaging wiki page for more details.
  214. enable-ipc = true
  215.  
  216. ; Fallback click handlers that will be called if
  217. ; there's no matching module handler found.
  218. click-left =
  219. click-middle =
  220. click-right =
  221. scroll-up =
  222. scroll-down =
  223. double-click-left =
  224. double-click-middle =
  225. double-click-right =
  226.  
  227. ; Requires polybar to be built with xcursor support (xcb-util-cursor)
  228. ; Possible values are:
  229. ; - default   : The default pointer as before, can also be an empty string (default)
  230. ; - pointer   : Typically in the form of a hand
  231. ; - ns-resize : Up and down arrows, can be used to indicate scrolling
  232. cursor-click =
  233. cursor-scroll =
  234.  
  235. ;; WM Workspace Specific
  236.  
  237. ; bspwm
  238. ;;scroll-up = bspwm-desknext
  239. ;;scroll-down = bspwm-deskprev
  240. ;;scroll-up = bspc desktop -f prev.local
  241. ;;scroll-down = bspc desktop -f next.local
  242.  
  243. ;i3
  244. ;;scroll-up = i3wm-wsnext
  245. ;;scroll-down = i3wm-wsprev
  246. ;;scroll-up = i3-msg workspace next_on_output
  247. ;;scroll-down = i3-msg workspace prev_on_output
  248.  
  249. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  250.  
  251. ;; Application Settings
  252.  
  253. [settings]
  254. ; The throttle settings lets the eventloop swallow up til X events
  255. ; if they happen within Y millisecond after first event was received.
  256. ; This is done to prevent flood of update event.
  257. ;
  258. ; For example if 5 modules emit an update event at the same time, we really
  259. ; just care about the last one. But if we wait too long for events to swallow
  260. ; the bar would appear sluggish so we continue if timeout
  261. ; expires or limit is reached.
  262. throttle-output = 5
  263. throttle-output-for = 10
  264.  
  265. ; Time in milliseconds that the input handler will wait between processing events
  266. ;throttle-input-for = 30
  267.  
  268. ; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events
  269. screenchange-reload = false
  270.  
  271. ; Compositing operators
  272. ; @see: https://www.cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t
  273. compositing-background = source
  274. compositing-foreground = over
  275. compositing-overline = over
  276. compositing-underline = over
  277. compositing-border = over
  278.  
  279. ; Define fallback values used by all module formats
  280. ;format-foreground =
  281. ;format-background =
  282. ;format-underline =
  283. ;format-overline =
  284. ;format-spacing =
  285. ;format-padding =
  286. ;format-margin =
  287. ;format-offset =
  288.  
  289. ; Enables pseudo-transparency for the bar
  290. ; If set to true the bar can be transparent without a compositor.
  291. pseudo-transparency = false
  292.  
  293. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  294.  
Add Comment
Please, Sign In to add comment