config 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619
  1. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  2. ;;
  3. ;; ____ __ __
  4. ;; / __ \____ / /_ __/ /_ ____ ______
  5. ;; / /_/ / __ \/ / / / / __ \/ __ `/ ___/
  6. ;; / ____/ /_/ / / /_/ / /_/ / /_/ / /
  7. ;; /_/ \____/_/\__, /_.___/\__,_/_/
  8. ;; /____/
  9. ;;
  10. ;; Created By Aditya Shakya @adi1090x
  11. ;;
  12. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  13. ;; Global WM Settings
  14. [global/wm]
  15. margin-bottom = 0
  16. margin-top = 0
  17. include-file = ~/.config/polybar/colors
  18. [bar/main]
  19. monitor =
  20. monitor-strict = false
  21. override-redirect = false
  22. bottom = true
  23. fixed-center = true
  24. width = 100%
  25. height = 16
  26. offset-x = 0
  27. offset-y = 0
  28. background = ${color.BACKGROUND}
  29. foreground = ${color.FOREGROUND}
  30. radius-top = 0.0
  31. radius-bottom = 0.0
  32. line-size = 2
  33. line-color = ${color.BLUE}
  34. border-size = 4
  35. border-color = ${color.BACKGROUND}
  36. padding = 1
  37. module-margin-left = 1
  38. module-margin-right = 1
  39. font-0 = "Iosevka Nerd Font:size=10;3"
  40. font-1 = "Iosevka Nerd Font:size=12;3"
  41. modules-left = i3
  42. modules-center =
  43. modules-right = cpu memory filesystem battery wifi eth backlight volume date
  44. separator =
  45. spacing = 0
  46. dim-value = 1.0
  47. wm-name = i3
  48. locale =
  49. tray-position = right
  50. tray-detached = false
  51. tray-maxsize = 16
  52. tray-transparent = false
  53. tray-background = ${color.BACKGROUND}
  54. tray-offset-x = 0
  55. tray-offset-y = 0
  56. tray-padding = 0
  57. tray-scale = 1.0
  58. wm-restack = i3
  59. enable-ipc = true
  60. ; bspwm
  61. scroll-up = bspc desktop -f prev.local
  62. scroll-down = bspc desktop -f next.local
  63. [settings]
  64. throttle-output = 5
  65. throttle-output-for = 10
  66. throttle-input-for = 30
  67. screenchange-reload = false
  68. compositing-background = source
  69. compositing-foreground = over
  70. compositing-overline = over
  71. compositing-underline = over
  72. compositing-border = over
  73. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  74. ;;
  75. ;; __ ___ __ __
  76. ;; / |/ /___ ____/ /_ __/ /__ _____
  77. ;; / /|_/ / __ \/ __ / / / / / _ \/ ___/
  78. ;; / / / / /_/ / /_/ / /_/ / / __(__ )
  79. ;; /_/ /_/\____/\__,_/\__,_/_/\___/____/
  80. ;;
  81. ;; Created By Aditya Shakya @adi1090x
  82. ;;
  83. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  84. [module/filesystem]
  85. type = internal/fs
  86. ; Mountpoints to display
  87. mount-0 = /
  88. mount-1 = /boot
  89. mount-2 = /home
  90. mount-3 = /mnt/storage
  91. ; Seconds to sleep between updates
  92. ; Default: 30
  93. interval = 10
  94. ; Display fixed precision values
  95. ; Default: false
  96. fixed-values = true
  97. ; Spacing between entries
  98. ; Default: 2
  99. spacing = 2
  100. ; Available tags:
  101. ; <label-mounted> (default)
  102. ; <bar-free>
  103. ; <bar-used>
  104. ; <ramp-capacity>
  105. format-mounted = <label-mounted>
  106. ; Available tags:
  107. ; <label-unmounted> (default)
  108. format-unmounted = <label-unmounted>
  109. ; Available tokens:
  110. ; %mountpoint%
  111. ; %type%
  112. ; %fsname%
  113. ; %percentage_free%
  114. ; %percentage_used%
  115. ; %total%
  116. ; %free%
  117. ; %used%
  118. ; Default: %mountpoint% %percentage_free%%
  119. label-mounted = %mountpoint%: %free%
  120. ; of %total%
  121. ; Available tokens:
  122. ; %mountpoint%
  123. ; Default: %mountpoint% is not mounted
  124. label-unmounted = %mountpoint%: not mounted
  125. label-unmounted-foreground = #55
  126. [module/memory]
  127. type = internal/memory
  128. ; Seconds to sleep between updates
  129. ; Default: 1
  130. interval = 3
  131. ; Available tags:
  132. ; <label> (default)
  133. ; <bar-used>
  134. ; <bar-free>
  135. ; <ramp-used>
  136. ; <ramp-free>
  137. ; <bar-swap-used>
  138. ; <bar-swap-free>
  139. ; <ramp-swap-used>
  140. ; <ramp-swap-free>
  141. format = <label> <bar-used>
  142. ; Available tokens:
  143. ; %percentage_used% (default)
  144. ; %percentage_free%
  145. ; %gb_used%
  146. ; %gb_free%
  147. ; %gb_total%
  148. ; %mb_used%
  149. ; %mb_free%
  150. ; %mb_total%
  151. ; %percentage_swap_used%
  152. ; %percentage_swap_free%
  153. ; %mb_swap_total%
  154. ; %mb_swap_free%
  155. ; %mb_swap_used%
  156. ; %gb_swap_total%
  157. ; %gb_swap_free%
  158. ; %gb_swap_used%
  159. label = RAM %percentage_used%%
  160. ; %gb_used%/%gb_free%
  161. ; Only applies if <bar-used> is used
  162. bar-used-indicator =
  163. bar-used-width = 10
  164. bar-used-foreground-0 = #55aa55
  165. bar-used-foreground-1 = #557755
  166. bar-used-foreground-2 = #f5a70a
  167. bar-used-foreground-3 = #ff5555
  168. bar-used-fill = ▐
  169. bar-used-empty = ▐
  170. bar-used-empty-foreground = #444444
  171. ; Only applies if <ramp-used> is used
  172. ramp-used-0 = ▁
  173. ramp-used-1 = ▂
  174. ramp-used-2 = ▃
  175. ramp-used-3 = ▄
  176. ramp-used-4 = ▅
  177. ramp-used-5 = ▆
  178. ramp-used-6 = ▇
  179. ramp-used-7 = █
  180. ; Only applies if <ramp-free> is used
  181. ramp-free-0 = ▁
  182. ramp-free-1 = ▂
  183. ramp-free-2 = ▃
  184. ramp-free-3 = ▄
  185. ramp-free-4 = ▅
  186. ramp-free-5 = ▆
  187. ramp-free-6 = ▇
  188. ramp-free-7 = █
  189. [module/volume]
  190. type = internal/pulseaudio
  191. ; Sink to be used, if it exists (find using `pacmd list-sinks`, name field)
  192. ; If not, uses default sink
  193. sink = alsa_output.pci-0000_12_00.3.analog-stereo
  194. ; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
  195. ; Default: true
  196. use-ui-max = false
  197. ; Interval for volume increase/decrease (in percent points)
  198. ; Default: 5
  199. interval = 5
  200. format-volume = <ramp-volume> <label-volume>
  201. format-muted = <label-muted>
  202. format-muted-prefix = 婢
  203. format-muted-prefix-font = 2
  204. format-muted-prefix-foreground = ${color.RED}
  205. label-volume = %percentage%%
  206. label-muted = " "
  207. label-muted-foreground = #757575
  208. ramp-volume-0 = 奄
  209. ramp-volume-1 = 奄
  210. ramp-volume-2 = 奄
  211. ramp-volume-3 = 奔
  212. ramp-volume-4 = 奔
  213. ramp-volume-5 = 奔
  214. ramp-volume-6 = 墳
  215. ramp-volume-7 = 墳
  216. ramp-volume-8 = 墳
  217. ramp-volume-9 = 墳
  218. ramp-volume-font = 2
  219. ramp-volume-foreground = ${color.BLUE}
  220. ramp-headphones-0 = 
  221. ramp-headphones-1 = 
  222. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  223. [module/backlight]
  224. type = internal/xbacklight
  225. card = intel_backlight
  226. format = <ramp> <label>
  227. label = %percentage%%
  228. ramp-0 = 
  229. ramp-1 = 
  230. ramp-2 = 
  231. ramp-3 = 
  232. ramp-4 = 
  233. ramp-5 = 
  234. ramp-6 = 
  235. ramp-7 = 
  236. ramp-8 = 
  237. ramp-9 = 
  238. ramp-font = 2
  239. ramp-foreground = ${color.MAGENTA}
  240. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  241. [module/battery]
  242. type = internal/battery
  243. full-at = 99
  244. battery = BAT0
  245. adapter = AC
  246. poll-interval = 2
  247. time-format = %H:%M
  248. format-charging = <animation-charging> <label-charging>
  249. format-charging-prefix =
  250. format-discharging = <ramp-capacity> <label-discharging>
  251. format-full = <label-full>
  252. format-full-prefix = " "
  253. format-full-prefix-font = 2
  254. format-full-prefix-foreground = ${color.RED}
  255. label-charging = %percentage%%
  256. label-discharging = %percentage%%
  257. label-full = %percentage%%
  258. ramp-capacity-0 = 
  259. ramp-capacity-1 = 
  260. ramp-capacity-2 = 
  261. ramp-capacity-3 = 
  262. ramp-capacity-4 = 
  263. ramp-capacity-font = 2
  264. ramp-capacity-foreground = ${color.YELLOW}
  265. animation-charging-0 = 
  266. animation-charging-1 = 
  267. animation-charging-2 = 
  268. animation-charging-3 = 
  269. animation-charging-4 = 
  270. animation-charging-font = 2
  271. animation-charging-foreground = ${color.GREEN}
  272. animation-charging-framerate = 750
  273. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  274. [module/i3]
  275. type = internal/i3
  276. pin-workspaces = true
  277. inline-mode = false
  278. enable-click = true
  279. enable-scroll = true
  280. reverse-scroll = true
  281. fuzzy-match = true
  282. ; ws-icon-[0-9]+ = label;icon
  283. ; Note that the label needs to correspond with the bspwm workspace name
  284. ;;ws-icon-0 = code;♚
  285. ;;ws-icon-1 = office;♛
  286. ;;ws-icon-2 = graphics;♜
  287. ;;ws-icon-3 = mail;♝
  288. ;;ws-icon-4 = web;♞
  289. ;;ws-icon-default = ♟
  290. format = <label-state>
  291. label-monitor = %name%
  292. ; If any values for label-dimmed-N are defined, the workspace/mode
  293. ; colors will get overridden with those values if the monitor is out of focus
  294. ; To only override workspaces in a specific state, use:
  295. ; label-dimmed-focused
  296. ; label-dimmed-occupied
  297. ; label-dimmed-urgent
  298. ; label-dimmed-empty
  299. ;label-dimmed-foreground = ${color.FOREGROUND}
  300. ;label-dimmed-underline = ${color.YELLOW}
  301. ;label-dimmed-focused-background = ${color.BACKGROUND}
  302. label-focused = %index%
  303. label-focused-foreground = ${color.BACKGROUND}
  304. label-focused-background = ${color.BLUE}
  305. ;label-focused-underline = ${color.RED}
  306. label-focused-padding = 1
  307. label-occupied = %index%
  308. label-occupied-foreground = ${color.BACKGROUND}
  309. label-occupied-background = ${color.GREEN}
  310. ;label-occupied-underline = ${color.GREEN}
  311. label-occupied-padding = 1
  312. label-urgent = %index%
  313. label-urgent-foreground = ${color.BACKGROUND}
  314. label-urgent-background = ${color.RED}
  315. ;label-urgent-underline = ${color.RED}
  316. label-urgent-padding = 1
  317. label-empty = %index%
  318. label-empty-foreground = ${color.FOREGROUND}
  319. label-empty-padding = 1
  320. ; Separator in between workspaces
  321. label-separator = " "
  322. label-separator-padding = 0
  323. ;label-separator-foreground = ${color.YELLOW}
  324. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  325. [module/mod]
  326. type = internal/i3
  327. format = <label-mode>
  328. format-background = ${color.YELLOW}
  329. format-foreground = ${color.BACKGROUND}
  330. format-padding = 1
  331. label-monocle = "Monocle"
  332. label-tiled = "Tiled"
  333. label-floating = ", Float"
  334. label-pseudotiled = ", Pseudo"
  335. label-fullscreen = ", Full"
  336. label-locked = " Locked"
  337. label-sticky = " Sticky"
  338. label-private = " Private"
  339. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  340. [module/modicons]
  341. type = internal/i3
  342. format = <label-mode>
  343. format-background = ${color.YELLOW}
  344. format-foreground = ${color.BACKGROUND}
  345. format-padding = 1
  346. label-monocle = ""
  347. label-tiled = ""
  348. label-fullscreen = " "
  349. label-floating = " "
  350. label-pseudotiled = " "
  351. label-locked = " "
  352. label-sticky = " "
  353. label-private = " "
  354. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  355. [module/date]
  356. type = internal/date
  357. interval = 1.0
  358. date = %Y-%m-%d%
  359. time = %H:%M:%S
  360. time-alt = %A, %d %B %Y
  361. format = <label>
  362. #format-prefix = " "
  363. format-prefix-font = 2
  364. format-prefix-foreground = ${color.RED}
  365. label = %date% %time%
  366. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  367. [module/mpd]
  368. type = internal/mpd
  369. ;;host = 127.0.0.1
  370. ;;port = 6600
  371. ;;password = mysecretpassword
  372. interval = 2
  373. format-online = <label-song> <icon-prev> <toggle> <icon-next>
  374. format-online-prefix = " "
  375. format-online-prefix-font = 1
  376. format-online-prefix-foreground = ${color.GREEN}
  377. format-playing = ${self.format-online}
  378. format-paused = <label-song> <toggle>
  379. format-offline = <label-offline>
  380. label-offline = "Offline"
  381. label-song = "%title% | %artist%"
  382. label-song-maxlen = 40
  383. label-song-ellipsis = true
  384. icon-play = 
  385. icon-play-font = 2
  386. icon-play-foreground = ${color.GREEN}
  387. icon-pause = 
  388. icon-pause-font = 2
  389. icon-pause-foreground = ${color.YELLOW}
  390. icon-stop = 
  391. icon-stop-foreground = ${color.RED}
  392. icon-prev = 玲
  393. icon-prev-font = 2
  394. icon-prev-foreground = ${color.CYAN}
  395. icon-next = 怜
  396. icon-next-font = 2
  397. icon-next-foreground = ${color.CYAN}
  398. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  399. [module/wifi]
  400. type = internal/network
  401. interface = wlp2s0
  402. interval = 1.0
  403. ;;ping-interval = 3
  404. ;;udspeed-minwidth = 5
  405. accumulate-stats = true
  406. unknown-as-up = true
  407. format-connected = <ramp-signal> <label-connected>
  408. format-disconnected = <label-disconnected>
  409. format-disconnected-prefix = "睊 "
  410. format-disconnected-prefix-font = 2
  411. format-disconnected-prefix-foreground = ${color.RED}
  412. label-connected = " %ifname% %local_ip%"
  413. label-disconnected = " Disconnected"
  414. ramp-signal-0 = 直
  415. ramp-signal-1 = 直
  416. ramp-signal-2 = 直
  417. ramp-signal-3 = 直
  418. ramp-signal-4 = 直
  419. ramp-signal-font = 2
  420. ramp-signal-foreground = ${color.CYAN}
  421. [module/eth]
  422. type = internal/network
  423. interface = eno0
  424. interval = 1.0
  425. ;;ping-interval = 3
  426. ;;udspeed-minwidth = 5
  427. accumulate-stats = true
  428. unknown-as-up = true
  429. ;; format-connected = <ramp-signal> <label-connected>
  430. format-connected = <label-connected>
  431. format-disconnected = <label-disconnected>
  432. format-disconnected-prefix = " "
  433. format-disconnected-prefix-font = 2
  434. format-disconnected-prefix-foreground = ${color.RED}
  435. label-connected = " %ifname% %local_ip%"
  436. label-disconnected = "%ifname% "
  437. ramp-signal-0 = 直
  438. ramp-signal-1 = 直
  439. ramp-signal-2 = 直
  440. ramp-signal-3 = 直
  441. ramp-signal-4 = 直
  442. ramp-signal-font = 2
  443. ramp-signal-foreground = ${color.CYAN}
  444. [module/cpu]
  445. type = internal/cpu
  446. ; Seconds to sleep between updates
  447. ; Default: 1
  448. interval = 0.5
  449. format-prefix = " "
  450. ; Available tags:
  451. ; <label> (default)
  452. ; <bar-load>
  453. ; <ramp-load>
  454. ; <ramp-coreload>
  455. format = <label>
  456. ; <ramp-coreload>
  457. ; Available tokens:
  458. ; %percentage% (default) - total cpu load averaged over all cores
  459. ; %percentage-sum% - Cumulative load on all cores
  460. ; %percentage-cores% - load percentage for each core
  461. ; %percentage-core[1-9]% - load percentage for specific core
  462. label = CPU %percentage%%
  463. ; Spacing between individual per-core ramps
  464. ramp-coreload-spacing = 1
  465. ramp-coreload-0 = ▁
  466. ramp-coreload-1 = ▂
  467. ramp-coreload-2 = ▃
  468. ramp-coreload-3 = ▄
  469. ramp-coreload-4 = ▅
  470. ramp-coreload-5 = ▆
  471. ramp-coreload-6 = ▇
  472. ramp-coreload-7 = █
  473. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  474. ;; __________ ______
  475. ;; / ____/ __ \/ ____/
  476. ;; / __/ / / / / /_
  477. ;; / /___/ /_/ / __/
  478. ;; /_____/\____/_/
  479. ;;
  480. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_