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.

657 lines
18 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. ;; Bar Settings
  18. [bar/main]
  19. ; Use either of the following command to list available outputs:
  20. ; If unspecified, the application will pick the first one it finds.
  21. ; $ polybar -m | cut -d ':' -f 1
  22. ; $ xrandr -q | grep " connected" | cut -d ' ' -f1
  23. monitor =
  24. ; Use the specified monitor as a fallback if the main one is not found.
  25. monitor-fallback =
  26. ; Require the monitor to be in connected state
  27. ; XRandR sometimes reports my monitor as being disconnected (when in use)
  28. monitor-strict = false
  29. ; Tell the Window Manager not to configure the window.
  30. ; Use this to detach the bar if your WM is locking its size/position.
  31. override-redirect = false
  32. ; Put the bar at the bottom of the screen
  33. bottom = false
  34. ; Prefer fixed center position for the `modules-center` block
  35. ; When false, the center position will be based on the size of the other blocks.
  36. fixed-center = true
  37. ; Dimension defined as pixel value (e.g. 35) or percentage (e.g. 50%),
  38. ; the percentage can optionally be extended with a pixel offset like so:
  39. ; 50%:-10, this will result in a width or height of 50% minus 10 pixels
  40. width = 100%
  41. height = 30
  42. ; Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
  43. ; the percentage can optionally be extended with a pixel offset like so:
  44. ; 50%:-10, this will result in an offset in the x or y direction
  45. ; of 50% minus 10 pixels
  46. offset-x = 0
  47. offset-y = 0
  48. ; Background ARGB color (e.g. #f00, #ff992a, #ddff1023)
  49. background = ${color.bg}
  50. ; Foreground ARGB color (e.g. #f00, #ff992a, #ddff1023)
  51. foreground = ${color.fg}
  52. ; Background gradient (vertical steps)
  53. ; background-[0-9]+ = #aarrggbb
  54. ;;background-0 =
  55. ; Value used for drawing rounded corners
  56. ; Note: This shouldn't be used together with border-size because the border
  57. ; doesn't get rounded
  58. ; Individual top/bottom values can be defined using:
  59. ; radius-{top,bottom}
  60. radius-top = 0.0
  61. radius-bottom = 0.0
  62. ; Under-/overline pixel size and argb color
  63. ; Individual values can be defined using:
  64. ; {overline,underline}-size
  65. ; {overline,underline}-color
  66. ;;overline-size = 0
  67. ;;overline-color = ${color.ac}
  68. ; Values applied to all borders
  69. ; Individual side values can be defined using:
  70. ; border-{left,top,right,bottom}-size
  71. ; border-{left,top,right,bottom}-color
  72. ; The top and bottom borders are added to the bar height, so the effective
  73. ; window height is:
  74. ; height + border-top-size + border-bottom-size
  75. ; Meanwhile the effective window width is defined entirely by the width key and
  76. ; the border is placed withing this area. So you effectively only have the
  77. ; following horizontal space on the bar:
  78. ; width - border-right-size - border-left-size
  79. ;;border-size = 2
  80. ;;border-color = ${color.ac}
  81. ; Number of spaces to add at the beginning/end of the bar
  82. ; Individual side values can be defined using:
  83. ; padding-{left,right}
  84. padding = 0
  85. ; Number of spaces to add before/after each module
  86. ; Individual side values can be defined using:
  87. ; module-margin-{left,right}
  88. module-margin-left = 0
  89. module-margin-right = 0
  90. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  91. ; Fonts are defined using <font-name>;<vertical-offset>
  92. ; Font names are specified using a fontconfig pattern.
  93. ; font-0 = NotoSans-Regular:size=8;2
  94. ; font-1 = MaterialIcons:size=10
  95. ; font-2 = Termsynu:size=8;-1
  96. ; font-3 = FontAwesome:size=10
  97. ; See the Fonts wiki page for more details
  98. font-0 = "Noto Sans:size=9;3"
  99. font-1 = "Iosevka Nerd Font:size=12;3"
  100. font-2 = "Iosevka Nerd Font:size=16;4"
  101. ; Modules are added to one of the available blocks
  102. ; modules-left = cpu ram
  103. ; modules-center = xwindow xbacklight
  104. ; modules-right = ipc clock
  105. modules-left = menu sep2 term web files settings
  106. modules-center =
  107. modules-right = style sep alsa battery network date sep sysmenu
  108. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  109. ; The separator will be inserted between the output of each module
  110. separator =
  111. ; Opacity value between 0.0 and 1.0 used on fade in/out
  112. dim-value = 1.0
  113. ; Value to be used to set the WM_NAME atom
  114. ; If the value is empty or undefined, the atom value
  115. ; will be created from the following template: polybar-[BAR]_[MONITOR]
  116. ; NOTE: The placeholders are not available for custom values
  117. wm-name =
  118. ; Locale used to localize various module data (e.g. date)
  119. ; Expects a valid libc locale, for example: sv_SE.UTF-8
  120. locale =
  121. ; Position of the system tray window
  122. ; If empty or undefined, tray support will be disabled
  123. ; NOTE: A center aligned tray will cover center aligned modules
  124. ;
  125. ; Available positions:
  126. ; left
  127. ; center
  128. ; right
  129. ; none
  130. tray-position = none
  131. ; If true, the bar will not shift its
  132. ; contents when the tray changes
  133. tray-detached = false
  134. ; Tray icon max size
  135. tray-maxsize = 16
  136. ; Background color for the tray container
  137. ; ARGB color (e.g. #f00, #ff992a, #ddff1023)
  138. ; By default the tray container will use the bar
  139. ; background color.
  140. tray-background = ${color.background}
  141. ; Tray offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
  142. tray-offset-x = 0
  143. tray-offset-y = 0
  144. ; Pad the sides of each tray icon
  145. tray-padding = 0
  146. ; Scale factor for tray clients
  147. tray-scale = 1.0
  148. ; Restack the bar window and put it above the
  149. ; selected window manager's root
  150. ;
  151. ; Fixes the issue where the bar is being drawn
  152. ; on top of fullscreen window's
  153. ;
  154. ; Currently supported WM's:
  155. ; bspwm
  156. ; i3 (requires: `override-redirect = true`)
  157. ;;wm-restack =
  158. ; Set a DPI values used when rendering text
  159. ; This only affects scalable fonts
  160. ; dpi =
  161. ; Enable support for inter-process messaging
  162. ; See the Messaging wiki page for more details.
  163. enable-ipc = true
  164. ; Fallback click handlers that will be called if
  165. ; there's no matching module handler found.
  166. click-left =
  167. click-middle =
  168. click-right =
  169. scroll-up =
  170. scroll-down =
  171. double-click-left =
  172. double-click-middle =
  173. double-click-right =
  174. ; Requires polybar to be built with xcursor support (xcb-util-cursor)
  175. ; Possible values are:
  176. ; - default : The default pointer as before, can also be an empty string (default)
  177. ; - pointer : Typically in the form of a hand
  178. ; - ns-resize : Up and down arrows, can be used to indicate scrolling
  179. cursor-click =
  180. cursor-scroll =
  181. ;; WM Workspace Specific
  182. ; bspwm
  183. ;;scroll-up = bspwm-desknext
  184. ;;scroll-down = bspwm-deskprev
  185. ;;scroll-up = bspc desktop -f prev.local
  186. ;;scroll-down = bspc desktop -f next.local
  187. ;i3
  188. ;;scroll-up = i3wm-wsnext
  189. ;;scroll-down = i3wm-wsprev
  190. ;;scroll-up = i3-msg workspace next_on_output
  191. ;;scroll-down = i3-msg workspace prev_on_output
  192. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  193. ;; Application Settings
  194. [settings]
  195. ; The throttle settings lets the eventloop swallow up til X events
  196. ; if they happen within Y millisecond after first event was received.
  197. ; This is done to prevent flood of update event.
  198. ;
  199. ; For example if 5 modules emit an update event at the same time, we really
  200. ; just care about the last one. But if we wait too long for events to swallow
  201. ; the bar would appear sluggish so we continue if timeout
  202. ; expires or limit is reached.
  203. throttle-output = 5
  204. throttle-output-for = 10
  205. ; Time in milliseconds that the input handler will wait between processing events
  206. ;throttle-input-for = 30
  207. ; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events
  208. screenchange-reload = false
  209. ; Compositing operators
  210. ; @see: https://www.cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t
  211. compositing-background = source
  212. compositing-foreground = over
  213. compositing-overline = over
  214. compositing-underline = over
  215. compositing-border = over
  216. ; Define fallback values used by all module formats
  217. ;format-foreground =
  218. ;format-background =
  219. ;format-underline =
  220. ;format-overline =
  221. ;format-spacing =
  222. ;format-padding =
  223. ;format-margin =
  224. ;format-offset =
  225. ; Enables pseudo-transparency for the bar
  226. ; If set to true the bar can be transparent without a compositor.
  227. pseudo-transparency = false
  228. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  229. ;; ┌────────────────────────────────────────────────────────────┐
  230. ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│
  231. ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│
  232. ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│
  233. ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│
  234. ;; └────────────────────────────────────────────────────────────┘
  235. ;;
  236. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  237. [color]
  238. ;; Active Colors
  239. bg = #232832
  240. bg-alt = #1C2028
  241. fg = #EAEAEA
  242. fg-alt = #9C9C9C
  243. trans = #00000000
  244. white = #FFFFFF
  245. black = #000000
  246. ;; Material Colors
  247. red = #e53935
  248. pink = #d81b60
  249. purple = #8e24aa
  250. deep-purple = #5e35b1
  251. indigo = #3949ab
  252. blue = #1e88e5
  253. light-blue = #039be5
  254. cyan = #00acc1
  255. teal = #00897b
  256. green = #43a047
  257. light-green = #7cb342
  258. lime = #c0ca33
  259. yellow = #fdd835
  260. amber = #ffb300
  261. orange = #fb8c00
  262. deep-orange = #f4511e
  263. brown = #6d4c41
  264. grey = #757575
  265. blue-gray = #546e7a
  266. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  267. ;; ┌────────────────────────────────────────────────────────────────┐
  268. ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▄█░█▀█░█▀▄░█░█░█░░░█▀▀░█▀▀│
  269. ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░█░█░█░█░█░█░█░█░░░█▀▀░▀▀█│
  270. ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀░▀░▀▀▀░▀▀░░▀▀▀░▀▀▀░▀▀▀░▀▀▀│
  271. ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│
  272. ;; └────────────────────────────────────────────────────────────────┘
  273. ;;
  274. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  275. [module/alsa]
  276. type = internal/alsa
  277. ; You can find the different card numbers in `/proc/asound/cards`
  278. ;;master-soundcard = default
  279. ;;speaker-soundcard = default
  280. ;;headphone-soundcard = default
  281. ; Default: Master
  282. ;;master-mixer = Master
  283. ; Optionally define speaker and headphone mixers
  284. ; Default: none
  285. ;;speaker-mixer = Speaker
  286. ; Default: none
  287. ;;headphone-mixer = Headphone
  288. ; Default: 5
  289. ;;interval = 5
  290. ; Available tags:
  291. ; <label-volume> (default)
  292. ; <ramp-volume>
  293. ; <bar-volume>
  294. format-volume = <ramp-volume>
  295. format-volume-background = ${color.bg-alt}
  296. format-volume-padding = 2
  297. ; Available tags:
  298. ; <label-muted> (default)
  299. ; <ramp-volume>
  300. ; <bar-volume>
  301. format-muted = <label-muted>
  302. format-muted-background = ${color.bg-alt}
  303. format-muted-padding = 2
  304. ; Available tokens:
  305. ; %percentage% (default)
  306. label-volume = %percentage%%
  307. ; Available tokens:
  308. ; %percentage% (default
  309. label-muted =
  310. label-muted-foreground = ${color.fg-alt}
  311. ramp-volume-0 =
  312. ramp-volume-1 =
  313. ramp-volume-2 =
  314. ramp-volume-3 =
  315. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  316. [module/battery]
  317. type = internal/battery
  318. full-at = 99
  319. ; $ ls -1 /sys/class/power_supply/
  320. battery = BAT1
  321. adapter = ACAD
  322. poll-interval = 2
  323. time-format = %H:%M
  324. ; Available tags:
  325. ; <label-charging> (default)
  326. ; <bar-capacity>
  327. ; <ramp-capacity>
  328. ; <animation-charging>
  329. format-charging = <animation-charging>
  330. format-charging-background = ${color.bg-alt}
  331. format-charging-padding = 2
  332. ; Available tags:
  333. ; <label-discharging> (default)
  334. ; <bar-capacity>
  335. ; <ramp-capacity>
  336. ; <animation-discharging>
  337. format-discharging = <ramp-capacity>
  338. format-discharging-background = ${color.bg-alt}
  339. format-discharging-padding = 2
  340. ; Available tags:
  341. ; <label-full> (default)
  342. ; <bar-capacity>
  343. ; <ramp-capacity>
  344. format-full = <label-full>
  345. format-full-background = ${color.bg-alt}
  346. format-full-padding = 2
  347. ; Available tokens:
  348. ; %percentage% (default)
  349. ; %time%
  350. ; %consumption% (shows current charge rate in watts)
  351. label-charging = %percentage%%
  352. ; Available tokens:
  353. ; %percentage% (default)
  354. ; %time%
  355. ; %consumption% (shows current discharge rate in watts)
  356. label-discharging = %percentage%%
  357. ; Available tokens:
  358. ; %percentage% (default)
  359. ;label-full = Fully Charged
  360. label-full =
  361. label-full-foreground = ${color.green}
  362. ramp-capacity-0 =
  363. ramp-capacity-1 =
  364. ramp-capacity-2 =
  365. ramp-capacity-3 =
  366. ramp-capacity-4 =
  367. ramp-capacity-5 =
  368. ramp-capacity-6 =
  369. ramp-capacity-7 =
  370. ramp-capacity-8 =
  371. ramp-capacity-9 =
  372. animation-charging-0 =
  373. animation-charging-1 =
  374. animation-charging-2 =
  375. animation-charging-3 =
  376. animation-charging-4 =
  377. animation-charging-5 =
  378. animation-charging-6 =
  379. ; Framerate in milliseconds
  380. animation-charging-framerate = 750
  381. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  382. [module/date]
  383. type = internal/date
  384. interval = 1.0
  385. time = %I:%M %p
  386. ;;time-alt = %B %d, %Y
  387. format = <label>
  388. format-background = ${color.bg-alt}
  389. format-padding = 2
  390. label = %time%
  391. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  392. [module/network]
  393. type = internal/network
  394. interface = enp1s0
  395. interval = 1.0
  396. ;ping-interval = 3
  397. ;;udspeed-minwidth = 5
  398. accumulate-stats = true
  399. unknown-as-up = true
  400. ; Available tags:
  401. ; <label-connected> (default)
  402. ; <ramp-signal>
  403. format-connected = <label-connected>
  404. format-connected-background = ${color.bg-alt}
  405. format-connected-padding = 2
  406. ; Available tags:
  407. ; <label-disconnected> (default)
  408. format-disconnected = <label-disconnected>
  409. format-disconnected-background = ${color.bg-alt}
  410. format-disconnected-padding = 2
  411. ; Available tags:
  412. ; <label-connected> (default)
  413. ; <label-packetloss>
  414. ; <animation-packetloss>
  415. ;;format-packetloss = <animation-packetloss> <label-connected>
  416. ; Available tokens:
  417. ; %ifname% [wireless+wired]
  418. ; %local_ip% [wireless+wired]
  419. ; %local_ip6% [wireless+wired]
  420. ; %essid% [wireless]
  421. ; %signal% [wireless]
  422. ; %upspeed% [wireless+wired]
  423. ; %downspeed% [wireless+wired]
  424. ; %linkspeed% [wired]
  425. ; Default: %ifname% %local_ip%
  426. ;label-connected = 說
  427. label-connected = "%{A1:networkmanager_dmenu &:}說%{A}"
  428. ; Available tokens:
  429. ; %ifname% [wireless+wired]
  430. ; Default: (none)
  431. ;label-disconnected = ﲁ
  432. label-disconnected = "%{A1:networkmanager_dmenu &:}ﲁ%{A}"
  433. label-disconnected-foreground = ${color.fg-alt}
  434. ; Available tokens:
  435. ; %ifname% [wireless+wired]
  436. ; %local_ip% [wireless+wired]
  437. ; %local_ip6% [wireless+wired]
  438. ; %essid% [wireless]
  439. ; %signal% [wireless]
  440. ; %upspeed% [wireless+wired]
  441. ; %downspeed% [wireless+wired]
  442. ; %linkspeed% [wired]
  443. ; Default: (none)
  444. ;label-packetloss = %essid%
  445. ;label-packetloss-foreground = #eefafafa
  446. ramp-signal-0 =
  447. ramp-signal-1 =
  448. ramp-signal-2 =
  449. ramp-signal-3 =
  450. ramp-signal-4 =
  451. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  452. [module/menu]
  453. type = custom/text
  454. content =
  455. content-background = ${color.light-blue}
  456. content-foreground = ${color.fg}
  457. content-padding = 3
  458. click-left = ~/.config/polybar/panels/scripts/launcher.sh --budgie
  459. click-right = ~/.config/polybar/panels/scripts/launcher.sh --budgie
  460. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  461. [module/sysmenu]
  462. type = custom/text
  463. content =
  464. content-background = ${color.bg-alt}
  465. content-foreground = ${color.fg}
  466. content-padding = 3
  467. click-left = ~/.config/polybar/panels/scripts/powermenu.sh --budgie
  468. click-right = ~/.config/polybar/panels/scripts/powermenu.sh --budgie
  469. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  470. [module/style]
  471. type = custom/text
  472. content =
  473. content-background = ${color.bg-alt}
  474. content-foreground = ${color.fg}
  475. content-padding = 2
  476. click-left = ~/.config/polybar/panels/scripts/style-switch.sh --budgie
  477. click-right = ~/.config/polybar/panels/scripts/style-switch.sh --budgie
  478. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  479. [module/sep]
  480. type = custom/text
  481. content = |
  482. content-foreground = ${color.grey}
  483. content-background = ${color.bg-alt}
  484. content-padding = 1
  485. [module/sep2]
  486. type = custom/text
  487. content = |
  488. content-foreground = ${color.bg}
  489. content-background = ${color.bg}
  490. content-padding = 1
  491. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  492. ;; Apps
  493. [module/term]
  494. type = custom/text
  495. content = "%{T3}%{T-}"
  496. content-foreground = ${color.green}
  497. content-background = ${color.bg}
  498. content-padding = 3
  499. click-left = termite &
  500. [module/web]
  501. type = custom/text
  502. content = "%{T3}%{T-}"
  503. content-foreground = ${color.orange}
  504. content-background = ${color.bg}
  505. content-padding = 3
  506. click-left = firefox &
  507. [module/files]
  508. type = custom/text
  509. content = "%{T3}%{T-}"
  510. content-foreground = ${color.blue}
  511. content-background = ${color.bg}
  512. content-padding = 3
  513. click-left = thunar &
  514. [module/settings]
  515. type = custom/text
  516. content = "%{T3}煉%{T-}"
  517. content-foreground = ${color.red}
  518. content-background = ${color.bg}
  519. content-padding = 3
  520. click-left = xfce4-settings &
  521. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_