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.

616 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-bottom-size = 1
  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 = 2
  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 = 2
  89. module-margin-right = 2
  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 = menu
  105. modules-center =
  106. modules-right = style battery alsa network date workspaces name 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 = #494949
  239. bg-alt = #333333
  240. fg-ac = #536579
  241. fg = #EAEAEA
  242. fg-alt = #9C9C9C
  243. ac = #000000
  244. trans = #00000000
  245. white = #FFFFFF
  246. black = #000000
  247. ;; Material Colors
  248. red = #e53935
  249. pink = #d81b60
  250. purple = #8e24aa
  251. deep-purple = #5e35b1
  252. indigo = #3949ab
  253. blue = #1e88e5
  254. light-blue = #039be5
  255. cyan = #00acc1
  256. teal = #00897b
  257. green = #43a047
  258. light-green = #7cb342
  259. lime = #c0ca33
  260. yellow = #fdd835
  261. amber = #ffb300
  262. orange = #fb8c00
  263. deep-orange = #f4511e
  264. brown = #6d4c41
  265. grey = #757575
  266. blue-gray = #546e7a
  267. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  268. ;; ┌────────────────────────────────────────────────────────────────┐
  269. ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▄█░█▀█░█▀▄░█░█░█░░░█▀▀░█▀▀│
  270. ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░█░█░█░█░█░█░█░█░░░█▀▀░▀▀█│
  271. ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀░▀░▀▀▀░▀▀░░▀▀▀░▀▀▀░▀▀▀░▀▀▀│
  272. ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│
  273. ;; └────────────────────────────────────────────────────────────────┘
  274. ;;
  275. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  276. [module/alsa]
  277. type = internal/alsa
  278. ; You can find the different card numbers in `/proc/asound/cards`
  279. ;;master-soundcard = default
  280. ;;speaker-soundcard = default
  281. ;;headphone-soundcard = default
  282. ; Default: Master
  283. ;;master-mixer = Master
  284. ; Optionally define speaker and headphone mixers
  285. ; Default: none
  286. ;;speaker-mixer = Speaker
  287. ; Default: none
  288. ;;headphone-mixer = Headphone
  289. ; Default: 5
  290. ;;interval = 5
  291. ; Available tags:
  292. ; <label-volume> (default)
  293. ; <ramp-volume>
  294. ; <bar-volume>
  295. format-volume = <ramp-volume>
  296. ; Available tags:
  297. ; <label-muted> (default)
  298. ; <ramp-volume>
  299. ; <bar-volume>
  300. ;format-muted = <label-muted>
  301. ; Available tokens:
  302. ; %percentage% (default)
  303. label-volume = %percentage%%
  304. ; Available tokens:
  305. ; %percentage% (default
  306. label-muted =
  307. label-muted-foreground = ${color.fg-alt}
  308. ramp-volume-0 =
  309. ramp-volume-1 =
  310. ramp-volume-2 =
  311. ramp-volume-3 =
  312. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  313. [module/battery]
  314. type = internal/battery
  315. full-at = 99
  316. ; $ ls -1 /sys/class/power_supply/
  317. battery = BAT1
  318. adapter = ACAD
  319. poll-interval = 2
  320. time-format = %H:%M
  321. ; Available tags:
  322. ; <label-charging> (default)
  323. ; <bar-capacity>
  324. ; <ramp-capacity>
  325. ; <animation-charging>
  326. format-charging = <animation-charging>
  327. ; Available tags:
  328. ; <label-discharging> (default)
  329. ; <bar-capacity>
  330. ; <ramp-capacity>
  331. ; <animation-discharging>
  332. format-discharging = <ramp-capacity>
  333. ; Available tags:
  334. ; <label-full> (default)
  335. ; <bar-capacity>
  336. ; <ramp-capacity>
  337. ;format-full = <ramp-capacity> <label-full>
  338. ; Available tokens:
  339. ; %percentage% (default)
  340. ; %time%
  341. ; %consumption% (shows current charge rate in watts)
  342. label-charging = %percentage%%
  343. ; Available tokens:
  344. ; %percentage% (default)
  345. ; %time%
  346. ; %consumption% (shows current discharge rate in watts)
  347. label-discharging = %percentage%%
  348. ; Available tokens:
  349. ; %percentage% (default)
  350. ;label-full = Fully Charged
  351. label-full =
  352. label-full-foreground = ${color.green}
  353. ramp-capacity-0 =
  354. ramp-capacity-1 =
  355. ramp-capacity-2 =
  356. ramp-capacity-3 =
  357. ramp-capacity-4 =
  358. animation-charging-0 =
  359. animation-charging-1 =
  360. animation-charging-2 =
  361. animation-charging-3 =
  362. animation-charging-4 =
  363. ; Framerate in milliseconds
  364. animation-charging-framerate = 750
  365. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  366. [module/date]
  367. type = internal/date
  368. interval = 1.0
  369. time = %a, %d %B %I:%M %p
  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/workspaces]
  428. type = internal/xworkspaces
  429. pin-workspaces = false
  430. enable-click = true
  431. enable-scroll = true
  432. format = <label-state>
  433. format-background = ${color.bg}
  434. label-active =
  435. label-urgent =
  436. label-occupied =
  437. label-empty =
  438. icon-default =
  439. label-empty-padding = 1
  440. label-active-padding = 1
  441. label-urgent-padding = 1
  442. label-occupied-padding = 1
  443. label-empty-foreground = ${color.bg-alt}
  444. label-active-foreground = ${color.fg-ac}
  445. label-urgent-foreground = ${color.red}
  446. label-occupied-foreground = ${color.bg-alt}
  447. label-empty-background = ${color.bg-alt}
  448. label-active-background = ${color.fg-ac}
  449. label-urgent-background = ${color.red}
  450. label-occupied-background = ${color.bg-alt}
  451. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  452. [module/menu]
  453. type = custom/text
  454. content =
  455. ;;content-background = ${color.bg}
  456. content-foreground = ${color.blue}
  457. ;;content-padding = 4
  458. click-left = ~/.config/polybar/panels/scripts/launcher.sh --xubuntu
  459. click-right = ~/.config/polybar/panels/scripts/launcher.sh --xubuntu
  460. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  461. [module/sysmenu]
  462. type = custom/text
  463. content =
  464. ;;content-background = ${color.bg}
  465. content-foreground = ${color.fg}
  466. ;;content-padding = 4
  467. click-left = ~/.config/polybar/panels/scripts/powermenu.sh --xubuntu
  468. click-right = ~/.config/polybar/panels/scripts/powermenu.sh --xubuntu
  469. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  470. [module/name]
  471. type = custom/text
  472. content = Aditya
  473. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  474. [module/style]
  475. type = custom/text
  476. content =
  477. click-left = ~/.config/polybar/panels/scripts/style-switch.sh --xubuntu
  478. click-right = ~/.config/polybar/panels/scripts/style-switch.sh --xubuntu
  479. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  480. [module/title]
  481. type = internal/xwindow
  482. format = <label>
  483. label = %title%
  484. label-maxlen = 20
  485. label-empty = Desktop
  486. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_