config 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. ;==========================================================
  2. ;
  3. ;
  4. ; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
  5. ; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
  6. ; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
  7. ; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
  8. ; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
  9. ; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
  10. ;
  11. ;
  12. ; To learn more about how to configure Polybar
  13. ; go to https://github.com/polybar/polybar
  14. ;
  15. ; The README contains a lot of information
  16. ;
  17. ;==========================================================
  18. [colors]
  19. ;background = ${xrdb:color0:#222}
  20. background = #2E3440
  21. background-alt = #ffffff
  22. ;foreground = ${xrdb:color7:#222}
  23. foreground = #D8DEE9
  24. foreground-alt = #bf616a
  25. primary = #bf616a
  26. secondary = #bf616a
  27. alert = #bf616a
  28. [bar/example]
  29. ;monitor = ${env:MONITOR:HDMI-1}
  30. width = 100%
  31. height = 27
  32. ;offset-x = 0%
  33. ;offset-y = 0%
  34. radius = 0.0
  35. fixed-center = false
  36. background = ${colors.background}
  37. foreground = ${colors.foreground}
  38. line-size = 0
  39. line-color = #f00
  40. border-size = 0
  41. border-color = #00000000
  42. padding-left = 2
  43. padding-right = 5
  44. module-margin-left = 1
  45. module-margin-right = 2
  46. #font-0 = fixed:pixelsize=10;1
  47. font-0 = JetBrainsMono-Bold Font:pixelsize=12;1
  48. font-1 = unifont:fontformat=truetype:size=8:antialias=false;1
  49. font-2 = siji:pixelsize=10;1
  50. font-3 = FontAwesome:pixelsize=14;1
  51. font-4 = JetBrainsMono-Bold Font:pixelsize=12;1
  52. modules-left = i3
  53. modules-center = cmus
  54. modules-right = openweathermap-fullfeatured xkeyboard pulseaudio date
  55. #tray-position = right
  56. #tray-padding = 2
  57. ;tray-background = #0063ff
  58. ;wm-restack = bspwm
  59. ;wm-restack = i3
  60. ;override-redirect = true
  61. ;scroll-up = bspwm-desknext
  62. ;scroll-down = bspwm-deskprev
  63. ;scroll-up = i3wm-wsnext
  64. ;scroll-down = i3wm-wsprev
  65. cursor-click = pointer
  66. cursor-scroll = ns-resize
  67. [module/i3]
  68. type = internal/i3
  69. format = <label-state> <label-mode>
  70. index-sort = true
  71. wrapping-scroll = false
  72. fuzzy-match = true
  73. ws-icon-0 = 1;
  74. ws-icon-1 = 2;
  75. ws-icon-2 = 3;
  76. ws-icon-3 = 4;
  77. ws-icon-4 = 5;
  78. ws-icon-5 = 6;
  79. ws-icon-6 = 7;
  80. ws-icon-7 = 8;
  81. ws-icon-8 = 9;
  82. ; Only show workspaces on the same output as the bar
  83. pin-workspaces = true
  84. label-mode-padding = 4
  85. label-mode-foreground = #000
  86. label-mode-background = ${colors.primary}
  87. ; focused = Active workspace on focused monitor
  88. label-focused = %icon%
  89. label-focused-foreground = #e5eaf0
  90. label-focused-padding = 2
  91. ; unfocused = Inactive workspace on any monitor
  92. label-unfocused = %icon%
  93. label-unfocused-padding = 2
  94. label-unfocused-foreground = #4c566a
  95. ; visible = Active workspace on unfocused monitor
  96. label-visible = %icon%
  97. label-visible-background = ${self.label-focused-background}
  98. label-visible-underline = ${self.label-focused-underline}
  99. label-visible-padding = ${self.label-focused-padding}
  100. ; urgent = Workspace with urgency hint set
  101. label-urgent = %icon%
  102. label-urgent-background = ${colors.alert}
  103. label-urgent-padding = 2
  104. ; Separator in between workspaces
  105. ; label-separator = |
  106. [module/date]
  107. type = internal/date
  108. interval = 5
  109. date =
  110. date-alt = "%Y-%m-%d"
  111. time = "%H:%M"
  112. time-alt = %H:%M:%S
  113. format-prefix =""
  114. format-prefix-foreground = #4c566a
  115. label =%date% %time%
  116. label-foreground = #d8dee9
  117. label-font = 0
  118. [module/pulseaudio]
  119. type = internal/pulseaudio
  120. format-volume = <ramp-volume> <label-volume>
  121. label-volume = %percentage%%
  122. ramp-volume-0 = 
  123. ramp-volume-0-foreground = #4c566a
  124. ramp-volume-1 = 
  125. ramp-volume-1-foreground = #4c566a
  126. ramp-volume-2 = 
  127. ramp-volume-2-foreground = #4c566a
  128. label-muted = 🔇 muted
  129. label-muted-foreground = #666
  130. format-underline = ${colors.four}
  131. label-foreground = #d8dee9
  132. label-font = 0
  133. [module/cmus]
  134. type = custom/script
  135. exec = ~/.config/polybar/cmus.sh
  136. exec-if = pgrep -x cmus
  137. interval = 1
  138. click-left = cmus-remote --pause
  139. click-right = cmus-remote --play
  140. scroll-up = cmus-remote --next
  141. scroll-down = cmus-remote --prev
  142. format-prefix = " "
  143. format-prefix-foreground = #4c566a
  144. format = <label>
  145. label-foreground = #d8dee9
  146. format-background = #2E3440
  147. label = %output%
  148. label-maxlen = 100
  149. [module/openweathermap-fullfeatured]
  150. type = custom/script
  151. exec = /home/owl/.config/polybar/openweathermap-fullfeatured.sh
  152. interval = 600
  153. label-font = 0
  154. label-foreground = #d8dee9
  155. format-prefix =""
  156. format-prefix-foreground = #4c566a
  157. [module/xkeyboard]
  158. type = internal/xkeyboard
  159. blacklist-0 = num lock
  160. blacklist-1 = caps lock
  161. label-layout = %layout%
  162. label-layout-foreground = #d8dee9
  163. label-layout-background = #2E3440
  164. label-font = 4
  165. format-prefix = " "
  166. format-prefix-foreground = #4c566a
  167. ; vim:ft=dosini