~mil/sxmo-utils

2e6ce5c8105beaf26237a9f60ddb6b4eb3d09ade — Stacy Harper 3 months ago 5b705dc
Fix layout dwm regression

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2 files changed, 18 insertions(+), 2 deletions(-)

M scripts/core/sxmo_inputhandler.sh
M scripts/core/sxmo_wm.sh
M scripts/core/sxmo_inputhandler.sh => scripts/core/sxmo_inputhandler.sh +2 -2
@@ 176,11 176,11 @@ case "$ACTION" in
		exit 0
		;;
	"voldown_one")
		swaymsg layout toggle splith splitv tabbed
		sxmo_wm.sh togglelayout
		exit
		;;
	"voldown_two")
		swaymsg focus tiling
		sxmo_wm.sh switchfocus
		exit
		;;
	"voldown_three")

M scripts/core/sxmo_wm.sh => scripts/core/sxmo_wm.sh +16 -0
@@ 118,6 118,22 @@ xorgexecwait() {
	exec "$@"
}

swaytogglelayout() {
	swaymsg layout toggle splith splitv tabbed
}

xorgtogglelayout() {
	xdotool key --clearmodifiers key Super+space
}

swayswitchfocus() {
	swaymsg focus tiling
}

xorgswitchfocus() {
	xdotool key --clearmodifiers Super+x
}

guesswm() {
	if [ -n "$SWAYSOCK" ]; then
		printf "sway"