modules.ini 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. include-file = ~/.config/polybar/colors.ini
  2. [module/bspwm]
  3. type = internal/bspwm
  4. enable-click = true
  5. enable-scroll = true
  6. reverse-scroll = true
  7. pin-workspaces = true
  8. occupied-scroll = true
  9. inline-mode = false
  10. ; ws-icon-0 = 1;
  11. ; ws-icon-1 = 2;
  12. ; ws-icon-2 = 3;
  13. ; ws-icon-3 = 4;
  14. ; ws-icon-4 = 5;
  15. ; ws-icon-5 = 6;
  16. ; ws-icon-6 = 7;
  17. ; ws-icon-7 = 8;
  18. ; ws-icon-8 = 9;
  19. ; ws-icon-default = ♟
  20. ; ; "1  " "2  " "3  " "4  " "5  " "6  " "7  " "8  " "9  "
  21. format = <label-state><label-mode>
  22. label-active = %name%
  23. label-active-foreground = ${colors_material.fg_active_group}
  24. label-active-background = ${colors_material.bg_current_tab}
  25. label-active-padding = 1
  26. ; label-active-font = 2
  27. label-occupied = %name%
  28. label-occupied-padding = 1
  29. ; label-occupied-margin = 1
  30. label-occupied-foreground = ${colors_material.fg_active_group}
  31. label-occupied-background = ${colors_material.bg}
  32. ; label-occupied-underline = ${colors_material.fg_active_group}
  33. ; label-occupied-font = 2
  34. label-urgent = %name%
  35. label-urgent-background = ${colors_material.red}
  36. label-urgent-padding = 1
  37. ; label-urgent-font = 2
  38. label-empty = %name%
  39. label-empty-padding = 1
  40. label-empty-background = ${colors_material.bg}
  41. label-empty-foreground = ${colors_material.fg_group_names}
  42. ; label-empty-font = 2
  43. ; The following labels will be used to indicate the layout/mode
  44. ; for the focused workspace. Requires <label-mode>
  45. label-monocle = " "
  46. label-monocle-foreground = ${colors_material.magenta}
  47. label-tiled = " "
  48. label-tiled-foreground = ${colors_material.magenta}
  49. label-fullscreen = " "
  50. label-fullscreen-foreground = ${colors_material.magenta}
  51. label-floating = " "
  52. label-floating-foreground = ${colors_material.magenta}
  53. label-pseudotiled = " "
  54. label-locked = ""
  55. label-locked-foreground = ${colors_material.magenta}
  56. label-sticky = ""
  57. label-sticky-foreground = ${colors_material.magenta}
  58. label-private = " "
  59. label-private-foreground = ${colors_material.magenta}
  60. label-marked = "M"
  61. label-mareked-foreground = ${colors_material.magenta}
  62. ; Separator in between workspaces
  63. ;label-separator = |
  64. ;label-separator-padding = 10
  65. ;label-separator-foreground = #ffb52a
  66. format-background = ${colors_material.blue}
  67. format-foreground = ${colors_material.orange}
  68. ; format-background = ${colors_material.bg_panel}
  69. ; format-foreground = ${colors_material.fg_active_group}
  70. [module/xworkspaces]
  71. type = internal/xworkspaces
  72. label-active = %name%
  73. label-active-foreground = ${colors_material.fg_active_group}
  74. label-active-background = ${colors_material.bg_current_tab}
  75. label-active-padding = 1
  76. label-occupied = %name%
  77. label-occupied-padding = 1
  78. label-occupied-foreground = ${colors_material.fg_group_names}
  79. label-occupied-background = ${colors_material.bg}
  80. label-urgent = %name%
  81. label-urgent-background = ${colors_material.red}
  82. label-urgent-padding = 1
  83. [module/xwindow]
  84. type = internal/xwindow
  85. label = %title:0:17:...%
  86. label-padding = 1
  87. label-maxlen = 17
  88. label-font = 4
  89. label-empty =
  90. label-empty-foreground = ${colors_material.fg_group_names}
  91. label-foreground = ${colors_material.fg_windowname}
  92. label-background = ${colors_material.bg}
  93. label-empty-font = 4
  94. [module/updates]
  95. type = custom/script
  96. exec = ~/.config/polybar/scripts/get_updates_amount.sh
  97. interval = 10800
  98. click-left = ~/.config/polybar/scripts/show_updates.sh
  99. click-right = alacritty --hold -e yay -Syu
  100. format-prefix-foreground = ${colors_material.fg_updates}
  101. format-prefix-background = ${colors_material.bg}
  102. format-underline = ${colors_material.fg_updates}
  103. label-foreground = ${colors_material.fg_updates}
  104. label-background = ${colors_material.bg}
  105. [module/weather]
  106. type = custom/script
  107. exec = ~/.config/polybar/scripts/weather.sh
  108. interval = 1800
  109. format-prefix = " "
  110. format-prefix-foreground = ${colors_material.fg_weather}
  111. format-prefix-background = ${colors_material.bg}
  112. format-underline = ${colors_material.fg_weather}
  113. label-foreground = ${colors_material.fg_weather}
  114. label-background = ${colors_material.bg}
  115. [module/cpu]
  116. type = internal/cpu
  117. interval = 2
  118. label = "%percentage:2%%"
  119. click-left = ~/.config/polybar/scripts/top5_cpu_usage.sh
  120. format-prefix =" "
  121. format-prefix-foreground = ${colors_material.fg_cpu}
  122. format-prefix-background = ${colors_material.bg}
  123. format-underline = ${colors_material.fg_cpu}
  124. label-foreground = ${colors_material.fg_cpu}
  125. label-background = ${colors_material.bg}
  126. [module/memory]
  127. type = internal/memory
  128. interval = 2
  129. ; label = "%used%"
  130. ; label = "%percentage_used:2%%/%used%"
  131. label = "%percentage_used:2%%"
  132. warn-percentage = 95
  133. click-left = ~/.config/polybar/scripts/top5_mem_usage.sh
  134. format-prefix =" "
  135. format-prefix-foreground = ${colors_material.fg_memory}
  136. format-prefix-background = ${colors_material.bg}
  137. format-underline = ${colors_material.fg_memory}
  138. label-foreground = ${colors_material.fg_memory}
  139. label-background = ${colors_material.bg}
  140. [module/xkeyboard]
  141. type = internal/xkeyboard
  142. blacklist-0 = num lock
  143. blacklist-1 = caps lock
  144. ; layout-icon-0 = us;🇺🇸
  145. ; layout-icon-1 = ru;🇷🇺
  146. label-layout = "%icon%"
  147. layout-icon-0 = us;US
  148. layout-icon-1 = ru;RU
  149. label-layout-foreground = ${colors_material.fg_keyboard}
  150. label-layout-background = ${colors_material.bg}
  151. format-prefix = " "
  152. format-prefix-foreground = ${colors_material.fg_keyboard}
  153. format-prefix-background = ${colors_material.bg}
  154. format-underline = ${colors_material.fg_keyboard}
  155. [module/systray]
  156. type = internal/tray
  157. format-margin = 0pt
  158. format-underline = ${colors_material.fg}
  159. tray-spacing = 3pt
  160. tray-foreground = ${colors_material.fg}
  161. tray-background = ${colors_material.bg}
  162. [module/mydate]
  163. type = custom/script
  164. exec = date "+%d %a, %H:%M"
  165. interval = 60
  166. click-left = gsimplecal
  167. ; click-right =
  168. format-prefix =" "
  169. format-prefix-foreground = ${colors_material.fg_date}
  170. format-prefix-background = ${colors_material.bg}
  171. format-underline = ${colors_material.fg_date}
  172. format-margin = 0pt
  173. label-foreground = ${colors_material.fg_date}
  174. label-background = ${colors_material.bg}
  175. [module/powermenu]
  176. type = custom/script
  177. exec = echo ""
  178. click-right = ~/.myScripts/dmscripts/dm-system-exit.sh
  179. click-left = ~/Programs/ByeBye/ByeBye
  180. label-foreground = ${colors_material.red}
  181. label-background = ${colors_material.bg}
  182. label-padding = 1
  183. [module/sep]
  184. type = custom/text
  185. content = " "
  186. content-foreground = ${colors_material.fg}
  187. ; [module/date]
  188. ; type = internal/date
  189. ;
  190. ; interval = 5
  191. ; ; module/date doesn't have click-right
  192. ; click-right = gsimplecal
  193. ;
  194. ; date =
  195. ; date-alt = "%A, %B %d, %Y"
  196. ; time = "%H:%M"
  197. ; label =%date% %time%
  198. ;
  199. ; format-prefix =" "
  200. ; format-prefix-foreground = ${colors_material.fg_date}
  201. ; format-prefix-background = ${colors_material.bg}
  202. ; format-underline = ${colors_material.fg_date}
  203. ; format-margin = 0pt
  204. ; label-foreground = ${colors_material.fg_date}
  205. ; label-background = ${colors_material.bg}
  206. ; [module/launch]
  207. ; type = custom/script
  208. ; exec = echo "  "
  209. ; click-left = rofi run -show drun -show-icons
  210. ; label-foreground = ${colors.cyan}
  211. ; label-background = ${colors.gray}
  212. ; label-font = 1
  213. ; [module/cmus]
  214. ; type = custom/script
  215. ; exec = ~/.config/bspwm/themes/bspwm_otto/scripts/cmus.sh
  216. ; exec-if = pgrep -x cmus
  217. ; interval = 1
  218. ;
  219. ; click-left = cmus-remote --pause
  220. ; click-right = cmus-remote --play
  221. ; scroll-up = cmus-remote --next
  222. ; scroll-down = cmus-remote --prev
  223. ;
  224. ; format-prefix = " "
  225. ; format = <label>
  226. ; label = %output%
  227. ; label-maxlen = 40
  228. ;
  229. ; format-prefix-foreground = ${colors.yellow}
  230. ; format-prefix-background = ${colors.gray}
  231. ; label-foreground = ${colors.fg}
  232. ; label-background = ${colors.gray}
  233. ; [module/alsa]
  234. ; type = internal/alsa
  235. ;
  236. ; master-soundcard = default
  237. ; speaker-soundcard = default
  238. ; headphone-soundcard = default
  239. ;
  240. ; master-mixer = Master
  241. ; interval = 5
  242. ; format-volume = <label-volume>
  243. ;
  244. ; format-volume-prefix = " "
  245. ; format-volume-prefix-foreground = ${colors.fg}
  246. ; format-volume-prefix-background = ${colors.gr}
  247. ;
  248. ; label-volume = %percentage%%
  249. ; label-volume-foreground =${colors.fg}
  250. ; label-volume-background =${colors.bg}
  251. ; label-volume-padding = 1
  252. ; [module/pulseaudio]
  253. ; type = internal/pulseaudio
  254. ;
  255. ; format-volume-prefix = " "
  256. ; format-volume-prefix-foreground = ${colors.yellow}
  257. ; format-volume-prefix-background = ${colors.gray}
  258. ; format-volume = <label-volume>
  259. ; label-volume-foreground =${colors.fg}
  260. ; label-volume-background =${colors.gray}
  261. ; label-volume = %percentage%%
  262. ;
  263. ; label-muted = muted
  264. ; label-muted-foreground = ${colors.disabled}
  265. ; [module/cava]
  266. ; type = custom/script
  267. ; tail = true
  268. ; exec = ~/.config/bspwm/themes/bspwm_otto/scripts/cava.sh
  269. ; format = <label>
  270. ; format-background = ${colors.gray}
  271. ; format-font = 2
  272. ; label = %output%
  273. ; format-padding = 1
  274. ; [module/round-left]
  275. ; type = custom/text
  276. ; content = _
  277. ; content-foreground = ${colors.gray}
  278. ; content-font = 3
  279. ;
  280. ; [module/round-right]
  281. ; type = custom/text
  282. ; content = 
  283. ; content-foreground = ${colors.gray}
  284. ; content-font = 3