Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;=====================================================
- ;
- ; To learn more about how to configure Polybar
- ; go to https://github.com/jaagr/polybar
- ;
- ; The README contains alot of information
- ;
- ;=====================================================
- [colors]
- background = #272a33
- background-alt = #225555
- foreground = #ffffff
- foreground-alt = #999
- primary = #60afaf
- secondary = #90a0bb
- alert = #90a0bb
- [bar/terminus]
- width = 100%
- height = 40
- ;offset-x = 1%
- ;offset-y = 1%
- radius = 2.0
- fixed-center = true
- bottom = true
- underline-size = 3
- background = ${colors.background}
- foreground = ${colors.foreground}
- line-size = 3
- line-color = #f00
- tray-maxsize = 2000
- ;border-size = 4
- ;border-color = #00000000
- padding-left = 0
- padding-right = 2
- module-margin-left = 1
- module-margin-right = 2
- font-0 = "Roboto:pixelsize=24;3"
- font-1 = "LiterationMono Nerd Font Mono:size=18;2"
- font-2 = "DejaVu Sans: size=8;1"
- font-3 = "Roboto Mono for Powerline:size=22;4"
- font-4 = "Roboto Light:pixelsize=15;2"
- ;font-1 = "fontawesome:size=11;-2"
- ;font-2 = "Wuncon Siji:pixelsize=10;1"
- modules-left = i3
- modules-center =
- modules-right = openvpn xbacklight volume xkeyboard battery wlan date
- tray-position = right
- tray-padding = 2
- ;tray-transparent = true
- tray-background = ${colors.background}
- ;wm-restack = bspwm
- ;wm-restack = i3
- ;override-redirect = true
- ;scroll-up = bspwm-desknext
- ;scroll-down = bspwm-deskprev
- ;scroll-up = i3wm-wsnext
- ;scroll-down = i3wm-wsprev
- [module/xwindow]
- type = internal/xwindow
- label = %title:0:30:...%
- [module/xkeyboard]
- type = internal/xkeyboard
- blacklist-0 = num lock
- format-prefix = " "
- format-suffix = " "
- format-background = ${colors.background-alt}
- ;format-prefix-underline = ${colors.secondary}
- label-layout = %layout%
- ;label-layout-underline = ${colors.secondary}
- label-layout-font = 5
- label-indicator-padding = 2
- label-indicator-margin = 1
- label-indicator-background = ${colors.background-alt}
- #label-indicator-underline = ${colors.secondary}
- [module/bspwm]
- type = internal/bspwm
- label-focused = %index%
- label-focused-background = ${colors.background-alt}
- label-focused-underline= ${colors.primary}
- label-focused-padding = 2
- label-occupied = %index%
- label-occupied-padding = 2
- label-urgent = %index%!
- label-urgent-background = ${colors.alert}
- label-urgent-padding = 2
- label-empty = %index%
- label-empty-foreground = ${colors.foreground-alt}
- label-empty-padding = 2
- [module/i3]
- type = internal/i3
- format = <label-state> <label-mode>
- #index-sort = true
- wrapping-scroll = false
- ; Only show workspaces on the same output as the bar
- ;pin-workspaces = true
- ws-icon-0 = 1;1
- ws-icon-1 = 2;2
- ws-icon-2 = 3;3
- ws-icon-3 = 4;4
- ws-icon-4 = 5;5
- ws-icon-5 = 6;6
- ws-icon-6 = 7;7
- ws-icon-7 = 8;8
- ws-icon-8 = 9;9
- ws-icon-9 = 10;10
- ws-icon-default = <>
- label-focused = %icon%
- label-focused-background = #447777
- ;label-focused-foreground = #a0a0ff
- ;label-focused-underline = #8080cc
- label-focused-padding = 2
- label-focused-margin =
- label-focused-font = 1
- label-unfocused = %icon%
- label-unfocused-padding = 2
- ;label-unfocused-underline = #3c5157
- label-unfocused-background = ${colors.background-alt}
- label-unfocused-margin =
- label-unfocused-font = 1
- label-urgent = %icon%
- label-urgent-padding = 2
- label-urgent-margin =
- label-urgent-font = 1
- ; NOT SO VIABLE PARAMETERS
- label-occupied = %icon%
- label-occupied-padding = 1
- label-occupied-font = 4
- label-empty = %icon%
- label-empty-foreground = #44ffffff
- label-empty-padding = 1
- label-empty-font = 4
- label-mode-padding = 2
- label-mode-foreground = #000
- label-mode-background = ${colors.primary}
- label-visible = %icon%
- ; focused = Active workspace on focused monitor
- ;label-focused = %index%
- ;label-focused-background = ${module/bspwm.label-focused-background}
- ;label-focused-underline = ${module/bspwm.label-focused-underline}
- ;label-focused-padding = ${module/bspwm.label-focused-padding}
- ; unfocused = Inactive workspace on any monitor
- ;label-unfocused = %index%
- ;label-unfocused-padding = ${module/bspwm.label-occupied-padding}
- ; visible = Active workspace on unfocused monitor
- ;label-visible = %index%
- ;label-visible-background = ${self.label-focused-background}
- ;label-visible-underline = ${self.label-focused-underline}
- ;label-visible-padding = ${self.label-focused-padding}
- ; urgent = Workspace with urgency hint set
- ;label-urgent = %index%
- label-urgent-background = #883030
- ;label-urgent-padding = ${module/bspwm.label-urgent-padding}
- [module/openvpn]
- type = custom/script
- format = <label>
- format-prefix =
- format-background = ${colors.background-alt}
- format-padding = 2
- exec = echo VPN
- exec-if = pgrep -x openvpn
- click-left = ovpn
- [module/xbacklight]
- type = internal/xbacklight
- format = <label> <bar>
- label =
- bar-width = 20
- bar-indicator =
- bar-indicator-foreground = #ffff00
- bar-indicator-font = 3
- bar-fill = █
- bar-fill-font = 3
- bar-fill-foreground = #ffffff
- bar-empty = █
- bar-empty-font = 3
- bar-empty-foreground = ${colors.background-alt}
- [module/backlight-acpi]
- inherit = module/xbacklight
- type = internal/backlight
- card = intel_backlight
- [module/wlan]
- type = internal/network
- interface = wlp1s0
- interval = 3.0
- format-connected = <ramp-signal> <label-connected>
- #format-connected-underline = #9f78e1
- format-connected-background = ${colors.background-alt}
- label-connected = "%essid% "
- format-disconnected = <label-disconnected>
- format-disconnected-underline = #ff0000
- ;label-disconnected = %ifname% disconnected
- label-disconnected-foreground = ${colors.foreground-alt}
- ramp-signal-0 = " ⚊"
- ramp-signal-1 = " ⚌"
- ramp-signal-2 = " ⚌"
- ramp-signal-3 = " ☰"
- ramp-signal-4 = " ☰"
- ramp-signal-foreground = #ffffff
- [module/date]
- type = internal/date
- interval = 5
- date = ""
- date-alt = " %d-%m-%Y "
- time = "%H:%M"
- time-alt = %H:%M:%S
- label = %date%%time%
- ;format-underline = #00aa33
- format-background = ${colors.background-alt}
- format-padding = 2
- [module/volume]
- type = internal/volume
- format-volume = "<label-volume> <bar-volume>"
- label-volume =
- label-volume-foreground = ${root.foreground}
- format-muted-prefix =
- format-muted-foreground = #5c515c
- label-muted = " ███████████████████"
- label-muted-font = 3
- bar-volume-width = 20
- bar-volume-foreground-0 = #00ffaa
- bar-volume-foreground-1 = #00ffaa
- bar-volume-foreground-2 = #00ffaa
- bar-volume-foreground-3 = #00ffaa
- bar-volume-foreground-4 = #00ffaa
- bar-volume-foreground-5 = #ff7777
- bar-volume-foreground-6 = #dd5555
- bar-volume-gradient = false
- bar-volume-indicator =
- bar-volume-indicator-font = 3
- bar-volume-fill = █
- bar-volume-fill-font = 3
- bar-volume-empty = █
- bar-volume-empty-font = 3
- bar-volume-empty-foreground = ${colors.background-alt}
- [module/battery]
- type = internal/battery
- battery = BAT1
- adapter = ADP1
- full-at = 98
- format-charging = <label-charging>
- #format-charging-underline = #20ff20
- format-discharging = <label-discharging>
- #format-discharging-underline = #7070ff
- format-full-prefix-foreground = ${colors.foreground-alt}
- #format-full-underline = #0000ff
- format-charging-background = #4c515c
- format-discharging-background = ${colors.background-alt}
- format-full-background = ${colors.background-alt}
- format-charging-prefix = " "
- format-charging-suffix = " "
- format-discharging-prefix = " "
- format-discharging-suffix = " "
- format-full-prefix = " "
- format-full-suffix = " "
- ramp-capacity-0 =
- ramp-capacity-1 =
- ramp-capacity-2 =
- ramp-capacity-foreground = ${colors.foreground-alt}
- animation-charging-0 =
- animation-charging-1 =
- animation-charging-2 =
- animation-charging-foreground = ${colors.foreground-alt}
- animation-charging-framerate = 750
- #[module/powermenu]
- #type = custom/menu
- #
- #format-spacing = 1
- #
- #label-open = ( ' )
- #label-open-foreground = ${colors.secondary}
- #label-close = cancel
- #label-close-foreground = ${colors.secondary}
- #label-separator = |
- #label-separator-foreground = ${colors.foreground-alt}
- #
- #menu-0-0 = reboot
- #menu-0-0-exec = menu-open-1
- #menu-0-1 = power off
- #menu-0-1-exec = menu-open-2
- #
- #menu-1-0 = cancel
- #menu-1-0-exec = menu-open-0
- #menu-1-1 = reboot
- #menu-1-1-exec = sudo reboot
- #
- #menu-2-0 = power off
- #menu-2-0-exec = sudo poweroff
- #menu-2-1 = cancel
- #menu-2-1-exec = menu-open-0
- [settings]
- screenchange-reload = true
- ;compositing-background = xor
- ;compositing-background = screen
- ;compositing-foreground = source
- ;compositing-border = over
- [global/wm]
- margin-top = 0
- [module/cmus]
- type = custom/script
- exec = sh ~/.config/polybar/cmus.sh
- exec-if = pgrep -x cmus
- interval = 1
- click-left = cmus-remote --pause
- click-right = cmus-remote --stop
- format-underline = #4bffdc
- ; vim:ft=dosini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement