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.

535 lines
15 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. ;; File Inclusion
  18. ; include an external file, like module file, etc.
  19. include-file = ~/.config/polybar/pwidgets/colors.ini
  20. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  21. ;; Bar Settings
  22. [bar/main]
  23. ; Use either of the following command to list available outputs:
  24. ; If unspecified, the application will pick the first one it finds.
  25. ; $ polybar -m | cut -d ':' -f 1
  26. ; $ xrandr -q | grep " connected" | cut -d ' ' -f1
  27. monitor =
  28. ; Use the specified monitor as a fallback if the main one is not found.
  29. monitor-fallback =
  30. ; Require the monitor to be in connected state
  31. ; XRandR sometimes reports my monitor as being disconnected (when in use)
  32. monitor-strict = false
  33. ; Tell the Window Manager not to configure the window.
  34. ; Use this to detach the bar if your WM is locking its size/position.
  35. override-redirect = false
  36. ; Put the bar at the bottom of the screen
  37. bottom = true
  38. ; Prefer fixed center position for the `modules-center` block
  39. ; When false, the center position will be based on the size of the other blocks.
  40. fixed-center = true
  41. ; Dimension defined as pixel value (e.g. 35) or percentage (e.g. 50%),
  42. ; the percentage can optionally be extended with a pixel offset like so:
  43. ; 50%:-10, this will result in a width or height of 50% minus 10 pixels
  44. width = 230
  45. height = 60
  46. ; Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
  47. ; the percentage can optionally be extended with a pixel offset like so:
  48. ; 50%:-10, this will result in an offset in the x or y direction
  49. ; of 50% minus 10 pixels
  50. offset-x = 0
  51. offset-y = 0
  52. ; Background ARGB color (e.g. #f00, #ff992a, #ddff1023)
  53. background = ${color.bg}
  54. ; Foreground ARGB color (e.g. #f00, #ff992a, #ddff1023)
  55. foreground = ${color.fg}
  56. ; Background gradient (vertical steps)
  57. ; background-[0-9]+ = #aarrggbb
  58. ;;background-0 =
  59. ; Value used for drawing rounded corners
  60. ; Note: This shouldn't be used together with border-size because the border
  61. ; doesn't get rounded
  62. ; Individual top/bottom values can be defined using:
  63. ; radius-{top,bottom}
  64. radius-top = 20.0
  65. radius-bottom = 20.0
  66. ; Under-/overline pixel size and argb color
  67. ; Individual values can be defined using:
  68. ; {overline,underline}-size
  69. ; {overline,underline}-color
  70. line-size = 2
  71. line-color = ${color.ac}
  72. ; Values applied to all borders
  73. ; Individual side values can be defined using:
  74. ; border-{left,top,right,bottom}-size
  75. ; border-{left,top,right,bottom}-color
  76. ; The top and bottom borders are added to the bar height, so the effective
  77. ; window height is:
  78. ; height + border-top-size + border-bottom-size
  79. ; Meanwhile the effective window width is defined entirely by the width key and
  80. ; the border is placed withing this area. So you effectively only have the
  81. ; following horizontal space on the bar:
  82. ; width - border-right-size - border-left-size
  83. border-bottom-size = 0
  84. border-color = ${color.ac}
  85. ; Number of spaces to add at the beginning/end of the bar
  86. ; Individual side values can be defined using:
  87. ; padding-{left,right}
  88. padding = 2
  89. ; Number of spaces to add before/after each module
  90. ; Individual side values can be defined using:
  91. ; module-margin-{left,right}
  92. module-margin-left = 1
  93. module-margin-right = 1
  94. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  95. ; Fonts are defined using <font-name>;<vertical-offset>
  96. ; Font names are specified using a fontconfig pattern.
  97. ; font-0 = NotoSans-Regular:size=8;2
  98. ; font-1 = MaterialIcons:size=10
  99. ; font-2 = Termsynu:size=8;-1
  100. ; font-3 = FontAwesome:size=10
  101. ; See the Fonts wiki page for more details
  102. font-0 = "Iosevka Nerd Font:size=12;2"
  103. font-1 = "Iosevka Nerd Font:bold:size=24;2"
  104. font-2 = "Iosevka Nerd Font:size=22;6"
  105. ; Modules are added to one of the available blocks
  106. ; modules-left = cpu ram
  107. ; modules-center = xwindow xbacklight
  108. ; modules-right = ipc clock
  109. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  110. [bar/primary]
  111. inherit = bar/main
  112. offset-x = 25
  113. offset-y = 25
  114. padding = 1
  115. module-margin-left = 0
  116. module-margin-right = 0
  117. modules-center = web sep2 files sep2 edit sep2 apps
  118. enable-ipc = true
  119. [bar/secondary]
  120. inherit = bar/main
  121. offset-x = 25
  122. offset-y = 75
  123. background = ${color.trans}
  124. foreground = ${color.white}
  125. padding = 1
  126. module-margin-left = 0
  127. module-margin-right = 0
  128. modules-left = date sep mpd
  129. enable-ipc = true
  130. [bar/top]
  131. inherit = bar/main
  132. width = 165
  133. height = 40
  134. offset-x = 100%:-190
  135. offset-y = 25
  136. bottom = false
  137. font-0 = "Iosevka Nerd Font:size=14;4"
  138. padding = 1
  139. module-margin-left = 1
  140. module-margin-right = 1
  141. modules-center = alsa battery network sysmenu
  142. enable-ipc = true
  143. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  144. ; The separator will be inserted between the output of each module
  145. separator =
  146. ; Opacity value between 0.0 and 1.0 used on fade in/out
  147. dim-value = 1.0
  148. ; Value to be used to set the WM_NAME atom
  149. ; If the value is empty or undefined, the atom value
  150. ; will be created from the following template: polybar-[BAR]_[MONITOR]
  151. ; NOTE: The placeholders are not available for custom values
  152. wm-name =
  153. ; Locale used to localize various module data (e.g. date)
  154. ; Expects a valid libc locale, for example: sv_SE.UTF-8
  155. locale =
  156. ; Position of the system tray window
  157. ; If empty or undefined, tray support will be disabled
  158. ; NOTE: A center aligned tray will cover center aligned modules
  159. ;
  160. ; Available positions:
  161. ; left
  162. ; center
  163. ; right
  164. ; none
  165. tray-position = none
  166. ; If true, the bar will not shift its
  167. ; contents when the tray changes
  168. tray-detached = false
  169. ; Tray icon max size
  170. tray-maxsize = 16
  171. ; Background color for the tray container
  172. ; ARGB color (e.g. #f00, #ff992a, #ddff1023)
  173. ; By default the tray container will use the bar
  174. ; background color.
  175. tray-background = ${color.background}
  176. ; Tray offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
  177. tray-offset-x = 0
  178. tray-offset-y = 0
  179. ; Pad the sides of each tray icon
  180. tray-padding = 0
  181. ; Scale factor for tray clients
  182. tray-scale = 1.0
  183. ; Restack the bar window and put it above the
  184. ; selected window manager's root
  185. ;
  186. ; Fixes the issue where the bar is being drawn
  187. ; on top of fullscreen window's
  188. ;
  189. ; Currently supported WM's:
  190. ; bspwm
  191. ; i3 (requires: `override-redirect = true`)
  192. ;;wm-restack =
  193. ; Set a DPI values used when rendering text
  194. ; This only affects scalable fonts
  195. ; dpi =
  196. ; Enable support for inter-process messaging
  197. ; See the Messaging wiki page for more details.
  198. ;enable-ipc = true
  199. ; Fallback click handlers that will be called if
  200. ; there's no matching module handler found.
  201. click-left =
  202. click-middle =
  203. click-right =
  204. scroll-up =
  205. scroll-down =
  206. double-click-left =
  207. double-click-middle =
  208. double-click-right =
  209. ; Requires polybar to be built with xcursor support (xcb-util-cursor)
  210. ; Possible values are:
  211. ; - default : The default pointer as before, can also be an empty string (default)
  212. ; - pointer : Typically in the form of a hand
  213. ; - ns-resize : Up and down arrows, can be used to indicate scrolling
  214. cursor-click =
  215. cursor-scroll =
  216. ;; WM Workspace Specific
  217. ; bspwm
  218. ;;scroll-up = bspwm-desknext
  219. ;;scroll-down = bspwm-deskprev
  220. ;;scroll-up = bspc desktop -f prev.local
  221. ;;scroll-down = bspc desktop -f next.local
  222. ;i3
  223. ;;scroll-up = i3wm-wsnext
  224. ;;scroll-down = i3wm-wsprev
  225. ;;scroll-up = i3-msg workspace next_on_output
  226. ;;scroll-down = i3-msg workspace prev_on_output
  227. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  228. ;; Application Settings
  229. [settings]
  230. ; The throttle settings lets the eventloop swallow up til X events
  231. ; if they happen within Y millisecond after first event was received.
  232. ; This is done to prevent flood of update event.
  233. ;
  234. ; For example if 5 modules emit an update event at the same time, we really
  235. ; just care about the last one. But if we wait too long for events to swallow
  236. ; the bar would appear sluggish so we continue if timeout
  237. ; expires or limit is reached.
  238. throttle-output = 5
  239. throttle-output-for = 10
  240. ; Time in milliseconds that the input handler will wait between processing events
  241. ;throttle-input-for = 30
  242. ; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events
  243. screenchange-reload = false
  244. ; Compositing operators
  245. ; @see: https://www.cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t
  246. compositing-background = source
  247. compositing-foreground = over
  248. compositing-overline = over
  249. compositing-underline = over
  250. compositing-border = over
  251. ; Define fallback values used by all module formats
  252. ;format-foreground =
  253. ;format-background =
  254. ;format-underline =
  255. ;format-overline =
  256. ;format-spacing =
  257. ;format-padding =
  258. ;format-margin =
  259. ;format-offset =
  260. ; Enables pseudo-transparency for the bar
  261. ; If set to true the bar can be transparent without a compositor.
  262. pseudo-transparency = false
  263. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  264. ;; ┌────────────────────────────────────────────────────────────────┐
  265. ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▄█░█▀█░█▀▄░█░█░█░░░█▀▀░█▀▀│
  266. ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░█░█░█░█░█░█░█░█░░░█▀▀░▀▀█│
  267. ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀░▀░▀▀▀░▀▀░░▀▀▀░▀▀▀░▀▀▀░▀▀▀│
  268. ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│
  269. ;; └────────────────────────────────────────────────────────────────┘
  270. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  271. [module/date]
  272. type = internal/date
  273. interval = 1.0
  274. time = %k:%M
  275. format = <label>
  276. format-foreground = ${color.fg}
  277. label = %time%
  278. label-font = 2
  279. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  280. [module/mpd]
  281. type = internal/mpd
  282. interval = 2
  283. format-online = <label-song>
  284. format-online-foreground = ${color.fg}
  285. label-song = "%title%"
  286. label-song-maxlen = 12
  287. label-song-ellipsis = true
  288. label-offline = "Offline"
  289. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  290. ;; Apps
  291. [module/term]
  292. type = custom/text
  293. content = "%{T3}%{T-}"
  294. content-foreground = ${color.black}
  295. content-background = ${color.bg}
  296. content-padding = 0
  297. click-left = termite &
  298. [module/web]
  299. type = custom/text
  300. content = "%{T3}%{T-}"
  301. content-foreground = ${color.orange}
  302. content-background = ${color.bg}
  303. content-padding = 0
  304. click-left = firefox &
  305. [module/files]
  306. type = custom/text
  307. content = "%{T3}%{T-}"
  308. content-foreground = ${color.blue}
  309. content-background = ${color.bg}
  310. content-padding = 0
  311. click-left = thunar &
  312. [module/edit]
  313. type = custom/text
  314. content = "%{T3}%{T-}"
  315. content-foreground = ${color.gray}
  316. content-background = ${color.bg}
  317. content-padding = 0
  318. click-left = geany &
  319. [module/apps]
  320. type = custom/text
  321. content = "%{T3}%{T-}"
  322. content-foreground = ${color.fga}
  323. content-background = ${color.bg}
  324. content-padding = 0
  325. click-left = ~/.config/polybar/pwidgets/scripts/launcher.sh &
  326. click-right = ~/.config/polybar/pwidgets/scripts/style-switch.sh &
  327. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  328. [module/sep]
  329. type = custom/text
  330. content = " | "
  331. content-font = 1
  332. ;;content-background = #000
  333. content-foreground = ${color.fg}
  334. ;;content-padding = 4
  335. [module/sep2]
  336. type = custom/text
  337. content = " "
  338. ;;content-background = #000
  339. content-foreground = ${color.fg}
  340. ;;content-padding = 4
  341. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  342. [module/alsa]
  343. type = internal/alsa
  344. format-volume = <ramp-volume>
  345. format-muted = <label-muted>
  346. label-muted =
  347. label-muted-foreground = ${color.gray}
  348. ramp-volume-0 =
  349. ramp-volume-1 = 奔
  350. ramp-volume-2 = 奔
  351. ramp-volume-3 =
  352. ramp-volume-4 =
  353. ramp-volume-foreground = ${color.blue}
  354. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  355. [module/battery]
  356. type = internal/battery
  357. full-at = 99
  358. battery = BAT1
  359. adapter = ACAD
  360. poll-interval = 2
  361. time-format = %H:%M
  362. format-charging = <animation-charging>
  363. format-discharging = <ramp-capacity>
  364. format-full = <label-full>
  365. format-full-foreground = ${color.red}
  366. label-full =
  367. ramp-capacity-0 =
  368. ramp-capacity-1 =
  369. ramp-capacity-2 =
  370. ramp-capacity-3 =
  371. ramp-capacity-4 =
  372. ramp-capacity-5 =
  373. ramp-capacity-6 =
  374. ramp-capacity-7 =
  375. ramp-capacity-8 =
  376. ramp-capacity-9 =
  377. ramp-capacity-foreground = ${color.orange}
  378. animation-charging-0 =
  379. animation-charging-1 =
  380. animation-charging-2 =
  381. animation-charging-3 =
  382. animation-charging-4 =
  383. animation-charging-5 =
  384. animation-charging-6 =
  385. animation-charging-7 =
  386. animation-charging-8 =
  387. animation-charging-9 =
  388. animation-charging-foreground = ${color.green}
  389. animation-charging-framerate = 750
  390. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  391. [module/network]
  392. type = internal/network
  393. interface = wlan0
  394. interval = 1.0
  395. accumulate-stats = true
  396. unknown-as-up = true
  397. format-connected = <label-connected>
  398. format-connected-foreground = ${color.purple}
  399. format-disconnected = <label-disconnected>
  400. format-disconnected-foreground = ${color.gray}
  401. label-connected = "%{A1:networkmanager_dmenu &:}直%{A}"
  402. label-disconnected = "%{A1:networkmanager_dmenu &:}睊%{A}"
  403. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  404. [module/sysmenu]
  405. type = custom/text
  406. content =
  407. content-foreground = ${color.red}
  408. click-left = ~/.config/polybar/pwidgets/scripts/powermenu.sh &
  409. click-right = ~/.config/polybar/pwidgets/scripts/powermenu.sh &
  410. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_