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.

580 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 = 34
  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 = 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=10;2"
  99. font-1 = "icomoon\-feather:size=13;5"
  100. font-2 = "Iosevka Nerd Font:size=20;5"
  101. font-3 = "Iosevka Nerd Font:size=12;4"
  102. font-4 = "Noto Sans:size=16;4"
  103. font-5 = "Noto Sans:size=8;3"
  104. ; Modules are added to one of the available blocks
  105. ; modules-left = cpu ram
  106. ; modules-center = xwindow xbacklight
  107. ; modules-right = ipc clock
  108. modules-left = kde
  109. modules-center =
  110. modules-right = battery alsa network sysmenu date style
  111. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  112. ; The separator will be inserted between the output of each module
  113. separator =
  114. ; Opacity value between 0.0 and 1.0 used on fade in/out
  115. dim-value = 1.0
  116. ; Value to be used to set the WM_NAME atom
  117. ; If the value is empty or undefined, the atom value
  118. ; will be created from the following template: polybar-[BAR]_[MONITOR]
  119. ; NOTE: The placeholders are not available for custom values
  120. wm-name =
  121. ; Locale used to localize various module data (e.g. date)
  122. ; Expects a valid libc locale, for example: sv_SE.UTF-8
  123. locale =
  124. ; Position of the system tray window
  125. ; If empty or undefined, tray support will be disabled
  126. ; NOTE: A center aligned tray will cover center aligned modules
  127. ;
  128. ; Available positions:
  129. ; left
  130. ; center
  131. ; right
  132. ; none
  133. tray-position = none
  134. ; If true, the bar will not shift its
  135. ; contents when the tray changes
  136. tray-detached = false
  137. ; Tray icon max size
  138. tray-maxsize = 16
  139. ; Background color for the tray container
  140. ; ARGB color (e.g. #f00, #ff992a, #ddff1023)
  141. ; By default the tray container will use the bar
  142. ; background color.
  143. tray-background = ${color.background}
  144. ; Tray offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
  145. tray-offset-x = 0
  146. tray-offset-y = 0
  147. ; Pad the sides of each tray icon
  148. tray-padding = 0
  149. ; Scale factor for tray clients
  150. tray-scale = 1.0
  151. ; Restack the bar window and put it above the
  152. ; selected window manager's root
  153. ;
  154. ; Fixes the issue where the bar is being drawn
  155. ; on top of fullscreen window's
  156. ;
  157. ; Currently supported WM's:
  158. ; bspwm
  159. ; i3 (requires: `override-redirect = true`)
  160. ;;wm-restack =
  161. ; Set a DPI values used when rendering text
  162. ; This only affects scalable fonts
  163. ; dpi =
  164. ; Enable support for inter-process messaging
  165. ; See the Messaging wiki page for more details.
  166. enable-ipc = true
  167. ; Fallback click handlers that will be called if
  168. ; there's no matching module handler found.
  169. click-left =
  170. click-middle =
  171. click-right =
  172. scroll-up =
  173. scroll-down =
  174. double-click-left =
  175. double-click-middle =
  176. double-click-right =
  177. ; Requires polybar to be built with xcursor support (xcb-util-cursor)
  178. ; Possible values are:
  179. ; - default : The default pointer as before, can also be an empty string (default)
  180. ; - pointer : Typically in the form of a hand
  181. ; - ns-resize : Up and down arrows, can be used to indicate scrolling
  182. cursor-click =
  183. cursor-scroll =
  184. ;; WM Workspace Specific
  185. ; bspwm
  186. ;;scroll-up = bspwm-desknext
  187. ;;scroll-down = bspwm-deskprev
  188. ;;scroll-up = bspc desktop -f prev.local
  189. ;;scroll-down = bspc desktop -f next.local
  190. ;i3
  191. ;;scroll-up = i3wm-wsnext
  192. ;;scroll-down = i3wm-wsprev
  193. ;;scroll-up = i3-msg workspace next_on_output
  194. ;;scroll-down = i3-msg workspace prev_on_output
  195. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  196. ;; Application Settings
  197. [settings]
  198. ; The throttle settings lets the eventloop swallow up til X events
  199. ; if they happen within Y millisecond after first event was received.
  200. ; This is done to prevent flood of update event.
  201. ;
  202. ; For example if 5 modules emit an update event at the same time, we really
  203. ; just care about the last one. But if we wait too long for events to swallow
  204. ; the bar would appear sluggish so we continue if timeout
  205. ; expires or limit is reached.
  206. throttle-output = 5
  207. throttle-output-for = 10
  208. ; Time in milliseconds that the input handler will wait between processing events
  209. ;throttle-input-for = 30
  210. ; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events
  211. screenchange-reload = false
  212. ; Compositing operators
  213. ; @see: https://www.cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t
  214. compositing-background = source
  215. compositing-foreground = over
  216. compositing-overline = over
  217. compositing-underline = over
  218. compositing-border = over
  219. ; Define fallback values used by all module formats
  220. ;format-foreground =
  221. ;format-background =
  222. ;format-underline =
  223. ;format-overline =
  224. ;format-spacing =
  225. ;format-padding =
  226. ;format-margin =
  227. ;format-offset =
  228. ; Enables pseudo-transparency for the bar
  229. ; If set to true the bar can be transparent without a compositor.
  230. pseudo-transparency = false
  231. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  232. ;; ┌────────────────────────────────────────────────────────────┐
  233. ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│
  234. ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│
  235. ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│
  236. ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│
  237. ;; └────────────────────────────────────────────────────────────┘
  238. ;;
  239. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  240. [color]
  241. ;; Active Colors
  242. bg = #E631363b
  243. fg = #f5f5f5
  244. fg-alt = #808080
  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 = 6
  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
  382. ;time-alt = %B %d, %Y
  383. format = <label>
  384. format-font = 5
  385. label = %time%
  386. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  387. [module/network]
  388. type = internal/network
  389. interface = wlan0
  390. interval = 1.0
  391. ;ping-interval = 3
  392. ;;udspeed-minwidth = 5
  393. accumulate-stats = true
  394. unknown-as-up = true
  395. ; Available tags:
  396. ; <label-connected> (default)
  397. ; <ramp-signal>
  398. format-connected = <label-connected>
  399. ; Available tags:
  400. ; <label-disconnected> (default)
  401. format-disconnected = <label-disconnected>
  402. ; Available tags:
  403. ; <label-connected> (default)
  404. ; <label-packetloss>
  405. ; <animation-packetloss>
  406. ;;format-packetloss = <animation-packetloss> <label-connected>
  407. ; Available tokens:
  408. ; %ifname% [wireless+wired]
  409. ; %local_ip% [wireless+wired]
  410. ; %local_ip6% [wireless+wired]
  411. ; %essid% [wireless]
  412. ; %signal% [wireless]
  413. ; %upspeed% [wireless+wired]
  414. ; %downspeed% [wireless+wired]
  415. ; %linkspeed% [wired]
  416. ; Default: %ifname% %local_ip%
  417. label-connected = "%{A1:networkmanager_dmenu &:}%{A}"
  418. ; Available tokens:
  419. ; %ifname% [wireless+wired]
  420. ; Default: (none)
  421. label-disconnected = "%{A1:networkmanager_dmenu &:}%{A}"
  422. label-disconnected-foreground = ${color.fg-alt}
  423. ; Available tokens:
  424. ; %ifname% [wireless+wired]
  425. ; %local_ip% [wireless+wired]
  426. ; %local_ip6% [wireless+wired]
  427. ; %essid% [wireless]
  428. ; %signal% [wireless]
  429. ; %upspeed% [wireless+wired]
  430. ; %downspeed% [wireless+wired]
  431. ; %linkspeed% [wired]
  432. ; Default: (none)
  433. ;label-packetloss = %essid%
  434. ;label-packetloss-foreground = #eefafafa
  435. ramp-signal-0 = 
  436. ramp-signal-1 = 
  437. ramp-signal-2 = 
  438. ramp-signal-3 = 
  439. ramp-signal-4 = 
  440. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  441. [module/kde]
  442. type = custom/text
  443. content = "%{T3}%{T-}"
  444. ;;content-background = ${color.bg}
  445. content-foreground = ${color.fg}
  446. ;;content-padding = 4
  447. click-left = ~/.config/polybar/panels/scripts/launcher.sh --kdark
  448. click-right = ~/.config/polybar/panels/scripts/launcher.sh --kdark
  449. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  450. [module/sysmenu]
  451. type = custom/text
  452. content = "%{T3}%{T-}"
  453. ;;content-background = ${color.bg}
  454. content-foreground = ${color.fg}
  455. ;;content-padding = 4
  456. click-left = ~/.config/polybar/panels/scripts/powermenu.sh --kdark
  457. click-right = ~/.config/polybar/panels/scripts/powermenu.sh --kdark
  458. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  459. [module/style]
  460. type = custom/text
  461. content = "%{T4}%{T-}"
  462. click-left = ~/.config/polybar/panels/scripts/style-switch.sh --kdark
  463. click-right = ~/.config/polybar/panels/scripts/style-switch.sh --kdark
  464. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_