Add bsp-layout to polybar

This commit is contained in:
Tobias Reisinger 2021-04-16 10:20:05 +02:00
parent 58f95d32ec
commit a43249dc9c
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 16 additions and 2 deletions

View file

@ -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

View file

@ -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%