Add bsp-layout to polybar
This commit is contained in:
parent
58f95d32ec
commit
a43249dc9c
2 changed files with 16 additions and 2 deletions
|
@ -50,7 +50,7 @@
|
|||
[bar/portalo-base]
|
||||
inherit = bar/base
|
||||
|
||||
modules-left = bspwm
|
||||
modules-left = bspwm bsp-layout
|
||||
modules-center = mpd
|
||||
modules-right = memory cpu temperature eth check-arch-updates date
|
||||
|
||||
|
@ -71,7 +71,7 @@
|
|||
[bar/laptop-base]
|
||||
inherit = bar/base
|
||||
|
||||
modules-left = bspwm
|
||||
modules-left = bspwm bsp-layout
|
||||
modules-center = mpd
|
||||
modules-right = pulseaudio battery xbacklight memory cpu temperature wlan eth check-arch-updates date powermenu
|
||||
|
||||
|
|
|
@ -23,3 +23,17 @@
|
|||
click-left = alacritty -e sh -c "$HOME/.local/bin/archlinux-update; checkupdates > $HOME/.cache/archlinux-updates.txt; read" &
|
||||
|
||||
label = %output%
|
||||
|
||||
[module/bsp-layout]
|
||||
type = custom/script
|
||||
exec = bsp-layout get $(bspc query -D --names -d focused)
|
||||
interval = 0.1
|
||||
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground}
|
||||
format-underline = ${colors.red}
|
||||
format = <label>
|
||||
|
||||
click-left = bsp-layout cycle --layouts tall,wide,grid,rgrid,monocle
|
||||
|
||||
label = %output%
|
||||
|
|
Loading…
Reference in a new issue