Archlinux basic installation configuration scripts
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
10 KiB

  1. ;; ┌────────────────────────────────────────────────────────────────────┐
  2. ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀█░█▀▄░█▀▀░█░█░▀█▀░█▀▀░█░█░█▀▀│
  3. ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█▀▀░█▀▄░█▀▀░▀▄▀░░█░░█▀▀░█▄█░▀▀█│
  4. ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀░░░▀░▀░▀▀▀░░▀░░▀▀▀░▀▀▀░▀░▀░▀▀▀│
  5. ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│
  6. ;; └────────────────────────────────────────────────────────────────────┘
  7. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  8. ;; Global WM Settings
  9. [global/wm]
  10. ; Adjust the _NET_WM_STRUT_PARTIAL top value
  11. ; Used for top aligned bars
  12. margin-bottom = 0
  13. ; Adjust the _NET_WM_STRUT_PARTIAL bottom value
  14. ; Used for bottom aligned bars
  15. margin-top = 0
  16. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  17. ;; File Inclusion
  18. ; include an external file, like module file, etc.
  19. include-file = ~/.config/polybar/cuts/bars.ini
  20. include-file = ~/.config/polybar/cuts/colors.ini
  21. include-file = ~/.config/polybar/cuts/modules.ini
  22. include-file = ~/.config/polybar/cuts/user_modules.ini
  23. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  24. ;; Bar Settings
  25. [bar/main]
  26. ; Use either of the following command to list available outputs:
  27. ; If unspecified, the application will pick the first one it finds.
  28. ; $ polybar -m | cut -d ':' -f 1
  29. ; $ xrandr -q | grep " connected" | cut -d ' ' -f1
  30. monitor =
  31. ; Use the specified monitor as a fallback if the main one is not found.
  32. monitor-fallback =
  33. ; Require the monitor to be in connected state
  34. ; XRandR sometimes reports my monitor as being disconnected (when in use)
  35. monitor-strict = false
  36. ; Tell the Window Manager not to configure the window.
  37. ; Use this to detach the bar if your WM is locking its size/position.
  38. override-redirect = false
  39. ; Put the bar at the bottom of the screen
  40. bottom = false
  41. ; Prefer fixed center position for the `modules-center` block
  42. ; When false, the center position will be based on the size of the other blocks.
  43. fixed-center = true
  44. ; Dimension defined as pixel value (e.g. 35) or percentage (e.g. 50%),
  45. ; the percentage can optionally be extended with a pixel offset like so:
  46. ; 50%:-10, this will result in a width or height of 50% minus 10 pixels
  47. width = 100%
  48. height = 28
  49. ; Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
  50. ; the percentage can optionally be extended with a pixel offset like so:
  51. ; 50%:-10, this will result in an offset in the x or y direction
  52. ; of 50% minus 10 pixels
  53. offset-x = 0%
  54. offset-y = 0%
  55. ; Background ARGB color (e.g. #f00, #ff992a, #ddff1023)
  56. background = ${color.background-alt}
  57. ; Foreground ARGB color (e.g. #f00, #ff992a, #ddff1023)
  58. foreground = ${color.foreground}
  59. ; Background gradient (vertical steps)
  60. ; background-[0-9]+ = #aarrggbb
  61. ;;background-0 =
  62. ; Value used for drawing rounded corners
  63. ; Note: This shouldn't be used together with border-size because the border
  64. ; doesn't get rounded
  65. ; Individual top/bottom values can be defined using:
  66. ; radius-{top,bottom}
  67. radius-top = 0.0
  68. radius-bottom = 0.0
  69. ; Under-/overline pixel size and argb color
  70. ; Individual values can be defined using:
  71. ; {overline,underline}-size
  72. ; {overline,underline}-color
  73. line-size = 2
  74. line-color = ${color.primary}
  75. ; Values applied to all borders
  76. ; Individual side values can be defined using:
  77. ; border-{left,top,right,bottom}-size
  78. ; border-{left,top,right,bottom}-color
  79. ; The top and bottom borders are added to the bar height, so the effective
  80. ; window height is:
  81. ; height + border-top-size + border-bottom-size
  82. ; Meanwhile the effective window width is defined entirely by the width key and
  83. ; the border is placed withing this area. So you effectively only have the
  84. ; following horizontal space on the bar:
  85. ; width - border-right-size - border-left-size
  86. border-size = 0
  87. border-color = ${color.primary}
  88. ; Number of spaces to add at the beginning/end of the bar
  89. ; Individual side values can be defined using:
  90. ; padding-{left,right}
  91. padding = 0
  92. ; Number of spaces to add before/after each module
  93. ; Individual side values can be defined using:
  94. ; module-margin-{left,right}
  95. module-margin-left = 0
  96. module-margin-right = 0
  97. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  98. ; Fonts are defined using <font-name>;<vertical-offset>
  99. ; Font names are specified using a fontconfig pattern.
  100. ; font-0 = NotoSans-Regular:size=8;2
  101. ; font-1 = MaterialIcons:size=10
  102. ; font-2 = Termsynu:size=8;-1
  103. ; font-3 = FontAwesome:size=10
  104. ; See the Fonts wiki page for more details
  105. ; Text Fonts
  106. font-0 = Iosevka Nerd Font:style=Medium:size=10;4
  107. ; Icons Fonts
  108. font-1 = feather:style=Medium:size=12;3
  109. ; Powerline Glyphs
  110. font-2 = Iosevka Nerd Font:style=Medium:size=19;3
  111. ; Larger font size for bar fill icons
  112. font-3 = Iosevka Nerd Font:style=Medium:size=12;4
  113. ; Smaller font size for shorter spaces
  114. font-4 = Iosevka Nerd Font:style=Medium:size=7;4
  115. ; Modules are added to one of the available blocks
  116. ; modules-left = cpu ram
  117. ; modules-center = xwindow xbacklight
  118. ; modules-right = ipc clock
  119. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  120. [bar/top]
  121. inherit = bar/main
  122. bottom = true
  123. offset-y = 71
  124. modules-left = launcher title decor1 decor2 workspaces decor1 decor2 color-switch decor1
  125. modules-right = decor4 updates decor3 decor4 temperature battery keyboard decor3 decor4 date sysmenu
  126. enable-ipc = true
  127. [bar/mid]
  128. inherit = bar/main
  129. bottom = true
  130. offset-y = 38
  131. modules-left = menu decor1 decor2 mpd_bar decor1 decor2 term files browser settings decor1 decor2 cpu_bar decor1
  132. modules-right = decor4 memory_bar decor3 decor4 alsa backlight decor3 decor4 filesystem_bar decor3 decor4 battery_bar pulseaudio decor3 decor4 powermenu
  133. enable-ipc = true
  134. [bar/bottom]
  135. inherit = bar/main
  136. bottom = true
  137. offset-y = 5
  138. modules-left = mpd decor3 decor4 cpu memory filesystem decor3
  139. modules-right = decor2 network decor1 decor2 volume brightness
  140. enable-ipc = true
  141. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  142. ; The separator will be inserted between the output of each module
  143. separator =
  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 = none
  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-alt}
  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. ; Restack the bar window and put it above the
  182. ; selected window manager's root
  183. ;
  184. ; Fixes the issue where the bar is being drawn
  185. ; on top of fullscreen window's
  186. ;
  187. ; Currently supported WM's:
  188. ; bspwm
  189. ; i3 (requires: `override-redirect = true`)
  190. ;;wm-restack =
  191. ; Set a DPI values used when rendering text
  192. ; This only affects scalable fonts
  193. ; dpi =
  194. ; Enable support for inter-process messaging
  195. ; See the Messaging wiki page for more details.
  196. ;enable-ipc = true
  197. ; Fallback click handlers that will be called if
  198. ; there's no matching module handler found.
  199. click-left =
  200. click-middle =
  201. click-right =
  202. scroll-up =
  203. scroll-down =
  204. double-click-left =
  205. double-click-middle =
  206. double-click-right =
  207. ; Requires polybar to be built with xcursor support (xcb-util-cursor)
  208. ; Possible values are:
  209. ; - default : The default pointer as before, can also be an empty string (default)
  210. ; - pointer : Typically in the form of a hand
  211. ; - ns-resize : Up and down arrows, can be used to indicate scrolling
  212. cursor-click =
  213. cursor-scroll =
  214. ;; WM Workspace Specific
  215. ; bspwm
  216. ;;scroll-up = bspwm-desknext
  217. ;;scroll-down = bspwm-deskprev
  218. ;;scroll-up = bspc desktop -f prev.local
  219. ;;scroll-down = bspc desktop -f next.local
  220. ;i3
  221. ;;scroll-up = i3wm-wsnext
  222. ;;scroll-down = i3wm-wsprev
  223. ;;scroll-up = i3-msg workspace next_on_output
  224. ;;scroll-down = i3-msg workspace prev_on_output
  225. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  226. ;; Application Settings
  227. [settings]
  228. ; The throttle settings lets the eventloop swallow up til X events
  229. ; if they happen within Y millisecond after first event was received.
  230. ; This is done to prevent flood of update event.
  231. ;
  232. ; For example if 5 modules emit an update event at the same time, we really
  233. ; just care about the last one. But if we wait too long for events to swallow
  234. ; the bar would appear sluggish so we continue if timeout
  235. ; expires or limit is reached.
  236. throttle-output = 5
  237. throttle-output-for = 10
  238. ; Time in milliseconds that the input handler will wait between processing events
  239. ;throttle-input-for = 30
  240. ; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events
  241. screenchange-reload = false
  242. ; Compositing operators
  243. ; @see: https://www.cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t
  244. compositing-background = source
  245. compositing-foreground = over
  246. compositing-overline = over
  247. compositing-underline = over
  248. compositing-border = over
  249. ; Define fallback values used by all module formats
  250. ;format-foreground =
  251. ;format-background =
  252. ;format-underline =
  253. ;format-overline =
  254. ;format-spacing =
  255. ;format-padding =
  256. ;format-margin =
  257. ;format-offset =
  258. ; Enables pseudo-transparency for the bar
  259. ; If set to true the bar can be transparent without a compositor.
  260. pseudo-transparency = false
  261. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_