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.

571 lines
17 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 = 3
  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 = 3
  89. module-margin-right = 3
  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:weight:bold;3"
  99. font-1 = "Iosevka Nerd Font:size=12;3"
  100. ; Modules are added to one of the available blocks
  101. ; modules-left = cpu ram
  102. ; modules-center = xwindow xbacklight
  103. ; modules-right = ipc clock
  104. modules-left = activity
  105. modules-center = date
  106. modules-right = style battery alsa network sysmenu
  107. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  108. ; The separator will be inserted between the output of each module
  109. separator =
  110. ; Opacity value between 0.0 and 1.0 used on fade in/out
  111. dim-value = 1.0
  112. ; Value to be used to set the WM_NAME atom
  113. ; If the value is empty or undefined, the atom value
  114. ; will be created from the following template: polybar-[BAR]_[MONITOR]
  115. ; NOTE: The placeholders are not available for custom values
  116. wm-name =
  117. ; Locale used to localize various module data (e.g. date)
  118. ; Expects a valid libc locale, for example: sv_SE.UTF-8
  119. locale =
  120. ; Position of the system tray window
  121. ; If empty or undefined, tray support will be disabled
  122. ; NOTE: A center aligned tray will cover center aligned modules
  123. ;
  124. ; Available positions:
  125. ; left
  126. ; center
  127. ; right
  128. ; none
  129. tray-position = none
  130. ; If true, the bar will not shift its
  131. ; contents when the tray changes
  132. tray-detached = false
  133. ; Tray icon max size
  134. tray-maxsize = 16
  135. ; Background color for the tray container
  136. ; ARGB color (e.g. #f00, #ff992a, #ddff1023)
  137. ; By default the tray container will use the bar
  138. ; background color.
  139. tray-background = ${color.background}
  140. ; Tray offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
  141. tray-offset-x = 0
  142. tray-offset-y = 0
  143. ; Pad the sides of each tray icon
  144. tray-padding = 0
  145. ; Scale factor for tray clients
  146. tray-scale = 1.0
  147. ; Restack the bar window and put it above the
  148. ; selected window manager's root
  149. ;
  150. ; Fixes the issue where the bar is being drawn
  151. ; on top of fullscreen window's
  152. ;
  153. ; Currently supported WM's:
  154. ; bspwm
  155. ; i3 (requires: `override-redirect = true`)
  156. ;;wm-restack =
  157. ; Set a DPI values used when rendering text
  158. ; This only affects scalable fonts
  159. ; dpi =
  160. ; Enable support for inter-process messaging
  161. ; See the Messaging wiki page for more details.
  162. enable-ipc = true
  163. ; Fallback click handlers that will be called if
  164. ; there's no matching module handler found.
  165. click-left =
  166. click-middle =
  167. click-right =
  168. scroll-up =
  169. scroll-down =
  170. double-click-left =
  171. double-click-middle =
  172. double-click-right =
  173. ; Requires polybar to be built with xcursor support (xcb-util-cursor)
  174. ; Possible values are:
  175. ; - default : The default pointer as before, can also be an empty string (default)
  176. ; - pointer : Typically in the form of a hand
  177. ; - ns-resize : Up and down arrows, can be used to indicate scrolling
  178. cursor-click =
  179. cursor-scroll =
  180. ;; WM Workspace Specific
  181. ; bspwm
  182. ;;scroll-up = bspwm-desknext
  183. ;;scroll-down = bspwm-deskprev
  184. ;;scroll-up = bspc desktop -f prev.local
  185. ;;scroll-down = bspc desktop -f next.local
  186. ;i3
  187. ;;scroll-up = i3wm-wsnext
  188. ;;scroll-down = i3wm-wsprev
  189. ;;scroll-up = i3-msg workspace next_on_output
  190. ;;scroll-down = i3-msg workspace prev_on_output
  191. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  192. ;; Application Settings
  193. [settings]
  194. ; The throttle settings lets the eventloop swallow up til X events
  195. ; if they happen within Y millisecond after first event was received.
  196. ; This is done to prevent flood of update event.
  197. ;
  198. ; For example if 5 modules emit an update event at the same time, we really
  199. ; just care about the last one. But if we wait too long for events to swallow
  200. ; the bar would appear sluggish so we continue if timeout
  201. ; expires or limit is reached.
  202. throttle-output = 5
  203. throttle-output-for = 10
  204. ; Time in milliseconds that the input handler will wait between processing events
  205. ;throttle-input-for = 30
  206. ; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events
  207. screenchange-reload = false
  208. ; Compositing operators
  209. ; @see: https://www.cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t
  210. compositing-background = source
  211. compositing-foreground = over
  212. compositing-overline = over
  213. compositing-underline = over
  214. compositing-border = over
  215. ; Define fallback values used by all module formats
  216. ;format-foreground =
  217. ;format-background =
  218. ;format-underline =
  219. ;format-overline =
  220. ;format-spacing =
  221. ;format-padding =
  222. ;format-margin =
  223. ;format-offset =
  224. ; Enables pseudo-transparency for the bar
  225. ; If set to true the bar can be transparent without a compositor.
  226. pseudo-transparency = false
  227. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  228. ;; ┌────────────────────────────────────────────────────────────┐
  229. ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│
  230. ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│
  231. ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│
  232. ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│
  233. ;; └────────────────────────────────────────────────────────────┘
  234. ;;
  235. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  236. [color]
  237. ;; Active Colors
  238. bg = #33000000
  239. fg = #EAEAEA
  240. fg-alt = #9C9C9C
  241. trans = #00000000
  242. white = #FFFFFF
  243. black = #000000
  244. ;; Material Colors
  245. red = #e53935
  246. pink = #d81b60
  247. purple = #8e24aa
  248. deep-purple = #5e35b1
  249. indigo = #3949ab
  250. blue = #1e88e5
  251. light-blue = #039be5
  252. cyan = #00acc1
  253. teal = #00897b
  254. green = #43a047
  255. light-green = #7cb342
  256. lime = #c0ca33
  257. yellow = #fdd835
  258. amber = #ffb300
  259. orange = #fb8c00
  260. deep-orange = #f4511e
  261. brown = #6d4c41
  262. grey = #757575
  263. blue-gray = #546e7a
  264. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  265. ;; ┌────────────────────────────────────────────────────────────────┐
  266. ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▄█░█▀█░█▀▄░█░█░█░░░█▀▀░█▀▀│
  267. ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░█░█░█░█░█░█░█░█░░░█▀▀░▀▀█│
  268. ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀░▀░▀▀▀░▀▀░░▀▀▀░▀▀▀░▀▀▀░▀▀▀│
  269. ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│
  270. ;; └────────────────────────────────────────────────────────────────┘
  271. ;;
  272. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  273. [module/alsa]
  274. type = internal/alsa
  275. ; You can find the different card numbers in `/proc/asound/cards`
  276. ;;master-soundcard = default
  277. ;;speaker-soundcard = default
  278. ;;headphone-soundcard = default
  279. ; Default: Master
  280. ;;master-mixer = Master
  281. ; Optionally define speaker and headphone mixers
  282. ; Default: none
  283. ;;speaker-mixer = Speaker
  284. ; Default: none
  285. ;;headphone-mixer = Headphone
  286. ; Default: 5
  287. ;;interval = 5
  288. ; Available tags:
  289. ; <label-volume> (default)
  290. ; <ramp-volume>
  291. ; <bar-volume>
  292. format-volume = <ramp-volume>
  293. ; Available tags:
  294. ; <label-muted> (default)
  295. ; <ramp-volume>
  296. ; <bar-volume>
  297. ;format-muted = <label-muted>
  298. ; Available tokens:
  299. ; %percentage% (default)
  300. label-volume = %percentage%%
  301. ; Available tokens:
  302. ; %percentage% (default
  303. label-muted =
  304. label-muted-foreground = ${color.fg-alt}
  305. ramp-volume-0 =
  306. ramp-volume-1 =
  307. ramp-volume-2 =
  308. ramp-volume-3 =
  309. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  310. [module/battery]
  311. type = internal/battery
  312. full-at = 99
  313. ; $ ls -1 /sys/class/power_supply/
  314. battery = BAT1
  315. adapter = ACAD
  316. poll-interval = 2
  317. time-format = %H:%M
  318. ; Available tags:
  319. ; <label-charging> (default)
  320. ; <bar-capacity>
  321. ; <ramp-capacity>
  322. ; <animation-charging>
  323. format-charging = <animation-charging>
  324. ; Available tags:
  325. ; <label-discharging> (default)
  326. ; <bar-capacity>
  327. ; <ramp-capacity>
  328. ; <animation-discharging>
  329. format-discharging = <ramp-capacity>
  330. ; Available tags:
  331. ; <label-full> (default)
  332. ; <bar-capacity>
  333. ; <ramp-capacity>
  334. ;format-full = <ramp-capacity> <label-full>
  335. ; Available tokens:
  336. ; %percentage% (default)
  337. ; %time%
  338. ; %consumption% (shows current charge rate in watts)
  339. label-charging = %percentage%%
  340. ; Available tokens:
  341. ; %percentage% (default)
  342. ; %time%
  343. ; %consumption% (shows current discharge rate in watts)
  344. label-discharging = %percentage%%
  345. ; Available tokens:
  346. ; %percentage% (default)
  347. ;label-full = Fully Charged
  348. label-full =
  349. label-full-foreground = ${color.green}
  350. ramp-capacity-0 =
  351. ramp-capacity-1 =
  352. ramp-capacity-2 =
  353. ramp-capacity-3 =
  354. ramp-capacity-4 =
  355. ramp-capacity-5 =
  356. ramp-capacity-6 =
  357. ramp-capacity-7 =
  358. ramp-capacity-8 =
  359. ramp-capacity-9 =
  360. animation-charging-0 =
  361. animation-charging-1 =
  362. animation-charging-2 =
  363. animation-charging-3 =
  364. animation-charging-4 =
  365. animation-charging-5 =
  366. animation-charging-6 =
  367. ; Framerate in milliseconds
  368. animation-charging-framerate = 750
  369. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  370. [module/date]
  371. type = internal/date
  372. interval = 1.0
  373. time = %a %I:%M %p
  374. time-alt = %B %d, %Y
  375. format = <label>
  376. label = %time%
  377. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  378. [module/network]
  379. type = internal/network
  380. interface = wlan0
  381. interval = 1.0
  382. ;ping-interval = 3
  383. ;;udspeed-minwidth = 5
  384. accumulate-stats = true
  385. unknown-as-up = true
  386. ; Available tags:
  387. ; <label-connected> (default)
  388. ; <ramp-signal>
  389. format-connected = <label-connected>
  390. ; Available tags:
  391. ; <label-disconnected> (default)
  392. format-disconnected = <label-disconnected>
  393. ; Available tags:
  394. ; <label-connected> (default)
  395. ; <label-packetloss>
  396. ; <animation-packetloss>
  397. ;;format-packetloss = <animation-packetloss> <label-connected>
  398. ; Available tokens:
  399. ; %ifname% [wireless+wired]
  400. ; %local_ip% [wireless+wired]
  401. ; %local_ip6% [wireless+wired]
  402. ; %essid% [wireless]
  403. ; %signal% [wireless]
  404. ; %upspeed% [wireless+wired]
  405. ; %downspeed% [wireless+wired]
  406. ; %linkspeed% [wired]
  407. ; Default: %ifname% %local_ip%
  408. label-connected = "%{A1:networkmanager_dmenu &:}直%{A}"
  409. ; Available tokens:
  410. ; %ifname% [wireless+wired]
  411. ; Default: (none)
  412. label-disconnected = "%{A1:networkmanager_dmenu &:}睊%{A}"
  413. label-disconnected-foreground = ${color.fg-alt}
  414. ; Available tokens:
  415. ; %ifname% [wireless+wired]
  416. ; %local_ip% [wireless+wired]
  417. ; %local_ip6% [wireless+wired]
  418. ; %essid% [wireless]
  419. ; %signal% [wireless]
  420. ; %upspeed% [wireless+wired]
  421. ; %downspeed% [wireless+wired]
  422. ; %linkspeed% [wired]
  423. ; Default: (none)
  424. ;label-packetloss = %essid%
  425. ;label-packetloss-foreground = #eefafafa
  426. ramp-signal-0 =
  427. ramp-signal-1 =
  428. ramp-signal-2 =
  429. ramp-signal-3 =
  430. ramp-signal-4 =
  431. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  432. [module/activity]
  433. type = custom/text
  434. content = Activities
  435. ;;content-background = ${color.bg}
  436. content-foreground = ${color.fg}
  437. ;;content-padding = 4
  438. click-left = ~/.config/polybar/panels/scripts/launcher.sh --ugnome
  439. click-right = ~/.config/polybar/panels/scripts/launcher.sh --ugnome
  440. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  441. [module/sysmenu]
  442. type = custom/text
  443. content =
  444. ;;content-background = ${color.bg}
  445. content-foreground = ${color.fg}
  446. ;;content-padding = 4
  447. click-left = ~/.config/polybar/panels/scripts/powermenu.sh --ugnome
  448. click-right = ~/.config/polybar/panels/scripts/powermenu.sh --ugnome
  449. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  450. [module/style]
  451. type = custom/text
  452. content =
  453. click-left = ~/.config/polybar/panels/scripts/style-switch.sh --ugnome
  454. click-right = ~/.config/polybar/panels/scripts/style-switch.sh --ugnome
  455. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_