Advertisement
Guest User

Untitled

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