Archived
0
0
Fork 0
This repository has been archived on 2024-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/.config/polybar/config.ini

291 lines
5.4 KiB
INI

[bar/top]
monitor = ${env:MONITOR}
fixed-center = false
width = 98%
height = 20
background = ${colors.background}
foreground = ${colors.foreground}
font-0 = PowerlineSymbols:size=14;4
font-1 = Font Awesome 5 Free Solid:pixelsize=12;2
font-2 = FiraCode Nerd Font Mono:pixelsize=10;2
modules-left = bspwm RightArrow RightStripe RightArrow
modules-center = xwindow
modules-right = LeftArrow3 LeftStripe LeftArrow3 pulseaudio LeftArrow1 updates LeftArrow2 filesystem LeftArrow1 cpu LeftArrow2 memory LeftArrow1 date
cursor-click = pointer
cursor-scroll = ns-resize
offset-x = 1%
offset-y = 1%
radius = 10
wm-restack = bspwm
[bar/bottom]
monitor = ${env:MONITOR}
bottom = true
width = 100%
height = 20
background = ${colors.background}
foreground = ${colors.foreground}
font-0 = PowerlineSymbols:size=14;4
font-1 = Font Awesome 5 Free Solid:pixelsize=12;2
font-2 = FiraCode Nerd Font Mono:pixelsize=10;2
modules-left = powermenu music music-prev music-play-pause music-next
modules-center = windows
modules-right = tray
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = true
wm-restack = bspwm
[colors]
background = ${xrdb:background}
foreground = ${xrdb:foreground}
foreground-alt = #555
text = #161821
green = ${xrdb:color2}
blue = ${xrdb:color4}
red = ${xrdb:color1}
yellow = ${xrdb:color3}
cyan = ${xrdb:color6}
[global/wm]
margin-top = 5
margin-bottom = 5
[module/bspwm]
type = internal/bspwm
format = <label-state>
label-focused = %index%
label-focused-foreground = ${colors.text}
label-focused-background = ${colors.yellow}
label-focused-padding = 1
label-occupied = %index%
label-occupied-foreground = ${colors.text}
label-occupied-background = ${colors.green}
label-occupied-padding = 1
label-urgent = %index%!
label-urgent-foreground = ${colors.text}
label-urgent-background = ${colors.blue}
label-urgent-padding = 1
label-empty = %index%
label-empty-foreground = ${colors.text}
label-empty-background = ${colors.red}
label-empty-padding = 1
[module/cpu]
type = internal/cpu
interval = 2
format-background = ${colors.red}
label =  CPU: %percentage%%
label-foreground = ${colors.text}
[module/date]
type = internal/date
interval = 1
date =
date-alt = " %d %B %Y"
time = %a %r
time-alt = " %A %r"
format-background = ${colors.red}
label =  %date% %time%
label-foreground = ${colors.text}
[module/filesystem]
type = internal/fs
internal = 30
mount-0 = /
format-mounted-background = ${colors.cyan}
label-mounted =  %mountpoint%: %used%/%total%
label-mounted-foreground = ${colors.text}
[module/memory]
type = internal/memory
interval = 2
format-background = ${colors.cyan}
label =  RAM: %percentage_used%%
label-foreground = ${colors.text}
[module/music]
type = custom/script
tail = true
interval = 1
format-prefix = " "
format = <label>
exec = $HOME/.config/polybar/music.sh
[module/music-prev]
type = custom/script
exec = echo "  "
format = <label>
click-left = $HOME/.config/polybar/music.sh --prev
[module/music-play-pause]
type = custom/ipc
hook-0 = echo "  "
hook-1 = echo "  "
initial = 1
click-left = $HOME/.config/polybar/music.sh --toggle
[module/music-next]
type = custom/script
exec = echo "  "
format = <label>
click-left = $HOME/.config/polybar/music.sh --next
[module/powermenu]
type = custom/script
exec = echo "  | "
click-left = rofi -show powermenu -modi powermenu:$HOME/.config/rofi/powermenu.sh
[module/pulseaudio]
type = internal/pulseaudio
bar-volume-width = 10
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = true
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill =
bar-volume-fill-font = 2
bar-volume-empty =
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}
format-volume = "<label-volume> <bar-volume> "
format-volume-background = ${colors.cyan}
format-muted-background = ${colors.cyan}
label-volume =  VOL: %percentage%%
label-volume-foreground = ${colors.text}
label-muted =  Muted
label-muted-foreground = ${colors.text}
[module/tray]
type = internal/tray
[module/updates]
type = custom/script
exec = $HOME/.config/polybar/updates.sh
interval = 600
label = Updates: %output%
format-foreground = ${colors.text}
format-background = ${colors.red}
format-prefix = " "
format-prefix-foreground = ${colors.text}
[module/windows]
type = custom/script
exec = ${env:P_BSPWM_WINDOW_CMD}
interval = 0.5
format = <label>
[module/xwindow]
type = internal/xwindow
label = %title:0:120:...%
[module/LeftArrow1]
type = custom/text
content = ""
content-foreground = ${colors.red}
content-background = ${colors.cyan}
[module/LeftArrow2]
type = custom/text
content = ""
content-foreground = ${colors.cyan}
content-background = ${colors.red}
[module/LeftArrow3]
type = custom/text
content = ""
content-foreground = ${colors.cyan}
content-background = ${colors.background}
[module/LeftStripe]
type = custom/text
content = ""
content-foreground = ${colors.background}
content-background = ${colors.cyan}
[module/RightArrow]
type = custom/text
content = ""
content-foreground = ${colors.red}
content-background = ${colors.background}
[module/RightStripe]
type = custom/text
content = ""
content-foreground = ${colors.background}
content-background = ${colors.red}
[settings]
screenchange-reload = true