Advertisement
Guest User

polybar_config

a guest
Nov 11th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.07 KB | None | 0 0
  1. ; default colors defined in .Xdefaults
  2. [colors]
  3. red= ${xrdb:*color1:#ffffff}
  4. gray= ${xrdb:*color2:#ffffff}
  5. yellow= ${xrdb:*color3:#ffffff}
  6. blue= ${xrdb:*color4:#ffffff}
  7. mangenta= ${xrdb:*color5:#ffffff}
  8. cyan= ${xrdb:*color6:#ffffff}
  9. white= ${xrdb:*color7:#ffffff}
  10.  
  11. ; grey labels on black bar
  12. foreground= #ffffff
  13. background= #000000
  14. background-focused= #404040
  15.  
  16. [module/i3]
  17. type = internal/i3
  18.  
  19. ; Only show workspaces defined on the same output as the bar
  20. ;
  21. ; Useful if you want to show monitor specific workspaces
  22. ; on different bars
  23. ;
  24. ; Default: false
  25. pin-workspaces = false
  26.  
  27. ; This will split the workspace name on ':'
  28. ; Default: false
  29. strip-wsnumbers = true
  30.  
  31. ; Sort the workspaces by index instead of the default
  32. ; sorting that groups the workspaces by output
  33. ; Default: false
  34. index-sort = true
  35.  
  36. ; Create click handler used to focus workspace
  37. ; Default: true
  38. enable-click = true
  39.  
  40. ; Create scroll handlers used to cycle workspaces
  41. ; Default: true
  42. enable-scroll = true
  43.  
  44. ; Wrap around when reaching the first/last workspace
  45. ; Default: true
  46. wrapping-scroll = true
  47.  
  48. ; Set the scroll cycle direction
  49. ; Default: true
  50. reverse-scroll = false
  51.  
  52. ; Use fuzzy (partial) matching on labels when assigning
  53. ; icons to workspaces
  54. ; Example: code;♚ will apply the icon to all workspaces
  55. ; containing 'code' in the label
  56. ; Default: false
  57. fuzzy-match = true
  58.  
  59.  
  60. ; ws-icon-[0-9]+ = label;icon
  61. ; NOTE: The label needs to match the name of the i3 workspace
  62. ws-icon-0 = 1;
  63. ws-icon-1 = 2;
  64. ws-icon-2 = 3;
  65. ws-icon-3 = 4;
  66. ws-icon-4 = 5;
  67. ws-icon-5 = 6;
  68. ws-icon-6 = 7;
  69. ws-icon-7 = 8;
  70. ;ws-icon-default =
  71.  
  72. format = <label-state> <label-mode>
  73.  
  74. label-mode = %mode%
  75. label-mode-padding = 2
  76. label-mode-background = ${colors.background}
  77.  
  78. label-focused = %icon% %name%
  79. label-focused-foreground = ${colors.foreground}
  80. label-focused-background = ${colors.background-focused}
  81. label-focused-underline = #b13f47
  82. label-focused-padding = 2
  83.  
  84. label-unfocused = %icon% %name%
  85. label-unfocused-foreground = ${colors.foreground}
  86. label-unfocused-background = ${colors.background}
  87. label-unfocused-padding = 2
  88.  
  89. label-visible = %icon% %name%
  90. label-visible-underline = #555555
  91. label-visible-padding = 2
  92.  
  93. label-urgent = %icon% %name%
  94. label-urgent-foreground = ${colors.foreground}
  95. label-urgent-background = ${colors.background}
  96. label-urgent-padding = 2
  97.  
  98. [bar/mybar]
  99. ; Small font + 2 pixel vertical offset
  100. font-0 = DejaVuSansMono Nerd Font:size=9;2
  101.  
  102. height = 12
  103. margin = 5
  104. module-margin-right = 1
  105. module-margin-left = 1
  106. border-size = 0
  107. border-color = 0
  108.  
  109.  
  110. ; right side of the bar for addtitional information
  111. modules-right = temperature cpu pulseaudio wifi battery date
  112.  
  113. ; left side displays workspaces
  114. modules-left = i3
  115.  
  116.  
  117. [module/date]
  118. type = internal/date
  119. date = "%{F#000000}%{R}%{R}%{F-} %d.%m.%Y %H:%M "
  120. format-foreground = ${colors.foreground}
  121. format-background = ${colors.background-focused}
  122. interval = 5
  123.  
  124.  
  125. [module/battery]
  126. type = internal/battery
  127. battery = BAT0
  128. adapter = ADP1
  129. full-at = 98
  130.  
  131. time-format = %H:%M
  132.  
  133.  
  134. format-charging = "%{F#000000}%{R}%{R}%{F-} <animation-charging> <label-charging> "
  135. format-discharging = "%{F#000000}%{R}%{R}%{F-} <ramp-capacity> <label-discharging> "
  136. label-full =  %percentage%%
  137.  
  138. format-discharging-foreground = ${colors.foreground}
  139. format-discharging-background = ${colors.background-focused}
  140. format-charging-foreground = ${colors.foreground}
  141. format-charging-background = ${colors.background-focused}
  142.  
  143. label-discharging = %percentage%% %time% %consumption%W
  144.  
  145.  
  146.  
  147. ramp-capacity-0 = 
  148. ramp-capacity-0-foreground = ${colors.red}
  149. ramp-capacity-1 = 
  150. ramp-capacity-1-foreground = ${colors.yellow}
  151. ramp-capacity-2 = 
  152. ramp-capacity-3 = 
  153. ramp-capacity-4 = 
  154. ;ramp-capacity-foreground = ${colors.cyan}
  155.  
  156. animation-charging-0 = 
  157. animation-charging-1 = 
  158. animation-charging-2 = 
  159. animation-charging-3 = 
  160. animation-charging-4 = 
  161. animation-charging-framerate = 750
  162.  
  163. [module/wifi]
  164. type = internal/network
  165. interface = wlp2s0
  166. interval = 1.0
  167. ping-interval = 10
  168.  
  169. format-connected-foreground = ${colors.foreground}
  170. format-connected-background = ${colors.background-focused}
  171.  
  172. format-connected = "%{F#000000}%{R}%{R}%{F-} <ramp-signal> <label-connected> "
  173. label-connected = %local_ip%  %downspeed:6:6%  %upspeed:6:6%
  174. label-disconnected = not connected
  175. label-disconnected-foreground = #66
  176.  
  177. ramp-signal-0 = 
  178.  
  179. [module/pulseaudio]
  180. type = internal/pulseaudio
  181.  
  182. ; Sink to be used, if it exists (find using `pacmd list-sinks`, name field)
  183. ; If not, uses default sink
  184. ;sink = alsa_output.pci-0000_12_00.3.analog-stereo
  185.  
  186. ; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
  187. ; Default: true
  188. use-ui-max = true
  189.  
  190. ; Interval for volume increase/decrease (in percent points)
  191. ; Default: 5
  192. interval = 5
  193.  
  194. format-volume-foreground = ${colors.foreground}
  195. format-volume-background = ${colors.background-focused}
  196.  
  197. format-volume = "%{F#000000}%{R}%{R}%{F-} <ramp-volume> <label-volume> "
  198.  
  199.  
  200. format-muted-foreground = ${colors.foreground}
  201. format-muted-background = ${colors.background-focused}
  202.  
  203. ; Available tokens:
  204. ; %percentage% (default)
  205. label-muted = "%{F#000000}%{R}%{R}%{F-} 婢 "
  206.  
  207. ; Only applies if <ramp-volume> is used
  208. ramp-volume-0 = 奄
  209. ramp-volume-1 = 奔
  210. ramp-volume-2 = 墳
  211.  
  212. [module/cpu]
  213. type = internal/cpu
  214.  
  215. format-foreground = ${colors.foreground}
  216. format-background = ${colors.background-focused}
  217. format = "<label> <ramp-coreload> "
  218.  
  219. ; Available tokens:
  220. ; %percentage% (default) - total cpu load averaged over all cores
  221. ; %percentage-sum% - Cumulative load on all cores
  222. ; %percentage-cores% - load percentage for each core
  223. ; %percentage-core[1-9]% - load percentage for specific core
  224. label = "%{F#000000}%{R}%{R}%{F-} CPU %percentage:2:2%% "
  225.  
  226. ; Spacing between individual per-core ramps
  227. ramp-coreload-spacing = 0
  228. ramp-coreload-0 = ▁
  229. ramp-coreload-1 = ▂
  230. ramp-coreload-2 = ▃
  231. ramp-coreload-3 = ▄
  232. ramp-coreload-4 = ▅
  233. ramp-coreload-5 = ▆
  234. ramp-coreload-6 = ▇
  235. ramp-coreload-7 = █
  236.  
  237. [module/temperature]
  238. type = internal/temperature
  239.  
  240. ; Thermal zone to use
  241. ; To list all the zone types, run
  242. ; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done
  243. ; Default: 0
  244. thermal-zone = 0
  245.  
  246. ; Full path of temperature sysfs path
  247. ; Use `sensors` to find preferred temperature source, then run
  248. ; $ 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
  249. ; to find path to desired file
  250. ; Default reverts to thermal zone setting
  251. hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon4/temp1_input
  252.  
  253. ; Base temperature for where to start the ramp (in degrees celsius)
  254. ; Default: 0
  255. base-temperature = 30
  256.  
  257. ; Threshold temperature to display warning label (in degrees celsius)
  258. ; Default: 80
  259. warn-temperature = 90
  260.  
  261. format-foreground = ${colors.foreground}
  262. format-background = ${colors.background-focused}
  263.  
  264. format = <label>
  265. label = "%{F#000000}%{R}%{R}%{F-} %temperature-c% "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement