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.

630 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 = true
  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 = 36
  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 = 8
  80. border-color = ${color.bg}
  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 = "Material:size=12;3"
  100. font-2 = "Iosevka Nerd Font:size=20;5"
  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 sep term web files settings
  106. modules-center =
  107. modules-right = date style battery alsa network 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 = #00000000
  240. mf = #2F2F2F
  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.mf}
  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.mf}
  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.mf}
  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> <label-discharging>
  338. format-discharging-background = ${color.mf}
  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.mf}
  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. animation-charging-0 =
  366. ; Framerate in milliseconds
  367. animation-charging-framerate = 750
  368. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  369. [module/date]
  370. type = internal/date
  371. interval = 1.0
  372. time = %I:%M
  373. ;time-alt = %B %d, %Y
  374. format = <label>
  375. format-background = ${color.mf}
  376. format-padding = 3
  377. label = %time%
  378. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  379. [module/network]
  380. type = internal/network
  381. interface = wlan0
  382. interval = 1.0
  383. ;ping-interval = 3
  384. ;;udspeed-minwidth = 5
  385. accumulate-stats = true
  386. unknown-as-up = true
  387. ; Available tags:
  388. ; <label-connected> (default)
  389. ; <ramp-signal>
  390. format-connected = <label-connected>
  391. format-connected-background = ${color.mf}
  392. format-connected-padding = 2
  393. ; Available tags:
  394. ; <label-disconnected> (default)
  395. format-disconnected = <label-disconnected>
  396. format-disconnected-background = ${color.mf}
  397. format-disconnected-padding = 2
  398. ; Available tags:
  399. ; <label-connected> (default)
  400. ; <label-packetloss>
  401. ; <animation-packetloss>
  402. ;;format-packetloss = <animation-packetloss> <label-connected>
  403. ; Available tokens:
  404. ; %ifname% [wireless+wired]
  405. ; %local_ip% [wireless+wired]
  406. ; %local_ip6% [wireless+wired]
  407. ; %essid% [wireless]
  408. ; %signal% [wireless]
  409. ; %upspeed% [wireless+wired]
  410. ; %downspeed% [wireless+wired]
  411. ; %linkspeed% [wired]
  412. ; Default: %ifname% %local_ip%
  413. label-connected = "%{A1:networkmanager_dmenu &:}%{A}"
  414. ; Available tokens:
  415. ; %ifname% [wireless+wired]
  416. ; Default: (none)
  417. label-disconnected = "%{A1:networkmanager_dmenu &:}%{A}"
  418. label-disconnected-foreground = ${color.fg-alt}
  419. ; Available tokens:
  420. ; %ifname% [wireless+wired]
  421. ; %local_ip% [wireless+wired]
  422. ; %local_ip6% [wireless+wired]
  423. ; %essid% [wireless]
  424. ; %signal% [wireless]
  425. ; %upspeed% [wireless+wired]
  426. ; %downspeed% [wireless+wired]
  427. ; %linkspeed% [wired]
  428. ; Default: (none)
  429. ;label-packetloss = %essid%
  430. ;label-packetloss-foreground = #eefafafa
  431. ramp-signal-0 =
  432. ramp-signal-1 =
  433. ramp-signal-2 =
  434. ramp-signal-3 =
  435. ramp-signal-4 =
  436. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  437. [module/menu]
  438. type = custom/text
  439. content =
  440. content-background = ${color.mf}
  441. content-foreground = ${color.fg}
  442. content-padding = 3
  443. click-left = ~/.config/polybar/panels/scripts/launcher.sh --liri
  444. click-right = ~/.config/polybar/panels/scripts/launcher.sh --liri
  445. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  446. [module/sysmenu]
  447. type = custom/text
  448. content =
  449. content-background = ${color.mf}
  450. content-foreground = ${color.fg}
  451. content-padding = 3
  452. click-left = ~/.config/polybar/panels/scripts/powermenu.sh --liri
  453. click-right = ~/.config/polybar/panels/scripts/powermenu.sh --liri
  454. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  455. [module/style]
  456. type = custom/text
  457. content =
  458. content-background = ${color.mf}
  459. content-foreground = ${color.fg}
  460. content-padding = 2
  461. click-left = ~/.config/polybar/panels/scripts/style-switch.sh --liri
  462. click-right = ~/.config/polybar/panels/scripts/style-switch.sh --liri
  463. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  464. [module/sep]
  465. type = custom/text
  466. content = |
  467. content-foreground = ${color.bg}
  468. content-background = ${color.bg}
  469. content-padding = 2
  470. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  471. ;; Apps
  472. [module/term]
  473. type = custom/text
  474. content = "%{T3}%{T-}"
  475. content-background = ${color.bg}
  476. content-padding = 4
  477. click-left = termite &
  478. [module/web]
  479. type = custom/text
  480. content = "%{T3}%{T-}"
  481. content-background = ${color.bg}
  482. content-padding = 4
  483. click-left = firefox &
  484. [module/files]
  485. type = custom/text
  486. content = "%{T3}ﱮ%{T-}"
  487. content-background = ${color.bg}
  488. content-padding = 4
  489. click-left = thunar &
  490. [module/settings]
  491. type = custom/text
  492. content = "%{T3}%{T-}"
  493. content-background = ${color.bg}
  494. content-padding = 4
  495. click-left = xfce4-settings &
  496. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_