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.

612 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 = 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 = 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 = #494949
  55. background-1 = #393939
  56. ; Value used for drawing rounded corners
  57. ; Note: This shouldn't be used together with border-size because the border
  58. ; doesn't get rounded
  59. ; Individual top/bottom values can be defined using:
  60. ; radius-{top,bottom}
  61. radius-top = 0.0
  62. radius-bottom = 0.0
  63. ; Under-/overline pixel size and argb color
  64. ; Individual values can be defined using:
  65. ; {overline,underline}-size
  66. ; {overline,underline}-color
  67. ;;overline-size = 0
  68. ;;overline-color = ${color.ac}
  69. ; Values applied to all borders
  70. ; Individual side values can be defined using:
  71. ; border-{left,top,right,bottom}-size
  72. ; border-{left,top,right,bottom}-color
  73. ; The top and bottom borders are added to the bar height, so the effective
  74. ; window height is:
  75. ; height + border-top-size + border-bottom-size
  76. ; Meanwhile the effective window width is defined entirely by the width key and
  77. ; the border is placed withing this area. So you effectively only have the
  78. ; following horizontal space on the bar:
  79. ; width - border-right-size - border-left-size
  80. ;;border-size = 2
  81. ;;border-color = ${color.ac}
  82. ; Number of spaces to add at the beginning/end of the bar
  83. ; Individual side values can be defined using:
  84. ; padding-{left,right}
  85. padding = 3
  86. ; Number of spaces to add before/after each module
  87. ; Individual side values can be defined using:
  88. ; module-margin-{left,right}
  89. module-margin-left = 2
  90. module-margin-right = 2
  91. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  92. ; Fonts are defined using <font-name>;<vertical-offset>
  93. ; Font names are specified using a fontconfig pattern.
  94. ; font-0 = NotoSans-Regular:size=8;2
  95. ; font-1 = MaterialIcons:size=10
  96. ; font-2 = Termsynu:size=8;-1
  97. ; font-3 = FontAwesome:size=10
  98. ; See the Fonts wiki page for more details
  99. font-0 = "Noto Sans:size=9:weight:bold;3"
  100. font-1 = "Iosevka Nerd Font:size=12;3"
  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 = mint term web files settings
  106. modules-center =
  107. modules-right = style alsa network battery sysmenu date
  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 = #000000
  240. fg = #EAEAEA
  241. fg-alt = #9C9C9C
  242. trans = #00000000
  243. white = #FFFFFF
  244. black = #000000
  245. ;; Material Colors
  246. red = #e53935
  247. pink = #d81b60
  248. purple = #8e24aa
  249. deep-purple = #5e35b1
  250. indigo = #3949ab
  251. blue = #1e88e5
  252. light-blue = #039be5
  253. cyan = #00acc1
  254. teal = #00897b
  255. green = #43a047
  256. light-green = #7cb342
  257. lime = #c0ca33
  258. yellow = #fdd835
  259. amber = #ffb300
  260. orange = #fb8c00
  261. deep-orange = #f4511e
  262. brown = #6d4c41
  263. grey = #757575
  264. blue-gray = #546e7a
  265. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  266. ;; ┌────────────────────────────────────────────────────────────────┐
  267. ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▄█░█▀█░█▀▄░█░█░█░░░█▀▀░█▀▀│
  268. ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░█░█░█░█░█░█░█░█░░░█▀▀░▀▀█│
  269. ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀░▀░▀▀▀░▀▀░░▀▀▀░▀▀▀░▀▀▀░▀▀▀│
  270. ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│
  271. ;; └────────────────────────────────────────────────────────────────┘
  272. ;;
  273. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  274. [module/alsa]
  275. type = internal/alsa
  276. ; You can find the different card numbers in `/proc/asound/cards`
  277. ;;master-soundcard = default
  278. ;;speaker-soundcard = default
  279. ;;headphone-soundcard = default
  280. ; Default: Master
  281. ;;master-mixer = Master
  282. ; Optionally define speaker and headphone mixers
  283. ; Default: none
  284. ;;speaker-mixer = Speaker
  285. ; Default: none
  286. ;;headphone-mixer = Headphone
  287. ; Default: 5
  288. ;;interval = 5
  289. ; Available tags:
  290. ; <label-volume> (default)
  291. ; <ramp-volume>
  292. ; <bar-volume>
  293. format-volume = <ramp-volume>
  294. ; Available tags:
  295. ; <label-muted> (default)
  296. ; <ramp-volume>
  297. ; <bar-volume>
  298. ;format-muted = <label-muted>
  299. ; Available tokens:
  300. ; %percentage% (default)
  301. label-volume = %percentage%%
  302. ; Available tokens:
  303. ; %percentage% (default
  304. label-muted =
  305. label-muted-foreground = ${color.fg-alt}
  306. ramp-volume-0 =
  307. ramp-volume-1 =
  308. ramp-volume-2 =
  309. ramp-volume-3 =
  310. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  311. [module/battery]
  312. type = internal/battery
  313. full-at = 99
  314. ; $ ls -1 /sys/class/power_supply/
  315. battery = BAT1
  316. adapter = ACAD
  317. poll-interval = 2
  318. time-format = %H:%M
  319. ; Available tags:
  320. ; <label-charging> (default)
  321. ; <bar-capacity>
  322. ; <ramp-capacity>
  323. ; <animation-charging>
  324. format-charging = <animation-charging>
  325. ; Available tags:
  326. ; <label-discharging> (default)
  327. ; <bar-capacity>
  328. ; <ramp-capacity>
  329. ; <animation-discharging>
  330. format-discharging = <ramp-capacity>
  331. ; Available tags:
  332. ; <label-full> (default)
  333. ; <bar-capacity>
  334. ; <ramp-capacity>
  335. ;format-full = <ramp-capacity> <label-full>
  336. ; Available tokens:
  337. ; %percentage% (default)
  338. ; %time%
  339. ; %consumption% (shows current charge rate in watts)
  340. label-charging = %percentage%%
  341. ; Available tokens:
  342. ; %percentage% (default)
  343. ; %time%
  344. ; %consumption% (shows current discharge rate in watts)
  345. label-discharging = %percentage%%
  346. ; Available tokens:
  347. ; %percentage% (default)
  348. ;label-full = Fully Charged
  349. label-full =
  350. label-full-foreground = ${color.green}
  351. ramp-capacity-0 =
  352. ramp-capacity-1 =
  353. ramp-capacity-2 =
  354. ramp-capacity-3 =
  355. ramp-capacity-4 =
  356. ramp-capacity-5 =
  357. ramp-capacity-6 =
  358. ramp-capacity-7 =
  359. ramp-capacity-8 =
  360. ramp-capacity-9 =
  361. animation-charging-0 =
  362. animation-charging-1 =
  363. animation-charging-2 =
  364. animation-charging-3 =
  365. animation-charging-4 =
  366. animation-charging-5 =
  367. animation-charging-6 =
  368. ; Framerate in milliseconds
  369. animation-charging-framerate = 750
  370. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  371. [module/date]
  372. type = internal/date
  373. interval = 1.0
  374. time = %a %I:%M %p
  375. time-alt = %B %d, %Y
  376. format = <label>
  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. ; Available tags:
  392. ; <label-disconnected> (default)
  393. format-disconnected = <label-disconnected>
  394. ; Available tags:
  395. ; <label-connected> (default)
  396. ; <label-packetloss>
  397. ; <animation-packetloss>
  398. ;;format-packetloss = <animation-packetloss> <label-connected>
  399. ; Available tokens:
  400. ; %ifname% [wireless+wired]
  401. ; %local_ip% [wireless+wired]
  402. ; %local_ip6% [wireless+wired]
  403. ; %essid% [wireless]
  404. ; %signal% [wireless]
  405. ; %upspeed% [wireless+wired]
  406. ; %downspeed% [wireless+wired]
  407. ; %linkspeed% [wired]
  408. ; Default: %ifname% %local_ip%
  409. label-connected = "%{A1:networkmanager_dmenu &:}直%{A}"
  410. ; Available tokens:
  411. ; %ifname% [wireless+wired]
  412. ; Default: (none)
  413. label-disconnected = "%{A1:networkmanager_dmenu &:}睊%{A}"
  414. label-disconnected-foreground = ${color.fg-alt}
  415. ; Available tokens:
  416. ; %ifname% [wireless+wired]
  417. ; %local_ip% [wireless+wired]
  418. ; %local_ip6% [wireless+wired]
  419. ; %essid% [wireless]
  420. ; %signal% [wireless]
  421. ; %upspeed% [wireless+wired]
  422. ; %downspeed% [wireless+wired]
  423. ; %linkspeed% [wired]
  424. ; Default: (none)
  425. ;label-packetloss = %essid%
  426. ;label-packetloss-foreground = #eefafafa
  427. ramp-signal-0 =
  428. ramp-signal-1 =
  429. ramp-signal-2 =
  430. ramp-signal-3 =
  431. ramp-signal-4 =
  432. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  433. [module/mint]
  434. type = custom/text
  435. ;
  436. content =  Menu
  437. ;;content-background = ${color.bg}
  438. content-foreground = ${color.fg}
  439. ;;content-padding = 4
  440. click-left = ~/.config/polybar/panels/scripts/launcher.sh --mint
  441. click-right = ~/.config/polybar/panels/scripts/launcher.sh --mint
  442. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  443. [module/sysmenu]
  444. type = custom/text
  445. content =
  446. ;;content-background = ${color.bg}
  447. content-foreground = ${color.fg}
  448. ;;content-padding = 4
  449. click-left = ~/.config/polybar/panels/scripts/powermenu.sh --mint
  450. click-right = ~/.config/polybar/panels/scripts/powermenu.sh --mint
  451. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  452. [module/style]
  453. type = custom/text
  454. content =
  455. click-left = ~/.config/polybar/panels/scripts/style-switch.sh --mint
  456. click-right = ~/.config/polybar/panels/scripts/style-switch.sh --mint
  457. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  458. ;; Apps
  459. [module/term]
  460. type = custom/text
  461. content = "%{T3}%{T-}"
  462. content-foreground = ${color.lime}
  463. content-padding = 0
  464. click-left = termite &
  465. [module/web]
  466. type = custom/text
  467. content = "%{T3}%{T-}"
  468. content-foreground = ${color.orange}
  469. content-padding = 0
  470. click-left = firefox &
  471. [module/files]
  472. type = custom/text
  473. content = "%{T3}%{T-}"
  474. content-foreground = ${color.cyan}
  475. content-padding = 0
  476. click-left = thunar &
  477. [module/settings]
  478. type = custom/text
  479. content = "%{T3}漣%{T-}"
  480. content-foreground = ${color.yellow}
  481. content-padding = 0
  482. click-left = xfce4-settings &
  483. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_