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.

321 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/hack/bars.ini
  20. include-file = ~/.config/polybar/hack/colors.ini
  21. include-file = ~/.config/polybar/hack/modules.ini
  22. include-file = ~/.config/polybar/hack/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 = 26
  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}
  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. underline-size = 2
  74. underline-color = ${color.foreground}
  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-bottom-size = 2
  87. ;border-bottom-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 = 1
  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. font-0 = "Iosevka Nerd Font:pixelsize=10;3"
  106. font-1 = "Iosevka Nerd Font:pixelsize=12;4"
  107. ; Modules are added to one of the available blocks
  108. ; modules-left = cpu ram
  109. ; modules-center = xwindow xbacklight
  110. ; modules-right = ipc clock
  111. ;modules-left = launcher workspaces google github reddit gmail twitter
  112. ;modules-center =
  113. ;modules-right = mpd updates alsa battery network date sysmenu
  114. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  115. [bar/top]
  116. inherit = bar/main
  117. offset-y = 10
  118. border-top-size = 2
  119. border-top-color = ${color.primary}
  120. modules-left = launcher sep title
  121. modules-center = workspaces
  122. modules-right = alsa sep battery sep checknet sep date sep sysmenu
  123. enable-ipc = true
  124. [bar/mid]
  125. inherit = bar/main
  126. offset-y = 48
  127. modules-center = battery_bar sep cpu_bar sep memory_bar sep filesystem_bar sep mpd_bar sep volume sep brightness
  128. enable-ipc = true
  129. [bar/bottom]
  130. inherit = bar/main
  131. offset-y = 84
  132. border-bottom-size = 2
  133. border-bottom-color = ${color.primary}
  134. modules-left = menu sep mpd sep color-switch
  135. modules-center = cpu sep memory sep filesystem sep temperature sep updates sep speed
  136. modules-right = backlight sep pulseaudio sep network sep keyboard sep powermenu
  137. enable-ipc = true
  138. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  139. ; The separator will be inserted between the output of each module
  140. separator =
  141. ; Opacity value between 0.0 and 1.0 used on fade in/out
  142. dim-value = 1.0
  143. ; Value to be used to set the WM_NAME atom
  144. ; If the value is empty or undefined, the atom value
  145. ; will be created from the following template: polybar-[BAR]_[MONITOR]
  146. ; NOTE: The placeholders are not available for custom values
  147. wm-name =
  148. ; Locale used to localize various module data (e.g. date)
  149. ; Expects a valid libc locale, for example: sv_SE.UTF-8
  150. locale =
  151. ; Position of the system tray window
  152. ; If empty or undefined, tray support will be disabled
  153. ; NOTE: A center aligned tray will cover center aligned modules
  154. ;
  155. ; Available positions:
  156. ; left
  157. ; center
  158. ; right
  159. ; none
  160. tray-position = none
  161. ; If true, the bar will not shift its
  162. ; contents when the tray changes
  163. tray-detached = false
  164. ; Tray icon max size
  165. tray-maxsize = 16
  166. ; Background color for the tray container
  167. ; ARGB color (e.g. #f00, #ff992a, #ddff1023)
  168. ; By default the tray container will use the bar
  169. ; background color.
  170. tray-background = ${color.background}
  171. ; Tray offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
  172. tray-offset-x = 0
  173. tray-offset-y = 0
  174. ; Pad the sides of each tray icon
  175. tray-padding = 0
  176. ; Scale factor for tray clients
  177. tray-scale = 1.0
  178. ; Restack the bar window and put it above the
  179. ; selected window manager's root
  180. ;
  181. ; Fixes the issue where the bar is being drawn
  182. ; on top of fullscreen window's
  183. ;
  184. ; Currently supported WM's:
  185. ; bspwm
  186. ; i3 (requires: `override-redirect = true`)
  187. ;;wm-restack =
  188. ; Set a DPI values used when rendering text
  189. ; This only affects scalable fonts
  190. ; dpi =
  191. ; Enable support for inter-process messaging
  192. ; See the Messaging wiki page for more details.
  193. ;enable-ipc = true
  194. ; Fallback click handlers that will be called if
  195. ; there's no matching module handler found.
  196. click-left =
  197. click-middle =
  198. click-right =
  199. scroll-up =
  200. scroll-down =
  201. double-click-left =
  202. double-click-middle =
  203. double-click-right =
  204. ; Requires polybar to be built with xcursor support (xcb-util-cursor)
  205. ; Possible values are:
  206. ; - default : The default pointer as before, can also be an empty string (default)
  207. ; - pointer : Typically in the form of a hand
  208. ; - ns-resize : Up and down arrows, can be used to indicate scrolling
  209. cursor-click =
  210. cursor-scroll =
  211. ;; WM Workspace Specific
  212. ; bspwm
  213. ;;scroll-up = bspwm-desknext
  214. ;;scroll-down = bspwm-deskprev
  215. ;;scroll-up = bspc desktop -f prev.local
  216. ;;scroll-down = bspc desktop -f next.local
  217. ;i3
  218. ;;scroll-up = i3wm-wsnext
  219. ;;scroll-down = i3wm-wsprev
  220. ;;scroll-up = i3-msg workspace next_on_output
  221. ;;scroll-down = i3-msg workspace prev_on_output
  222. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  223. ;; Application Settings
  224. [settings]
  225. ; The throttle settings lets the eventloop swallow up til X events
  226. ; if they happen within Y millisecond after first event was received.
  227. ; This is done to prevent flood of update event.
  228. ;
  229. ; For example if 5 modules emit an update event at the same time, we really
  230. ; just care about the last one. But if we wait too long for events to swallow
  231. ; the bar would appear sluggish so we continue if timeout
  232. ; expires or limit is reached.
  233. throttle-output = 5
  234. throttle-output-for = 10
  235. ; Time in milliseconds that the input handler will wait between processing events
  236. ;throttle-input-for = 30
  237. ; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events
  238. screenchange-reload = false
  239. ; Compositing operators
  240. ; @see: https://www.cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t
  241. compositing-background = source
  242. compositing-foreground = over
  243. compositing-overline = over
  244. compositing-underline = over
  245. compositing-border = over
  246. ; Define fallback values used by all module formats
  247. ;format-foreground =
  248. ;format-background =
  249. ;format-underline =
  250. ;format-overline =
  251. ;format-spacing =
  252. ;format-padding =
  253. ;format-margin =
  254. ;format-offset =
  255. ; Enables pseudo-transparency for the bar
  256. ; If set to true the bar can be transparent without a compositor.
  257. pseudo-transparency = false
  258. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_