loctranp

my modules.ini for polybar

Jul 13th, 2022
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.05 KB | None | 0 0
  1. [module/xworkspaces]
  2. type = internal/xworkspaces
  3. pin-workspaces = true
  4.  
  5. label-active = "󰮯"
  6. label-active-foreground = ${colors.primary}
  7. label-active-background = ${colors.background-alt}
  8. label-active-padding = 2
  9.  
  10. label-occupied = "󰊠"
  11. label-occupied-foreground = ${colors.blue}
  12. label-occupied-background = ${colors.background-alt}
  13. label-occupied-padding = 2
  14.  
  15. label-urgent = "󰝥"
  16. label-urgent-foreground = ${colors.alert}
  17. label-urgent-background = ${colors.background-alt}
  18. label-urgent-padding = 2
  19.  
  20. label-empty = "󰝥"
  21. label-empty-foreground = ${colors.disabled}
  22. label-empty-background = ${colors.background-alt}
  23. label-empty-padding = 2
  24.  
  25. [module/bspwm]
  26. type = custom/script
  27. exec = cat $HOME/.config/bspwm/scripts/current-layout
  28. click-left = $HOME/.config/bspwm/scripts/switch-layouts
  29. interval = 1
  30. format = <label>
  31. label = "%output%"
  32. label-font = 15
  33. format-foreground = ${colors.blue}
  34. format-padding = 0
  35.  
  36. [module/launcher]
  37. type = custom/text
  38. content = "󱓞"
  39. content-foreground = ${colors.blue}
  40. click-left = rofi -show drun
  41. content-padding = 3
  42. content-font = 3
  43.  
  44. [module/powermenu]
  45. type = custom/text
  46. content = "  "
  47. content-foreground = ${colors.alert}
  48. click-left = eww open-many --toggle background-closer powermenu
  49. content-padding = 0
  50. content-font = 5
  51.  
  52. [module/tray]
  53. type = custom/script
  54. exec = tail -F $HOME/.config/polybar/scripts/tray-status 2> /dev/null
  55. click-left = $HOME/.config/polybar/scripts/tray --toggle
  56. tail = true
  57. label-font = 10
  58. label-padding = 3
  59.  
  60. [module/date]
  61. type = internal/date
  62. interval = 1
  63.  
  64. date = %I:%M %p - %a, %B %d
  65. date-alt = %a, %B %d
  66.  
  67. label = "%{A1:eww open-many --toggle background-closer main:}%date%%{A}"
  68. label-foreground = ${colors.foreground}
  69.  
  70. [module/network]
  71. type = internal/network
  72. ; Name of the network interface to display. You can get the names of the
  73. ; interfaces on your machine with `ip link`
  74. ; Wireless interfaces often start with `wl` and ethernet interface with `eno` or `eth`
  75. interface = wlan0
  76.  
  77. ; If no interface is specified, polybar can detect an interface of the given type.
  78. ; If multiple are found, it will prefer running interfaces and otherwise just
  79. ; use the first one found.
  80. ; Either 'wired' or 'wireless'
  81. ; New in version 3.6.0
  82. interface-type = wireless
  83.  
  84. ; Seconds to sleep between updates
  85. ; Default: 1
  86. interval = 3.0
  87.  
  88. ; Test connectivity every Nth update
  89. ; A value of 0 disables the feature
  90. ; NOTE: Experimental (needs more testing)
  91. ; Default: 0
  92. ;ping-interval = 3
  93.  
  94. ; @deprecated: Define min width using token specifiers (%downspeed:min% and %upspeed:min%)
  95. ; Minimum output width of upload/download rate
  96. ; Default: 3
  97. udspeed-minwidth = 5
  98.  
  99. ; Accumulate values from all interfaces
  100. ; when querying for up/downspeed rate
  101. ; Default: false
  102. accumulate-stats = true
  103.  
  104. ; Consider an `UNKNOWN` interface state as up.
  105. ; Some devices like USB network adapters have
  106. ; an unknown state, even when they're running
  107. ; Default: false
  108. unknown-as-up = true
  109.  
  110. ; Available tags:
  111. ; <label-connected> (default)
  112. ; <ramp-signal>
  113. format-connected = "%{A1:$HOME/.config/eww/System-Menu/launch:}<ramp-signal>%{A}"
  114.  
  115. ; Available tags:
  116. ; <label-disconnected> (default)
  117. format-disconnected = <label-disconnected>
  118.  
  119. ; Default: (none)
  120. label-disconnected = "%{A1:$HOME/.config/eww/System-Menu/launch:}󰤭%{A}"
  121. label-disconnected-foreground = ${colors.alert}
  122. label-disconnected-background = ${colors.background-alt}
  123. label-disconnected-font = 7
  124. label-disconnected-padding = 1
  125.  
  126. ; Only applies if <ramp-signal> is used
  127. ramp-signal-0 = "󰤯"
  128. ramp-signal-1 = "󰤟"
  129. ramp-signal-2 = "󰤢"
  130. ramp-signal-3 = "󰤥"
  131. ramp-signal-4 = "󰤨"
  132. ramp-signal-foreground = ${colors.foreground}
  133. ramp-signal-background = ${colors.background-alt}
  134. ramp-signal-font = 7
  135. ramp-signal-padding = 1
  136.  
  137. [module/battery]
  138. type = internal/battery
  139.  
  140. ; This is useful in case the battery never reports 100% charge
  141. ; Default: 100
  142. full-at = 100
  143.  
  144. ; format-low once this charge percentage is reached
  145. ; Default: 10
  146. ; New in version 3.6.0
  147. low-at = 20
  148.  
  149. ; Use the following command to list batteries and adapters:
  150. ; $ ls -1 /sys/class/power_supply/
  151. battery = BAT0
  152. adapter = ADP0
  153.  
  154. ; If an inotify event haven't been reported in this many
  155. ; seconds, manually poll for new values.
  156. ;
  157. ; Needed as a fallback for systems that don't report events
  158. ; on sysfs/procfs.
  159. ;
  160. ; Disable polling by setting the interval to 0.
  161. ;
  162. ; Default: 5
  163. poll-interval = 0
  164.  
  165. ; Available tags:
  166. ; <label-charging> (default)
  167. ; <bar-capacity>
  168. ; <ramp-capacity>
  169. ; <animation-charging>
  170. format-charging = "%{A1:$HOME/.config/eww/System-Menu/launch:}<animation-charging>%{A}"
  171.  
  172. ; Available tags:
  173. ; <label-discharging> (default)
  174. ; <bar-capacity>
  175. ; <ramp-capacity>
  176. ; <animation-discharging>
  177. format-discharging = "%{A1:$HOME/.config/eww/System-Menu/launch:}<ramp-capacity>%{A}"
  178.  
  179. ; Format used when battery level drops to low-at
  180. ; If not defined, format-discharging is used instead.
  181. ; Available tags:
  182. ; <label-low>
  183. ; <animation-low>
  184. ; <bar-capacity>
  185. ; <ramp-capacity>
  186. ; New in version 3.6.0
  187. format-low = "%{A1:$HOME/.config/eww/System-Menu/launch:}<animation-low>%{A}"
  188. format-full = "%{A1:$HOME/.config/eww/System-Menu/launch:}<ramp-capacity>%{A}"
  189.  
  190. ; Available tokens:
  191. ; %percentage% (default) - is set to 100 if full-at is reached
  192. ; %percentage_raw%
  193. ; %time%
  194. ; %consumption% (shows current charge rate in watts)
  195. label-charging = %percentage%%
  196. label-charging-padding = 1
  197.  
  198. ; Available tokens:
  199. ; %percentage% (default) - is set to 100 if full-at is reached
  200. ; %percentage_raw%
  201. ; %time%
  202. ; %consumption% (shows current discharge rate in watts)
  203. label-discharging = %percentage%%
  204. label-discharging-padding = 1
  205.  
  206. ; Available tokens:
  207. ; %percentage% (default) - is set to 100 if full-at is reached
  208. ; %percentage_raw%
  209. ; %time%
  210. ; %consumption% (shows current discharge rate in watts)
  211. ; New in version 3.6.0
  212. label-low = %percentage%%
  213. label-low-padding = 1
  214.  
  215. ; Only applies if <animation-charging> is used
  216. animation-charging-0 = "  "
  217. animation-charging-1 = "  "
  218. animation-charging-2 = "  "
  219. animation-charging-3 = "  "
  220. animation-charging-4 = "  "
  221. animation-charging-foreground = ${colors.secondary}
  222. animation-charging-background = ${colors.background-alt}
  223. animation-charging-font = 6
  224. ; Framerate in milliseconds
  225. animation-charging-framerate = 750
  226.  
  227. ; Only applies if <ramp-capacity> is used
  228. ramp-capacity-0 = "  "
  229. ramp-capacity-1 = "  "
  230. ramp-capacity-2 = "  "
  231. ramp-capacity-3 = "  "
  232. ramp-capacity-4 = "  "
  233. ramp-capacity-background = ${colors.background-alt}
  234. ramp-capacity-font = 6
  235.  
  236. ; Framerate in milliseconds
  237. animation-discharging-framerate = 500
  238.  
  239. ; Only applies if <animation-low> is used
  240. ; New in version 3.6.0
  241. animation-low-0 = " "
  242. animation-low-1 = " "
  243. animation-low-framerate = 200
  244. animation-low-background = ${colors.background-alt}
  245. animation-low-font = 6
  246. animation-low-foreground = ${colors.alert}
  247.  
  248. [module/pulseaudio]
  249. type = internal/pulseaudio
  250.  
  251. ; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
  252. ; Default: true
  253. use-ui-max = false
  254.  
  255. ; Interval for volume increase/decrease (in percent points)
  256. ; Default: 5
  257. interval = 5
  258.  
  259. ; Available tags:
  260. ; <label-volume> (default)
  261. ; <ramp-volume>
  262. ; <bar-volume>
  263. format-volume = "%{A1:$HOME/.config/eww/System-Menu/launch:}<ramp-volume>%{A}"
  264.  
  265. ; Available tags:
  266. ; <label-muted> (default)
  267. ; <ramp-volume>
  268. ; <bar-volume>
  269. format-muted = "%{A1:$HOME/.config/eww/System-Menu/launch:}<label-muted>%{A}"
  270.  
  271. ; Available tokens:
  272. ; %percentage% (default)
  273. ; %decibels%
  274. ;label-volume = %percentage%%
  275.  
  276. ; Available tokens:
  277. ; %percentage% (default)
  278. ; %decibels%
  279. label-muted = "󰝟"
  280. label-muted-foreground = ${colors.alert}
  281. label-muted-background = ${colors.background-alt}
  282. label-muted-font = 9
  283. label-muted-padding = 1
  284.  
  285. ; Only applies if <ramp-volume> is used
  286. ramp-volume-0 = "󰕿"
  287. ramp-volume-1 = "󰖀"
  288. ramp-volume-2 = "󰕾"
  289. ramp-volume-font = 9
  290. ramp-volume-background = ${colors.background-alt}
  291. ramp-volume-padding = 1
  292.  
  293. ; Right and Middle click
  294. click-right = amixer sset Master toggle
  295. ; click-middle =
  296.  
  297. [module/github]
  298. type = custom/script
  299. exec = $HOME/.config/polybar/scripts/github
  300. format = <label>
  301. label = %output%
  302. format-prefix = "󰊤 "
  303. format-prefix-font = 3
  304. interval = 60
  305. format-padding = 3
  306.  
  307. [module/updates]
  308. type = custom/script
  309. exec = ~/.config/polybar/scripts/updates
  310. format = <label>
  311. label = "%output%"
  312. format-foreground = ${colors.foreground}
  313. format-background = ${colors.background-alt}
  314. label-font = 12
  315. format-font = 6
  316. format-prefix = " "
  317. interval = 7200
  318. click-left = kitty --hold paru
  319.  
  320. [module/seperator]
  321. type = custom/text
  322. content = " "
  323. content-font = 3
  324.  
  325. [module/spotify]
  326. type = custom/script
  327. tail = true
  328. interval = 1
  329. format-prefix = "%{A1:eww open-many --toggle background-closer player:} %{A}"
  330. format-prefix-padding = 1
  331. format-font = 14
  332. label-font = 13
  333. format-background = ${colors.background-alt}
  334. format-foreground = ${colors.foreground}
  335. format = "%{A1:eww open-many --toggle background-closer player:}<label>%{A}"
  336. exec = ~/.config/polybar/scripts/scroll-spotify
  337.  
  338. [module/bluetooth]
  339. type = custom/script
  340. exec = ~/.config/polybar/scripts/bluetooth
  341. interval = 2
  342. click-left = exec blueberry
  343. click-right = exec ~/.config/polybar/scripts/toggle-bluetooth
  344. format-padding = 1
  345. format-font = 2
  346. format-background = ${colors.background-alt}
  347. format-foreground = ${colors.foreground}
  348.  
  349. [module/microphone]
  350. type = custom/script
  351. exec = ~/.config/polybar/scripts/microphone
  352. interval = 5
  353. format-padding = 1
  354. format-font = 14
  355. format-background = ${colors.background-alt}
  356. format-foreground = ${colors.foreground}
  357.  
  358. [module/gamemode]
  359. type = custom/script
  360. exec = ~/.config/polybar/scripts/gamemode
  361. interval = 2
  362. format-padding = 1
  363. format-font = 5
  364. format-background = ${colors.background-alt}
  365. format-foreground = ${colors.foreground}
  366.  
  367. [module/temperature]
  368. type = internal/temperature
  369.  
  370. ; Seconds to sleep between updates
  371. ; Default: 1
  372. interval = 1
  373.  
  374. format-foreground = ${colors.foreground}
  375. format-background = ${colors.background-alt}
  376. #label-font = 11
  377. format-font = 12
  378. #label-padding = 1
  379. label-padding = 1
  380.  
  381. ; Thermal zone to use
  382. ; To list all the zone types, run
  383. ; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done
  384. ; Default: 0
  385. thermal-zone = 0
  386.  
  387. ; Full path of temperature sysfs path
  388. ; Use `sensors` to find preferred temperature source, then run
  389. ; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done
  390. ; to find path to desired file
  391. ; Default reverts to thermal zone setting
  392. hwmon-path = /sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon4/temp1_input
  393.  
  394. ; Base temperature for where to start the ramp (in degrees celsius)
  395. ; Default: 0
  396. base-temperature = 20
  397.  
  398. ; Threshold temperature to display warning label (in degrees celsius)
  399. ; Default: 80
  400. warn-temperature = 80
  401.  
  402. [module/memory]
  403. type = internal/memory
  404.  
  405. ; Seconds to sleep between updates
  406. ; Default: 1
  407. interval = 1
  408.  
  409. ; Available tags:
  410. ; <label> (default)
  411. ; <bar-used>
  412. ; <bar-free>
  413. ; <ramp-used>
  414. ; <ramp-free>
  415. ; <bar-swap-used>
  416. ; <bar-swap-free>
  417. ; <ramp-swap-used>
  418. ; <ramp-swap-free>
  419. format = <label>
  420.  
  421. format-foreground = ${colors.foreground}
  422. format-background = ${colors.background-alt}
  423. #label-font = 11
  424. format-font = 12
  425. #label-padding = 1
  426. label-padding = 1
  427. ; Available tokens:
  428. ; %percentage_used% (default)
  429. ; %percentage_free%
  430. ; %gb_used%
  431. ; %gb_free%
  432. ; %gb_total%
  433. ; %mb_used%
  434. ; %mb_free%
  435. ; %mb_total%
  436. ; %percentage_swap_used%
  437. ; %percentage_swap_free%
  438. ; %mb_swap_total%
  439. ; %mb_swap_free%
  440. ; %mb_swap_used%
  441. ; %gb_swap_total%
  442. ; %gb_swap_free%
  443. ; %gb_swap_used%
  444.  
  445. label = " %gb_used%"
  446.  
  447. ; Only applies if <ramp-used> is used
  448. ;;ramp-used-0 = ${memory.used0}
  449. ;;ramp-used-1 = ${memory.used1}
  450. ;;ramp-used-2 = ${memory.used2}
  451.  
  452. ; Only applies if <ramp-free> is used
  453. ;;ramp-free-0 = ${memory.free0}
  454. ;;ramp-free-1 = ${memory.free1}
  455. ;;ramp-free-2 = ${memory.free2}
Advertisement
Add Comment
Please, Sign In to add comment