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.

312 lines
10 KiB

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