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.

639 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 = 42
  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 = 1
  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 = 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;4"
  99. font-1 = "icomoon\-feather:size=10;4"
  100. font-2 = "Iosevka Nerd Font:size=20;5"
  101. font-3 = "Noto Sans:size=8;4"
  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 term web files settings
  107. modules-center =
  108. modules-right = style alsa network battery sysmenu date sep2
  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 = #59000000
  241. bg-alt = #1A000000
  242. ;;bg = #072919
  243. fg = #EAEAEA
  244. fg-alt = #9C9C9C
  245. trans = #00000000
  246. white = #FFFFFF
  247. black = #000000
  248. ;; Material Colors
  249. red = #e53935
  250. pink = #d81b60
  251. purple = #8e24aa
  252. deep-purple = #5e35b1
  253. indigo = #3949ab
  254. blue = #1e88e5
  255. light-blue = #039be5
  256. cyan = #00acc1
  257. teal = #00897b
  258. green = #43a047
  259. light-green = #7cb342
  260. lime = #c0ca33
  261. yellow = #fdd835
  262. amber = #ffb300
  263. orange = #fb8c00
  264. deep-orange = #f4511e
  265. brown = #6d4c41
  266. grey = #757575
  267. blue-gray = #546e7a
  268. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  269. ;; ┌────────────────────────────────────────────────────────────────┐
  270. ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▄█░█▀█░█▀▄░█░█░█░░░█▀▀░█▀▀│
  271. ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░█░█░█░█░█░█░█░█░░░█▀▀░▀▀█│
  272. ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀░▀░▀▀▀░▀▀░░▀▀▀░▀▀▀░▀▀▀░▀▀▀│
  273. ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│
  274. ;; └────────────────────────────────────────────────────────────────┘
  275. ;;
  276. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  277. [module/alsa]
  278. type = internal/alsa
  279. ; You can find the different card numbers in `/proc/asound/cards`
  280. ;;master-soundcard = default
  281. ;;speaker-soundcard = default
  282. ;;headphone-soundcard = default
  283. ; Default: Master
  284. ;;master-mixer = Master
  285. ; Optionally define speaker and headphone mixers
  286. ; Default: none
  287. ;;speaker-mixer = Speaker
  288. ; Default: none
  289. ;;headphone-mixer = Headphone
  290. ; Default: 5
  291. ;;interval = 5
  292. ; Available tags:
  293. ; <label-volume> (default)
  294. ; <ramp-volume>
  295. ; <bar-volume>
  296. format-volume = <ramp-volume>
  297. ; Available tags:
  298. ; <label-muted> (default)
  299. ; <ramp-volume>
  300. ; <bar-volume>
  301. ;format-muted = <label-muted>
  302. ; Available tokens:
  303. ; %percentage% (default)
  304. label-volume = %percentage%%
  305. ; Available tokens:
  306. ; %percentage% (default
  307. label-muted =
  308. label-muted-foreground = ${color.fg-alt}
  309. ramp-volume-0 =
  310. ramp-volume-1 =
  311. ramp-volume-2 =
  312. ramp-volume-3 =
  313. ramp-volume-4 =
  314. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  315. [module/battery]
  316. type = internal/battery
  317. full-at = 99
  318. ; $ ls -1 /sys/class/power_supply/
  319. battery = BAT1
  320. adapter = ACAD
  321. poll-interval = 2
  322. time-format = %H:%M
  323. ; Available tags:
  324. ; <label-charging> (default)
  325. ; <bar-capacity>
  326. ; <ramp-capacity>
  327. ; <animation-charging>
  328. format-charging = <animation-charging>
  329. ; Available tags:
  330. ; <label-discharging> (default)
  331. ; <bar-capacity>
  332. ; <ramp-capacity>
  333. ; <animation-discharging>
  334. format-discharging = <ramp-capacity> <label-discharging>
  335. ; Available tags:
  336. ; <label-full> (default)
  337. ; <bar-capacity>
  338. ; <ramp-capacity>
  339. ;format-full = <ramp-capacity> <label-full>
  340. ; Available tokens:
  341. ; %percentage% (default)
  342. ; %time%
  343. ; %consumption% (shows current charge rate in watts)
  344. label-charging = %percentage%%
  345. ; Available tokens:
  346. ; %percentage% (default)
  347. ; %time%
  348. ; %consumption% (shows current discharge rate in watts)
  349. label-discharging = " %percentage%%"
  350. label-discharging-font = 4
  351. ; Available tokens:
  352. ; %percentage% (default)
  353. ;label-full = Fully Charged
  354. label-full =
  355. label-full-foreground = ${color.green}
  356. ramp-capacity-0 =
  357. ramp-capacity-1 =
  358. ramp-capacity-2 =
  359. ramp-capacity-3 =
  360. ramp-capacity-4 =
  361. ramp-capacity-5 =
  362. ramp-capacity-6 =
  363. ramp-capacity-7 =
  364. ramp-capacity-8 =
  365. ramp-capacity-9 =
  366. animation-charging-0 =
  367. animation-charging-1 =
  368. animation-charging-2 =
  369. animation-charging-3 =
  370. animation-charging-4 =
  371. animation-charging-5 =
  372. animation-charging-6 =
  373. animation-charging-7 =
  374. animation-charging-8 =
  375. ; Framerate in milliseconds
  376. animation-charging-framerate = 750
  377. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  378. [module/date]
  379. type = internal/date
  380. interval = 1.0
  381. time = %I:%M %p
  382. ;;time-alt = %B %d, %Y
  383. format = <label>
  384. label = %time%
  385. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  386. [module/network]
  387. type = internal/network
  388. interface = wlan0
  389. interval = 1.0
  390. ;ping-interval = 3
  391. ;;udspeed-minwidth = 5
  392. accumulate-stats = true
  393. unknown-as-up = true
  394. ; Available tags:
  395. ; <label-connected> (default)
  396. ; <ramp-signal>
  397. format-connected = <label-connected>
  398. ; Available tags:
  399. ; <label-disconnected> (default)
  400. format-disconnected = <label-disconnected>
  401. ; Available tags:
  402. ; <label-connected> (default)
  403. ; <label-packetloss>
  404. ; <animation-packetloss>
  405. ;;format-packetloss = <animation-packetloss> <label-connected>
  406. ; Available tokens:
  407. ; %ifname% [wireless+wired]
  408. ; %local_ip% [wireless+wired]
  409. ; %local_ip6% [wireless+wired]
  410. ; %essid% [wireless]
  411. ; %signal% [wireless]
  412. ; %upspeed% [wireless+wired]
  413. ; %downspeed% [wireless+wired]
  414. ; %linkspeed% [wired]
  415. ; Default: %ifname% %local_ip%
  416. label-connected = "%{A1:networkmanager_dmenu &:}%{A}"
  417. ; Available tokens:
  418. ; %ifname% [wireless+wired]
  419. ; Default: (none)
  420. label-disconnected = "%{A1:networkmanager_dmenu &:}%{A}"
  421. label-disconnected-foreground = ${color.fg-alt}
  422. ; Available tokens:
  423. ; %ifname% [wireless+wired]
  424. ; %local_ip% [wireless+wired]
  425. ; %local_ip6% [wireless+wired]
  426. ; %essid% [wireless]
  427. ; %signal% [wireless]
  428. ; %upspeed% [wireless+wired]
  429. ; %downspeed% [wireless+wired]
  430. ; %linkspeed% [wired]
  431. ; Default: (none)
  432. ;label-packetloss = %essid%
  433. ;label-packetloss-foreground = #eefafafa
  434. ramp-signal-0 = 
  435. ramp-signal-1 = 
  436. ramp-signal-2 = 
  437. ramp-signal-3 = 
  438. ramp-signal-4 = 
  439. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  440. [module/sysmenu]
  441. type = custom/text
  442. content =
  443. ;;content-background = ${color.bg}
  444. content-foreground = ${color.fg}
  445. ;;content-padding = 4
  446. click-left = ~/.config/polybar/panels/scripts/powermenu.sh --deepin
  447. click-right = ~/.config/polybar/panels/scripts/powermenu.sh --deepin
  448. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  449. [module/style]
  450. type = custom/text
  451. content =
  452. click-left = ~/.config/polybar/panels/scripts/style-switch.sh --deepin
  453. click-right = ~/.config/polybar/panels/scripts/style-switch.sh --deepin
  454. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  455. [module/sep]
  456. type = custom/text
  457. content = |
  458. content-foreground = ${color.bg}
  459. content-background = ${color.bg}
  460. content-padding = 0
  461. [module/sep2]
  462. type = custom/text
  463. content = |
  464. content-foreground = ${color.bg-alt}
  465. content-background = ${color.bg-alt}
  466. content-padding = 0
  467. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  468. [module/menu]
  469. type = custom/text
  470. content = "%{T3}%{T-}"
  471. content-background = ${color.bg}
  472. content-foreground = ${color.fg}
  473. content-padding = 4
  474. click-left = ~/.config/polybar/panels/scripts/launcher.sh --deepin
  475. click-right = ~/.config/polybar/panels/scripts/launcher.sh --deepin
  476. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  477. ;; Apps
  478. [module/term]
  479. type = custom/text
  480. content = "%{T3}%{T-}"
  481. content-foreground = ${color.blue-gray}
  482. content-background = ${color.bg}
  483. content-padding = 3
  484. click-left = termite &
  485. [module/web]
  486. type = custom/text
  487. content = "%{T3}%{T-}"
  488. content-foreground = ${color.deep-orange}
  489. content-background = ${color.bg}
  490. content-padding = 3
  491. click-left = firefox &
  492. [module/files]
  493. type = custom/text
  494. content = "%{T3}%{T-}"
  495. content-foreground = ${color.cyan}
  496. content-background = ${color.bg}
  497. content-padding = 3
  498. click-left = thunar &
  499. [module/settings]
  500. type = custom/text
  501. content = "%{T3}漣%{T-}"
  502. content-foreground = ${color.light-green}
  503. content-background = ${color.bg}
  504. content-padding = 3
  505. click-left = xfce4-settings &
  506. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_