You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

323 lines
9.1 KiB

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