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.

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