mango allow for manual layout change

This commit is contained in:
2026-01-25 19:33:01 +01:00
parent 5243724527
commit 280d5c82d6
2 changed files with 15 additions and 1 deletions

View File

@@ -195,7 +195,8 @@ bind=SUPER,e,set_proportion,1.0
bind=SUPER,x,switch_proportion_preset,
# switch layout
bind=SUPER,n,switch_layout
bind=SUPER,n,spawn,"$HOME/.config/mango/layout_change"
bind=SUPER+SHIFT,t,spawn_shell,$HOME/.config/mango/layout_change T
# tag switch
bind=SUPER,Left,viewtoleft,0

13
config/mango/layout_change Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
layout="$1"
if [[ -z "$layout" ]]; then
#echo "switch_layout"
mmsg -d switch_layout
layout="$(mmsg -g | grep ' layout' | cut -d' ' -f3)"
else
mmsg -l "$layout"
fi
notify-send -a MongoWC -i view-grid "Layout changed" "$layout"