Polybar updates
Remove some old scripts Add bluetooth and brightness modules with ramp icons Update layout to mirror waybar setup
This commit is contained in:
parent
322ef70db4
commit
6fa2d3992e
|
@ -64,8 +64,7 @@ height = 24pt
|
||||||
radius = 6
|
radius = 6
|
||||||
dpi = 0
|
dpi = 0
|
||||||
font-0 = FiraCode Nerd Font;size=12
|
font-0 = FiraCode Nerd Font;size=12
|
||||||
font-1 = Iosevka Nerd Font;size=12
|
font-1 = Noto Sans;size=12
|
||||||
font-2 = Noto Sans;size=12
|
|
||||||
line-size = 3pt
|
line-size = 3pt
|
||||||
background = ${colors.background}
|
background = ${colors.background}
|
||||||
foreground = ${colors.foreground}
|
foreground = ${colors.foreground}
|
||||||
|
@ -87,8 +86,9 @@ pseudo-transparency = false
|
||||||
inherit = common
|
inherit = common
|
||||||
width = 100%
|
width = 100%
|
||||||
|
|
||||||
modules-left = launcher xworkspaces
|
modules-left = launcher time date cpu memory
|
||||||
modules-right = pulseaudio-control-sink pulseaudio-control-source memory cpu bluetooth wlan eth date power-menu
|
modules-center = xworkspaces
|
||||||
|
modules-right = pulseaudio wlan eth backlight battery power-menu
|
||||||
|
|
||||||
[module/launcher]
|
[module/launcher]
|
||||||
type = custom/text
|
type = custom/text
|
||||||
|
@ -129,31 +129,6 @@ label-empty = %icon%
|
||||||
label-empty-foreground = ${colors.disabled}
|
label-empty-foreground = ${colors.disabled}
|
||||||
label-empty-padding = 1
|
label-empty-padding = 1
|
||||||
|
|
||||||
[module/pulseaudio-control-sink]
|
|
||||||
type = custom/script
|
|
||||||
label = "%output%"
|
|
||||||
tail = true
|
|
||||||
interval = 0
|
|
||||||
exec = ~/.dotfiles/scripts/pulseaudio-control.bash --icon-muted " " --icons-volume " , , " --node-nicknames-from device.product.name --node-nickname "alsa_output.pci-0000_2d_00.1.hdmi-stereo*: " --node-nickname "alsa_output.pci-0000_2f_00.4.analog-stereo*: " --node-type output output
|
|
||||||
click-left = ~/.dotfiles/scripts/pulseaudio-control.bash --node-type output togmute
|
|
||||||
click-right = exec pavucontrol &
|
|
||||||
click-middle = ~/.dotfiles/scripts/pulseaudio-control.bash --node-type output next-node
|
|
||||||
scroll-up = ~/.dotfiles/scripts/pulseaudio-control.bash --node-type output up
|
|
||||||
scroll-down = ~/.dotfiles/scripts/pulseaudio-control.bash --node-type output down
|
|
||||||
|
|
||||||
[module/pulseaudio-control-source]
|
|
||||||
type = custom/script
|
|
||||||
label = "%output%"
|
|
||||||
tail = true
|
|
||||||
interval = 0
|
|
||||||
env-NODE-TYPE = "input"
|
|
||||||
exec = ~/.dotfiles/scripts/pulseaudio-control.bash --icon-muted " " --icons-volume " , , " --node-nickname "alsa_input.pci-0000_2f_00.4.analog-stereo*: " --node-nickname "*.monitor: " --node-type input output
|
|
||||||
click-left = ~/.dotfiles/scripts/pulseaudio-control.bash --node-type input togmute
|
|
||||||
click-right = exec pavucontrol &
|
|
||||||
click-middle = ~/.dotfiles/scripts/pulseaudio-control.bash --node-type input next-node
|
|
||||||
scroll-up = ~/.dotfiles/scripts/pulseaudio-control.bash --node-type input up
|
|
||||||
scroll-down = ~/.dotfiles/scripts/pulseaudio-control.bash --node-type input down
|
|
||||||
|
|
||||||
[module/memory]
|
[module/memory]
|
||||||
type = internal/memory
|
type = internal/memory
|
||||||
interval = 2
|
interval = 2
|
||||||
|
@ -168,13 +143,6 @@ format-prefix = " "
|
||||||
format-prefix-foreground = ${colors.primary}
|
format-prefix-foreground = ${colors.primary}
|
||||||
label = %percentage:2%%
|
label = %percentage:2%%
|
||||||
|
|
||||||
[module/bluetooth]
|
|
||||||
type = custom/script
|
|
||||||
exec = ~/.dotfiles/scripts/system-bluetooth-bluetoothctl.sh
|
|
||||||
tail = true
|
|
||||||
interval = 0
|
|
||||||
click-left = ~/.dotfiles/scripts/system-bluetooth-bluetoothctl.sh --toggle &
|
|
||||||
|
|
||||||
[network-base]
|
[network-base]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
interval = 5
|
interval = 5
|
||||||
|
@ -184,23 +152,74 @@ format-disconnected = <label-disconnected>
|
||||||
[module/wlan]
|
[module/wlan]
|
||||||
inherit = network-base
|
inherit = network-base
|
||||||
interface-type = wireless
|
interface-type = wireless
|
||||||
label-connected = "%{F#b7bdf8} {F-} %essid%"
|
label-connected = " %essid%"
|
||||||
label-disconnected = "%{F#b7bdf8} "
|
label-disconnected = " "
|
||||||
|
|
||||||
[module/eth]
|
[module/eth]
|
||||||
inherit = network-base
|
inherit = network-base
|
||||||
interface-type = wired
|
interface-type = wired
|
||||||
label-connected = "%{F#b7bdf8} "
|
label-connected = " "
|
||||||
label-disconnected = "%{F#b7bdf8} "
|
label-disconnected = " "
|
||||||
|
|
||||||
[module/date]
|
[module/date]
|
||||||
type = internal/date
|
type = internal/date
|
||||||
interval = 1
|
interval = 3600
|
||||||
|
date = %A %Y-%m-%d
|
||||||
date = %H:%M
|
|
||||||
date-alt = %Y-%m-%d %H:%M:%S
|
|
||||||
|
|
||||||
label = %date%
|
label = %date%
|
||||||
label-foreground = ${colors.primary}
|
label-foreground = ${colors.primary}
|
||||||
|
|
||||||
|
[module/time]
|
||||||
|
type = internal/date
|
||||||
|
interval = 30
|
||||||
|
time = %R
|
||||||
|
label = %time%
|
||||||
|
label-foreground = ${colors.primary}
|
||||||
|
|
||||||
|
[module/backlight]
|
||||||
|
type = internal/backlight
|
||||||
|
card = intel_backlight
|
||||||
|
format = <ramp> <label>
|
||||||
|
ramp-0 =
|
||||||
|
ramp-1 =
|
||||||
|
ramp-2 =
|
||||||
|
ramp-3 =
|
||||||
|
ramp-4 =
|
||||||
|
ramp-5 =
|
||||||
|
ramp-6 =
|
||||||
|
ramp-7 =
|
||||||
|
ramp-8 =
|
||||||
|
|
||||||
|
[module/battery]
|
||||||
|
type = internal/battery
|
||||||
|
battery = BAT0
|
||||||
|
adapter = AC
|
||||||
|
format-charging = <animation-charging> <label-charging>
|
||||||
|
format-discharging = <ramp-capacity> <label-discharging>
|
||||||
|
label-charging = %percentage%% %time% %consumption%W
|
||||||
|
label-discharging = %percentage%% %time% %consumption%W
|
||||||
|
ramp-capacity-0 =
|
||||||
|
ramp-capacity-1 =
|
||||||
|
ramp-capacity-2 =
|
||||||
|
ramp-capacity-3 =
|
||||||
|
ramp-capacity-4 =
|
||||||
|
ramp-capacity-5 =
|
||||||
|
ramp-capacity-6 =
|
||||||
|
ramp-capacity-7 =
|
||||||
|
ramp-capacity-8 =
|
||||||
|
ramp-capacity-9 =
|
||||||
|
animation-low-0 =
|
||||||
|
animation-low-1 =
|
||||||
|
animation-low-framerate = 200
|
||||||
|
animation-charging-0 =
|
||||||
|
animation-charging-1 =
|
||||||
|
animation-charging-2 =
|
||||||
|
animation-charging-3 =
|
||||||
|
animation-charging-4 =
|
||||||
|
animation-charging-5 =
|
||||||
|
animation-charging-6 =
|
||||||
|
animation-charging-7 =
|
||||||
|
animation-charging-8 =
|
||||||
|
animation-charging-9 =
|
||||||
|
animation-charging-framerate = 750
|
||||||
|
|
||||||
; vim:ft=dosini
|
; vim:ft=dosini
|
||||||
|
|
Loading…
Reference in a new issue