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.

577 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. background-0 = #59574E
  56. background-1 = #42403C
  57. ; Value used for drawing rounded corners
  58. ; Note: This shouldn't be used together with border-size because the border
  59. ; doesn't get rounded
  60. ; Individual top/bottom values can be defined using:
  61. ; radius-{top,bottom}
  62. radius-top = 0.0
  63. radius-bottom = 0.0
  64. ; Under-/overline pixel size and argb color
  65. ; Individual values can be defined using:
  66. ; {overline,underline}-size
  67. ; {overline,underline}-color
  68. ;;overline-size = 0
  69. ;;overline-color = ${color.ac}
  70. ; Values applied to all borders
  71. ; Individual side values can be defined using:
  72. ; border-{left,top,right,bottom}-size
  73. ; border-{left,top,right,bottom}-color
  74. ; The top and bottom borders are added to the bar height, so the effective
  75. ; window height is:
  76. ; height + border-top-size + border-bottom-size
  77. ; Meanwhile the effective window width is defined entirely by the width key and
  78. ; the border is placed withing this area. So you effectively only have the
  79. ; following horizontal space on the bar:
  80. ; width - border-right-size - border-left-size
  81. ;;border-size = 2
  82. ;;border-color = ${color.ac}
  83. ; Number of spaces to add at the beginning/end of the bar
  84. ; Individual side values can be defined using:
  85. ; padding-{left,right}
  86. padding = 2
  87. ; Number of spaces to add before/after each module
  88. ; Individual side values can be defined using:
  89. ; module-margin-{left,right}
  90. module-margin-left = 2
  91. module-margin-right = 2
  92. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  93. ; Fonts are defined using <font-name>;<vertical-offset>
  94. ; Font names are specified using a fontconfig pattern.
  95. ; font-0 = NotoSans-Regular:size=8;2
  96. ; font-1 = MaterialIcons:size=10
  97. ; font-2 = Termsynu:size=8;-1
  98. ; font-3 = FontAwesome:size=10
  99. ; See the Fonts wiki page for more details
  100. font-0 = "Noto Sans:size=9:weight:bold;3"
  101. font-1 = "Iosevka Nerd Font:size=12;3"
  102. ; Modules are added to one of the available blocks
  103. ; modules-left = cpu ram
  104. ; modules-center = xwindow xbacklight
  105. ; modules-right = ipc clock
  106. modules-left = menu title
  107. modules-center =
  108. modules-right = style network battery alsa date sysmenu
  109. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  110. ; The separator will be inserted between the output of each module
  111. separator =
  112. ; Opacity value between 0.0 and 1.0 used on fade in/out
  113. dim-value = 1.0
  114. ; Value to be used to set the WM_NAME atom
  115. ; If the value is empty or undefined, the atom value
  116. ; will be created from the following template: polybar-[BAR]_[MONITOR]
  117. ; NOTE: The placeholders are not available for custom values
  118. wm-name =
  119. ; Locale used to localize various module data (e.g. date)
  120. ; Expects a valid libc locale, for example: sv_SE.UTF-8
  121. locale =
  122. ; Position of the system tray window
  123. ; If empty or undefined, tray support will be disabled
  124. ; NOTE: A center aligned tray will cover center aligned modules
  125. ;
  126. ; Available positions:
  127. ; left
  128. ; center
  129. ; right
  130. ; none
  131. tray-position = none
  132. ; If true, the bar will not shift its
  133. ; contents when the tray changes
  134. tray-detached = false
  135. ; Tray icon max size
  136. tray-maxsize = 16
  137. ; Background color for the tray container
  138. ; ARGB color (e.g. #f00, #ff992a, #ddff1023)
  139. ; By default the tray container will use the bar
  140. ; background color.
  141. tray-background = ${color.background}
  142. ; Tray offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
  143. tray-offset-x = 0
  144. tray-offset-y = 0
  145. ; Pad the sides of each tray icon
  146. tray-padding = 0
  147. ; Scale factor for tray clients
  148. tray-scale = 1.0
  149. ; Restack the bar window and put it above the
  150. ; selected window manager's root
  151. ;
  152. ; Fixes the issue where the bar is being drawn
  153. ; on top of fullscreen window's
  154. ;
  155. ; Currently supported WM's:
  156. ; bspwm
  157. ; i3 (requires: `override-redirect = true`)
  158. ;;wm-restack =
  159. ; Set a DPI values used when rendering text
  160. ; This only affects scalable fonts
  161. ; dpi =
  162. ; Enable support for inter-process messaging
  163. ; See the Messaging wiki page for more details.
  164. enable-ipc = true
  165. ; Fallback click handlers that will be called if
  166. ; there's no matching module handler found.
  167. click-left =
  168. click-middle =
  169. click-right =
  170. scroll-up =
  171. scroll-down =
  172. double-click-left =
  173. double-click-middle =
  174. double-click-right =
  175. ; Requires polybar to be built with xcursor support (xcb-util-cursor)
  176. ; Possible values are:
  177. ; - default : The default pointer as before, can also be an empty string (default)
  178. ; - pointer : Typically in the form of a hand
  179. ; - ns-resize : Up and down arrows, can be used to indicate scrolling
  180. cursor-click =
  181. cursor-scroll =
  182. ;; WM Workspace Specific
  183. ; bspwm
  184. ;;scroll-up = bspwm-desknext
  185. ;;scroll-down = bspwm-deskprev
  186. ;;scroll-up = bspc desktop -f prev.local
  187. ;;scroll-down = bspc desktop -f next.local
  188. ;i3
  189. ;;scroll-up = i3wm-wsnext
  190. ;;scroll-down = i3wm-wsprev
  191. ;;scroll-up = i3-msg workspace next_on_output
  192. ;;scroll-down = i3-msg workspace prev_on_output
  193. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  194. ;; Application Settings
  195. [settings]
  196. ; The throttle settings lets the eventloop swallow up til X events
  197. ; if they happen within Y millisecond after first event was received.
  198. ; This is done to prevent flood of update event.
  199. ;
  200. ; For example if 5 modules emit an update event at the same time, we really
  201. ; just care about the last one. But if we wait too long for events to swallow
  202. ; the bar would appear sluggish so we continue if timeout
  203. ; expires or limit is reached.
  204. throttle-output = 5
  205. throttle-output-for = 10
  206. ; Time in milliseconds that the input handler will wait between processing events
  207. ;throttle-input-for = 30
  208. ; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events
  209. screenchange-reload = false
  210. ; Compositing operators
  211. ; @see: https://www.cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t
  212. compositing-background = source
  213. compositing-foreground = over
  214. compositing-overline = over
  215. compositing-underline = over
  216. compositing-border = over
  217. ; Define fallback values used by all module formats
  218. ;format-foreground =
  219. ;format-background =
  220. ;format-underline =
  221. ;format-overline =
  222. ;format-spacing =
  223. ;format-padding =
  224. ;format-margin =
  225. ;format-offset =
  226. ; Enables pseudo-transparency for the bar
  227. ; If set to true the bar can be transparent without a compositor.
  228. pseudo-transparency = false
  229. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  230. ;; ┌────────────────────────────────────────────────────────────┐
  231. ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│
  232. ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│
  233. ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│
  234. ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│
  235. ;; └────────────────────────────────────────────────────────────┘
  236. ;;
  237. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  238. [color]
  239. ;; Active Colors
  240. bg = #33000000
  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. ; Available tags:
  296. ; <label-muted> (default)
  297. ; <ramp-volume>
  298. ; <bar-volume>
  299. ;format-muted = <label-muted>
  300. ; Available tokens:
  301. ; %percentage% (default)
  302. label-volume = %percentage%%
  303. ; Available tokens:
  304. ; %percentage% (default
  305. label-muted =
  306. label-muted-foreground = ${color.fg-alt}
  307. ramp-volume-0 =
  308. ramp-volume-1 =
  309. ramp-volume-2 =
  310. ramp-volume-3 =
  311. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  312. [module/battery]
  313. type = internal/battery
  314. full-at = 99
  315. ; $ ls -1 /sys/class/power_supply/
  316. battery = BAT1
  317. adapter = ACAD
  318. poll-interval = 2
  319. time-format = %H:%M
  320. ; Available tags:
  321. ; <label-charging> (default)
  322. ; <bar-capacity>
  323. ; <ramp-capacity>
  324. ; <animation-charging>
  325. format-charging = <animation-charging>
  326. ; Available tags:
  327. ; <label-discharging> (default)
  328. ; <bar-capacity>
  329. ; <ramp-capacity>
  330. ; <animation-discharging>
  331. format-discharging = <ramp-capacity>
  332. ; Available tags:
  333. ; <label-full> (default)
  334. ; <bar-capacity>
  335. ; <ramp-capacity>
  336. ;format-full = <ramp-capacity> <label-full>
  337. ; Available tokens:
  338. ; %percentage% (default)
  339. ; %time%
  340. ; %consumption% (shows current charge rate in watts)
  341. label-charging = %percentage%%
  342. ; Available tokens:
  343. ; %percentage% (default)
  344. ; %time%
  345. ; %consumption% (shows current discharge rate in watts)
  346. label-discharging = %percentage%%
  347. ; Available tokens:
  348. ; %percentage% (default)
  349. ;label-full = Fully Charged
  350. label-full =
  351. label-full-foreground = ${color.green}
  352. ramp-capacity-0 =
  353. ramp-capacity-1 =
  354. ramp-capacity-2 =
  355. ramp-capacity-3 =
  356. ramp-capacity-4 =
  357. animation-charging-0 =
  358. animation-charging-1 =
  359. animation-charging-2 =
  360. animation-charging-3 =
  361. animation-charging-4 =
  362. ; Framerate in milliseconds
  363. animation-charging-framerate = 750
  364. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  365. [module/date]
  366. type = internal/date
  367. interval = 1.0
  368. time = %I:%M %p
  369. ;time-alt = %B %d, %Y
  370. format = <label>
  371. label = %time%
  372. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  373. [module/network]
  374. type = internal/network
  375. interface = wlan0
  376. interval = 1.0
  377. ;ping-interval = 3
  378. ;;udspeed-minwidth = 5
  379. accumulate-stats = true
  380. unknown-as-up = true
  381. ; Available tags:
  382. ; <label-connected> (default)
  383. ; <ramp-signal>
  384. format-connected = <label-connected>
  385. ; Available tags:
  386. ; <label-disconnected> (default)
  387. format-disconnected = <label-disconnected>
  388. ; Available tags:
  389. ; <label-connected> (default)
  390. ; <label-packetloss>
  391. ; <animation-packetloss>
  392. ;;format-packetloss = <animation-packetloss> <label-connected>
  393. ; Available tokens:
  394. ; %ifname% [wireless+wired]
  395. ; %local_ip% [wireless+wired]
  396. ; %local_ip6% [wireless+wired]
  397. ; %essid% [wireless]
  398. ; %signal% [wireless]
  399. ; %upspeed% [wireless+wired]
  400. ; %downspeed% [wireless+wired]
  401. ; %linkspeed% [wired]
  402. ; Default: %ifname% %local_ip%
  403. label-connected = "%{A1:networkmanager_dmenu &:}直%{A}"
  404. ; Available tokens:
  405. ; %ifname% [wireless+wired]
  406. ; Default: (none)
  407. label-disconnected = "%{A1:networkmanager_dmenu &:}睊%{A}"
  408. label-disconnected-foreground = ${color.fg-alt}
  409. ; Available tokens:
  410. ; %ifname% [wireless+wired]
  411. ; %local_ip% [wireless+wired]
  412. ; %local_ip6% [wireless+wired]
  413. ; %essid% [wireless]
  414. ; %signal% [wireless]
  415. ; %upspeed% [wireless+wired]
  416. ; %downspeed% [wireless+wired]
  417. ; %linkspeed% [wired]
  418. ; Default: (none)
  419. ;label-packetloss = %essid%
  420. ;label-packetloss-foreground = #eefafafa
  421. ramp-signal-0 =
  422. ramp-signal-1 =
  423. ramp-signal-2 =
  424. ramp-signal-3 =
  425. ramp-signal-4 =
  426. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  427. [module/menu]
  428. type = custom/text
  429. content =
  430. ;;content-background = ${color.bg}
  431. content-foreground = ${color.fg}
  432. ;;content-padding = 4
  433. click-left = ~/.config/polybar/panels/scripts/launcher.sh --unity
  434. click-right = ~/.config/polybar/panels/scripts/launcher.sh --unity
  435. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  436. [module/sysmenu]
  437. type = custom/text
  438. content =
  439. ;;content-background = ${color.bg}
  440. content-foreground = ${color.fg}
  441. ;;content-padding = 4
  442. click-left = ~/.config/polybar/panels/scripts/powermenu.sh --unity
  443. click-right = ~/.config/polybar/panels/scripts/powermenu.sh --unity
  444. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  445. [module/style]
  446. type = custom/text
  447. content =
  448. click-left = ~/.config/polybar/panels/scripts/style-switch.sh --unity
  449. click-right = ~/.config/polybar/panels/scripts/style-switch.sh --unity
  450. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  451. [module/title]
  452. type = internal/xwindow
  453. format = <label>
  454. label = %title%
  455. label-maxlen = 20
  456. label-empty = Desktop
  457. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_