Cpone

polybar

Oct 2nd, 2017
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.16 KB | None | 0 0
  1. [bar/top]
  2. width = 100%
  3. height = 40
  4.  
  5. monitor = ${env:MONITOR:eDP-1}
  6.  
  7. background = #141021
  8. foreground = #c4b7c5
  9.  
  10. fixed-center = true
  11.  
  12. font-0 = PragmataPro Nerd Font:pixelsize=12:weight=bold;0
  13.  
  14. modules-left = i3
  15. modules-center = date weather
  16. modules-right = wireless-network cpu memory temperature pavolume backlight battery powermenu
  17.  
  18. scroll-up = i3wm-wsnext
  19. scroll-down = i3wm-wsprev
  20.  
  21.  
  22. [module/i3]
  23. type = internal/i3
  24.  
  25. pin-workspaces = true
  26. strip-wsnumbers = true
  27. index-sort = true
  28. enable-scroll = false
  29.  
  30. format = <label-state>
  31. format-padding-right = 2
  32.  
  33. label-unfocused-foreground = #8a7f8f
  34. label-unfocused-padding = 1
  35.  
  36. label-focused-foreground = #c16772
  37. label-focused-padding = 1
  38.  
  39. label-urgent-foreground = #e4b226
  40. label-urgent-padding = 1
  41.  
  42.  
  43. [module/cpu]
  44. type = internal/cpu
  45.  
  46. interval = 1
  47.  
  48. format = <label>
  49. format-padding = 2
  50.  
  51. label = ï‹› %percentage%%
  52.  
  53.  
  54. [module/memory]
  55. type = internal/memory
  56.  
  57. interval = 1
  58.  
  59. format = <label>
  60. format-padding = 2
  61.  
  62. label =  %gb_used% (%percentage_used%%)
  63.  
  64.  
  65. [module/temperature]
  66. type = internal/temperature
  67.  
  68. interval = 1
  69.  
  70. thermal-zone = 6
  71.  
  72. warn-temperature = 80
  73.  
  74. format = <ramp> <label>
  75. format-padding = 2
  76.  
  77. format-warn = <ramp> <label-warn>
  78. format-warn-padding = 2
  79.  
  80. label = %temperature%
  81.  
  82. label-warn = %temperature%
  83. label-warn-foreground = #e4b226
  84.  
  85. ramp-0 = ï‹‹
  86. ramp-1 = 
  87. ramp-2 = 
  88. ramp-3 = 
  89. ramp-4 = 
  90.  
  91.  
  92. [module/date]
  93. type = internal/date
  94.  
  95. interval = 1
  96.  
  97. date = %a %b %d,
  98. time = %H:%M:%S
  99.  
  100. date-alt = %A, %d %B %Y
  101. time-alt = %H:%M:%S
  102.  
  103. format = <label>
  104. format-padding = 2
  105.  
  106. label =  %date% %time%
  107.  
  108.  
  109. [module/battery]
  110. type = internal/battery
  111.  
  112. full-at = 100
  113.  
  114. battery = BAT1
  115. adapter = ACAD
  116.  
  117. poll-interval = 5
  118.  
  119. format-charging = <animation-charging> <label-charging>
  120. format-charging-padding = 2
  121.  
  122. format-discharging = <ramp-capacity> <label-discharging>
  123. format-discharging-padding = 2
  124.  
  125. format-full = <ramp-capacity> <label-full>
  126. format-full-padding = 2
  127.  
  128. label-charging = %percentage%%
  129.  
  130. label-discharging = %percentage%%
  131.  
  132. label-full = %percentage%%
  133.  
  134. ramp-capacity-0 = 
  135. ramp-capacity-1 = 
  136. ramp-capacity-2 = 
  137. ramp-capacity-3 = 
  138. ramp-capacity-4 = 
  139.  
  140. animation-charging-0 = 
  141. animation-charging-1 = 
  142. animation-charging-2 = 
  143. animation-charging-3 = 
  144. animation-charging-4 = 
  145. animation-charging-framerate = 500
  146.  
  147.  
  148. [module/backlight]
  149. type = internal/backlight
  150.  
  151. card = intel_backlight
  152.  
  153. format = <label>
  154. format-padding = 2
  155.  
  156. label =  %percentage%%
  157.  
  158.  
  159. [module/pavolume]
  160. type = custom/script
  161.  
  162. interval = 1
  163.  
  164. format-padding = 2
  165.  
  166. exec = ~/scripts/pavolume.sh
  167.  
  168. click-left = ~/scripts/pavolume.sh --togmute
  169. scroll-up = ~/scripts/pavolume.sh --up
  170. scroll-down = ~/scripts/pavolume.sh --down
  171.  
  172.  
  173. [module/powermenu]
  174. type = custom/menu
  175.  
  176. label-open = 
  177.  
  178. label-close = cancel
  179.  
  180. label-close-background = #312842
  181. label-close-foreground = #ffeefc
  182. label-open-padding-left = 4
  183. label-open-padding-right = 3
  184. label-close-padding = 3
  185.  
  186. menu-0-0 = lock
  187. menu-0-0-exec = ~/scripts/lock.sh
  188. menu-0-0-background = #312842
  189. menu-0-0-foreground = #c05c47
  190. menu-0-0-padding-right = 3
  191.  
  192. menu-0-1 = reboot
  193. menu-0-1-exec = menu-open-1
  194. menu-0-1-background = #312842
  195. menu-0-1-foreground = #c05c47
  196. menu-0-1-padding-right = 3
  197.  
  198. menu-0-2 = power off
  199. menu-0-2-exec = menu-open-2
  200. menu-0-2-background = #312842
  201. menu-0-2-foreground = #c05c47
  202. menu-0-2-padding-right = 3
  203.  
  204. menu-1-0 = reboot?
  205. menu-1-0-exec = reboot
  206. menu-1-0-background = #312842
  207. menu-1-0-foreground = #e4b226
  208. menu-1-0-padding-right = 3
  209.  
  210. menu-2-0 = power off?
  211. menu-2-0-exec = poweroff
  212. menu-2-0-background = #312842
  213. menu-2-0-foreground = #e4b226
  214. menu-2-0-padding-right = 3
  215.  
  216.  
  217. [module/weather]
  218. type = custom/script
  219.  
  220. interval = 120
  221.  
  222. format-padding = 2
  223.  
  224. exec = ~/scripts/weather.py
  225.  
  226.  
  227. [module/wireless-network]
  228. type = internal/network
  229.  
  230. interface = wlo1
  231.  
  232. format-connected = <label-connected>
  233. format-connected-padding = 2
  234.  
  235. format-disconnected = <label-disconnected>
  236. format-disconnected-padding = 2
  237.  
  238. label-connected =  %essid%
  239.  
  240. label-disconnected =  None
Advertisement
Add Comment
Please, Sign In to add comment