config 15 KB

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