Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; POLYBAR config file
- [global/wm]
- margin-top = 0
- margin-bottom = 0
- [settings]
- screenchange-reload = false
- pseudo-transparency = false
- [colors]
- background = #e1e1e0
- background-alt = #444
- foreground = #000000
- foreground-alt = #555555
- primary = #ffb52a
- secondary = #e60053
- alert = #bd2c40
- [bar/example]
- monitor = ${env:MONITOR:eDP1}
- #monitor = ${env:MONITOR:HDMI1}
- width = 100%
- height = 30
- ;offset-x = 1%
- ;offset-y = 1%
- ;radius = 6.0
- fixed-center = true
- background = ${colors.background}
- foreground = ${colors.foreground}
- ;line-size = 3
- ;line-color = #f00f00
- padding-left = 2
- padding-right = 2
- module-margin-left = 2
- module-margin-right = 2
- font-0 = P052:style=Roman:size=11;4
- font-1 = P052:style=Roman:size=11:weight=bold;4
- font-2 = FontAwesome:size=12;4
- modules-left = ewmh networkspeed memory cpu
- modules-center = date time
- modules-right = xbacklight pavolume wlan eth battery
- separator = "|"
- tray-detached = false
- tray-offset-x = 0
- tray-offset-y = 0
- tray-position = right
- tray-padding = 0
- tray-maxsize = 20
- tray-scale = 1.0
- tray-background = ${colors.background}
- cursor-click = pointer
- cursor-scroll = ns-resize
- [module/xbacklight]
- type = internal/xbacklight
- format = <label>
- label = %percentage%%
- format-underline = #0000ff
- [module/networkspeed]
- type = internal/network
- interface = wlp3s0
- interval = 1.0
- format-connected = <label-connected>
- format-connected-underline = #e60053
- label-connected = %downspeed:9% %upspeed:9%
- [module/memory]
- type = custom/script
- exec = free -m | awk '/^Mem/ {print $3}'
- interval = 3
- label = %{A1:lxtask &:} %output% MB%{A}%{A}
- [module/cpu]
- type = internal/cpu
- interval = 1
- label = %{A1:lxtask &:} %percentage%%{A}%{A}
- [module/ewmh]
- type = internal/xworkspaces
- enable-click = true
- enable-scroll = false
- format-padding = 0
- format = <label-state>
- label-active = %name%
- label-active-foreground = ${colors.background}
- label-active-background = #c93648
- label-active-underline = #fba922
- label-active-padding = 2
- label-empty = %name%
- label-empty-foreground = ${colors.foreground}
- label-empty-padding = 2
- [module/wlan]
- type = internal/network
- interface = wlp3s0
- interval = 3.0
- accumulate-stats = true
- format-connected = <label-connected>
- format-connected-underline = #9f78e1
- label-connected = %{A1:nm-applet &:}%{A3:killall -q nm-applet:}%essid% - %local_ip%%{A}%{A}
- format-disconnected = <label-disconnected>
- format-disconnected-underline = ${self.format-connected-underline}
- label-disconnected = %{A1:nm-applet &:}No Wifi%{A}%{A}
- label-disconnected-foreground = ${colors.foreground}
- [module/eth]
- type = internal/network
- interface = enp2s0f1
- interval = 3.0
- format-connected = <label-connected>
- format-connected-underline = #55aa55
- format-connected-prefix-foreground = ${colors.foreground}
- label-connected = %local_ip%
- [module/date]
- type = internal/date
- interval = 5
- date = %Y. %m. %d%
- ;date-alt = " %Y. %B %d."
- format-prefix =
- format-prefix-foreground = ${colors.foreground}
- format-underline = #0a6cf5
- #label = %date%
- label = %date%
- label-font = 1
- [module/time]
- type = internal/date
- interval = 5
- time = %H:%M
- ;time-alt = %H:%M
- format-prefix =
- format-prefix-foreground = ${colors.foreground}
- format-underline = #0a6cf5
- label = %time%
- label-font = 2
- [module/battery]
- type = internal/battery
- battery = BAT1
- adapter = ACAD
- full-at = 100
- format-charging = <animation-charging> <label-charging>
- format-charging-underline = #ffb52a
- label-charging = %percentage%%
- format-discharging = <ramp-capacity> <label-discharging>
- format-discharging-underline = ${self.format-charging-underline}
- label-discharging = %percentage%%
- format-full-prefix =
- format-full-prefix-foreground = ${colors.foreground}
- format-full-underline = ${self.format-charging-underline}
- animation-charging-0 =
- animation-charging-1 =
- animation-charging-2 =
- animation-charging-3 =
- animation-charging-4 =
- animation-charging-foreground = ${colors.foreground}
- animation-charging-framerate = 700
- ramp-capacity-0 =
- ramp-capacity-1 =
- ramp-capacity-2 =
- ramp-capacity-3 =
- ramp-capacity-4 =
- [module/pavolume]
- type = custom/script
- tail = true
- label-font = 1
- label = %output%
- exec = ~/.config/polybar/scripts/pavolume.sh --listen
- click-right = exec pavucontrol
- click-left = ~/.config/polybar/scripts/pavolume.sh --togmute
- scroll-up = ~/.config/polybar/scripts/pavolume.sh --up
- scroll-down = ~/.config/polybar/scripts/pavolume.sh --down
- format-underline = #3EC13F
- format-foreground = ${colors.foreground}
- format-background = ${colors.background}
- [module/powermenu]
- type = custom/menu
- expand-right = true
- format-spacing = 1
- label-open =
- label-open-foreground = ${colors.foreground}
- label-close = cancel
- label-close-foreground = #ff0000
- label-separator = |
- label-separator-foreground = ${colors.foreground}
- menu-0-0 = lock
- menu-0-0-exec = dm-tool lock
- menu-0-1 = reboot
- menu-0-1-exec = reboot
- menu-0-2 = power off
- menu-0-2-exec = shutdown -h now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement