Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.21 KB | None | 0 0
  1. [bar/mybar]
  2. ; Use either of the following command to list available outputs:
  3. ; If unspecified, the application will pick the first one it finds.
  4. ; $ polybar -m | cut -d ':' -f 1
  5. ; $ xrandr -q | grep " connected" | cut -d ' ' -f1
  6. ; monitor = HDMI-0
  7.  
  8. ; Use the specified monitor as a fallback if the main one is not found.
  9. ; monitor-fallback =
  10.  
  11. ; Require the monitor to be in connected state
  12. ; XRandR sometimes reports my monitor as being disconnected (when in use)
  13. ; monitor-strict = false
  14.  
  15. ; Tell the Window Manager not to configure the window.
  16. ; Use this to detach the bar if your WM is locking its size/position.
  17. ; Note: With this most WMs will no longer reserve space for
  18. ; the bar and it will overlap other windows. You need to configure
  19. ; your WM to add a gap where the bar will be placed.
  20. override-redirect = true
  21.  
  22. ; Put the bar at the bottom of the screen
  23. bottom = true
  24.  
  25. ; Prefer fixed center position for the `modules-center` block
  26. ; When false, the center position will be based on the size of the other blocks.
  27. fixed-center = true
  28.  
  29. ; Dimension defined as pixel value (e.g. 35) or percentage (e.g. 50%),
  30. ; the percentage can optionally be extended with a pixel offset like so:
  31. ; 50%:-10, this will result in a width or height of 50% minus 10 pixels
  32. width = 93.25%
  33. height = 37
  34.  
  35. ; Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
  36. ; the percentage can optionally be extended with a pixel offset like so:
  37. ; 50%:-10, this will result in an offset in the x or y direction
  38. ; of 50% minus 10 pixels
  39. offset-x = 3.4%
  40. offset-y = 12
  41.  
  42. ; Background ARGB color (e.g. #f00, #ff992a, #ddff1023)
  43. background = #550a0f14
  44.  
  45. ; Foreground ARGB color (e.g. #f00, #ff992a, #ddff1023)
  46. foreground = #000
  47.  
  48. ; Background gradient (vertical steps)
  49. ; background-[0-9]+ = #aarrggbb
  50. ; background-0 =
  51.  
  52. ; Value used for drawing rounded corners
  53. ; Note: This shouldn't be used together with border-size because the border
  54. ; doesn't get rounded. For this to work you may also need to enable
  55. ; pseudo-transparency or use a compositor like compton.
  56. ; Individual top/bottom values can be defined using:
  57. ; radius-{top,bottom}
  58. radius = 5.0
  59.  
  60. ; Under-/overline pixel size and argb color
  61. ; Individual values can be defined using:
  62. ; {overline,underline}-size
  63. ; {overline,underline}-color
  64. line-size = 0
  65. line-color = #f00
  66.  
  67. ; Values applied to all borders
  68. ; Individual side values can be defined using:
  69. ; border-{left,top,right,bottom}-size
  70. ; border-{left,top,right,bottom}-color
  71. ; The top and bottom borders are added to the bar height, so the effective
  72. ; window height is:
  73. ; height + border-top-size + border-bottom-size
  74. ; Meanwhile the effective window width is defined entirely by the width key and
  75. ; the border is placed withing this area. So you effectively only have the
  76. ; following horizontal space on the bar:
  77. ; width - border-right-size - border-left-size
  78.  
  79.  
  80. ; Number of spaces to add at the beginning/end of the bar
  81. ; Individual side values can be defined using:
  82. ; padding-{left,right}
  83. padding-right = 4
  84.  
  85. ; Number of spaces to add before/after each module
  86. ; Individual side values can be defined using:
  87. ; module-margin-{left,right}
  88. module-margin = 1
  89.  
  90. ; Fonts are defined using <font-name>;<vertical-offset>
  91. ; Font names are specified using a fontconfig pattern.
  92. ; font-0 = NotoSans-Regular:size=8;2
  93. ; font-1 = MaterialIcons:size=10
  94. ; font-2 = Termsynu:size=8;-1
  95. ; font-3 = FontAwesome:size=10
  96. ; See the Fonts wiki page for more details
  97. font-0 = Inconsolata:bold:size=10;1.5
  98. font-1 = FontAwesome5Free:style=Solid:size=10;2
  99.  
  100. ; Modules are added to one of the available blocks
  101. ; modules-left = cpu ram
  102. ; modules-center = xwindow xbacklight
  103. ; modules-right = ipc clock
  104. modules-left = i3
  105. modules-center =
  106. modules-right = xbacklight sep volume sep wlan sep battery sep temperature sep memory sep cpu sep date
  107.  
  108. ; The separator will be inserted between the output of each module
  109. separator =
  110.  
  111. ; This value is used to add extra spacing between elements
  112. ; @deprecated: This parameter will be removed in an upcoming version
  113. spacing = 0
  114.  
  115. ; Opacity value between 0.0 and 1.0 used on fade in/out
  116. dim-value = 1.0
  117.  
  118. ; Value to be used to set the WM_NAME atom
  119. ; If the value is empty or undefined, the atom value
  120. ; will be created from the following template: polybar-[BAR]_[MONITOR]
  121. ; NOTE: The placeholders are not available for custom values
  122. wm-name = i3
  123.  
  124.  
  125. ; Position of the system tray window
  126. ; If empty or undefined, tray support will be disabled
  127. ; NOTE: A center aligned tray will cover center aligned modules
  128. ;
  129. ; Available positions:
  130. ; left
  131. ; center
  132. ; right
  133. ; none
  134. tray-position = right
  135.  
  136. ; If true, the bar will not shift its
  137. ; contents when the tray changes
  138. tray-detached = false
  139.  
  140. ; Tray icon max size
  141. tray-maxsize = 16
  142.  
  143. ; DEPRECATED! Since 3.3.0 the tray always uses pseudo-transparency
  144. ; Enable pseudo transparency
  145. ; Will automatically be enabled if a fully transparent
  146. ; background color is defined using `tray-background`
  147. tray-transparent = false
  148.  
  149. ; Background color for the tray container
  150. ; ARGB color (e.g. #f00, #ff992a, #ddff1023)
  151. ; By default the tray container will use the bar
  152. ; background color.
  153. tray-background = ${root.background}
  154.  
  155. ; Tray offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
  156. tray-offset-x = 0
  157. tray-offset-y = 0
  158.  
  159. ; Pad the sides of each tray icon
  160. tray-padding = 0
  161.  
  162. ; Scale factor for tray clients
  163. tray-scale = 1.0
  164.  
  165. ; Restack the bar window and put it above the
  166. ; selected window manager's root
  167. ;
  168. ; Fixes the issue where the bar is being drawn
  169. ; on top of fullscreen window's
  170. ;
  171. ; Currently 333399supported WM's:
  172. ; bspwm
  173. ; i3 (requires: `override-redirect = true`)
  174. ; wm-restack =
  175.  
  176. ; Set a DPI values used when rendering text
  177. ; This only affects scalable fonts
  178. ; Set this to 0 to let polybar calculate the dpi from the screen size.
  179. ; dpi =
  180. dpi-x = 96
  181. dpi-y = 96
  182.  
  183. ; Enable support for inter-process messaging
  184. ; See the Messaging wiki page for more details.
  185. enable-ipc = false
  186.  
  187. ; Fallback click handlers that will be called if
  188. ; there's no matching module handler found.
  189. [module/i3]
  190. type = internal/i3
  191.  
  192. ; Only show workspaces defined on the same output as the bar
  193. ;
  194. ; Useful if you want to show monitor specific workspaces
  195. ; on different bars
  196. ;
  197. ; Default: false
  198. pin-workspaces = true
  199.  
  200. ; This will split the workspace name on ':'
  201. ; Default: false
  202. strip-wsnumbers = true
  203.  
  204. ; Sort the workspaces by index instead of the default
  205. ; sorting that groups the workspaces by output
  206. ; Default: false
  207. index-sort = true
  208.  
  209. ; Create click handler used to focus workspace
  210. ; Default: true
  211. enable-click = true
  212.  
  213. ; Create scroll handlers used to cycle workspaces
  214. ; Default: true
  215. enable-scroll = false
  216.  
  217. ; Wrap around when reaching the first/last workspace
  218. ; Default: true
  219. wrapping-scroll = false
  220.  
  221. ; Set the scroll cycle direction
  222. ; Default: true
  223. reverse-scroll = false
  224.  
  225. ; Use fuzzy (partial) matching on labels when assigning
  226. ; icons to workspaces
  227. ; Example: code;♚ will apply the icon to all workspaces
  228. ; containing 'code' in the label
  229. ; Default: false
  230. fuzzy-match = true
  231.  
  232. label-unfocused = %index%
  233. label-unfocused-padding = 2
  234. label-unfocused-foreground = #ffffff
  235.  
  236. label-focused = %index%
  237. label-focused-foreground = #fff
  238. label-focused-background = #4e5165
  239. label-focused-underline = #fba922
  240. label-focused-padding = 2
  241.  
  242. [module/xbacklight]
  243. type = internal/xbacklight
  244.  
  245. format = <label> <bar>
  246. label = BL
  247.  
  248. bar-width = 10
  249. bar-indicator = |
  250. bar-indicator-foreground = #ff
  251. bar-indicator-font = 2
  252. bar-fill = ─
  253. bar-fill-font = 2
  254. bar-fill-foreground = #9f78e1
  255. bar-empty = ─
  256. bar-empty-font = 2
  257. bar-empty-foreground = ${colors.foreground-alt}
  258.  
  259. [module/backlight-acpi]
  260. inherit = module/xbacklight
  261. type = internal/backlight
  262. card = intel_backlight
  263.  
  264.  
  265. [module/volume]
  266. type = internal/volume
  267.  
  268. format-volume = <label-volume> <bar-volume>
  269. label-volume = VOL
  270. label-volume-foreground = ${root.foreground}
  271.  
  272. format-muted-prefix = " "
  273. format-muted-foreground = ${colors.foreground-alt}
  274. label-muted = sound muted
  275.  
  276. bar-volume-width = 10
  277. bar-volume-foreground-0 = #fff
  278. bar-volume-foreground-1 = #fff
  279. bar-volume-foreground-2 = #fff
  280. bar-volume-foreground-3 = #fff
  281. bar-volume-foreground-4 = #fff
  282. bar-volume-foreground-5 = #f5a70a
  283. bar-volume-foreground-6 = #ff5555
  284. bar-volume-gradient = false
  285. bar-volume-indicator = |
  286. bar-volume-indicator-font = 2
  287. bar-volume-fill = ─
  288. bar-volume-fill-font = 2
  289. bar-volume-empty = ─
  290. bar-volume-empty-font = 2
  291. bar-volume-empty-foreground = #fff
  292.  
  293. [module/wlan]
  294. type = internal/network
  295. interface = net1
  296. interval = 3.0
  297.  
  298. format-connected = <ramp-signal> <label-connected>
  299. format-connected-underline = #9f78e1
  300. label-connected = %essid%
  301.  
  302. format-disconnected =
  303. ;format-disconnected = <label-disconnected>
  304. ;format-disconnected-underline = ${self.format-connected-underline}
  305. ;label-disconnected = %ifname% disconnected
  306. ;label-disconnected-foreground = #fff
  307.  
  308. ramp-signal-0 = 
  309. ramp-signal-1 = 
  310. ramp-signal-2 = 
  311. ramp-signal-3 = 
  312. ramp-signal-4 = 
  313. ramp-signal-foreground = #fff
  314.  
  315. [module/battery]
  316. type = internal/battery
  317. battery = BAT0
  318. adapter = ADP1
  319. full-at = 98
  320.  
  321. format-charging = <animation-charging> <label-charging>
  322. format-charging-underline = #ffb52a
  323.  
  324. format-discharging = <ramp-capacity> <label-discharging>
  325. format-discharging-underline = ${self.format-charging-underline}
  326.  
  327. format-full-prefix = " "
  328. format-full-prefix-foreground = #fff
  329. format-full-underline = ${self.format-charging-underline}
  330.  
  331. ramp-capacity-0 = 
  332. ramp-capacity-1 = 
  333. ramp-capacity-2 = 
  334. ramp-capacity-foreground = #fff
  335.  
  336. animation-charging-0 = 
  337. animation-charging-1 = 
  338. animation-charging-2 = 
  339. animation-charging-foreground = #fff
  340. animation-charging-framerate = 750
  341.  
  342. [module/date]
  343. type = internal/date
  344.  
  345. ; Seconds to sleep between updates
  346. interval = 1.0
  347.  
  348. ; See "http://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string
  349. ; NOTE: if you want to use syntax tags here you need to use %%{...}
  350. date = %Y-%m-%d%
  351.  
  352. ; Optional time format
  353. time = %H:%M
  354.  
  355. ; if `date-alt` or `time-alt` is defined, clicking
  356. ; the module will toggle between formats
  357. date-alt = %A, %d %B %Y
  358. time-alt = %H:%M:%S
  359.  
  360. label = %date% %time%
  361. label-font = 0
  362. label-foreground = #fff
  363.  
  364. [module/wireless-network]
  365. type = internal/network
  366. interface = wlp2s0
  367.  
  368. label-connected = %essid%
  369. format-connected = <ramp-signal>
  370. label-connected-foreground = #82B414
  371.  
  372. format-disconnected = <label-disconnected>
  373. label-disconnected = Not connected
  374. label-disconnected-foreground = #BF616A
  375.  
  376. ramp-signal-foreground = #82B414
  377. ramp-signal-0 = 
  378. ramp-signal-1 = 
  379. ramp-signal-2 = 
  380. ramp-signal-3 = 
  381. ramp-signal-4 = 
  382. ramp-signal-5 = 
  383.  
  384. [module/cpu]
  385. type = internal/cpu
  386.  
  387. ; Seconds to sleep between updates
  388. ; Default: 1
  389. interval = 0.5
  390.  
  391. label =  %percentage%%
  392.  
  393. label-foreground = #2a81dc
  394. label-padding-right = 1
  395.  
  396. [module/memory]
  397. type = internal/memory
  398.  
  399. ; Seconds to sleep between updates
  400. ; Default: 1
  401. interval = 0.5
  402. format = <label>
  403.  
  404. ; Available tokens:
  405. ; %percentage_used% (default)
  406. ; %percentage_free%
  407. ; %gb_used%
  408. ; %gb_free%
  409. ; %gb_total%
  410. ; %mb_used%
  411. ; %mb_free%
  412. ; %mb_total%
  413. ; %percentage_swap_used%
  414. ; %percentage_swap_free%
  415. ; %mb_swap_total%
  416. ; %mb_swap_free%
  417. ; %mb_swap_used%
  418. ; %gb_swap_total%
  419. ; %gb_swap_free%
  420. ; %gb_swap_used%
  421.  
  422. label =  %gb_used%
  423.  
  424. label-foreground = #888ba5
  425.  
  426. [module/temperature]
  427. type = internal/temperature
  428.  
  429. ; Seconds to sleep between updates
  430. ; Default: 1
  431. interval = 1
  432.  
  433. ; Thermal zone to use
  434. ; To list all the zone types, run
  435. ; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done
  436. ; Default: 0
  437. thermal-zone = 0
  438.  
  439. ; Threshold temperature to display warning label (in degrees celsius)
  440. ; Default: 80
  441. warn-temperature = 60
  442.  
  443. format = <label>
  444.  
  445. ; Available tags:
  446. ; <label-warn> (default)
  447. ; <ramp>
  448.  
  449. ; Available tokens:
  450. ; %temperature% (deprecated)
  451. ; %temperature-c% (default, temperature in °C)
  452. ; %temperature-f% (temperature in °F)
  453. label =  %temperature-c%
  454.  
  455. label-foreground = #e14122
  456.  
  457. [module/decor-glyph]
  458. type = custom/text
  459. content-foreground = #4e5165
  460. margin = 0
  461.  
  462. [module/sep]
  463. inherit = module/decor-glyph
  464. content = "/"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement