mango allow for manual layout change
This commit is contained in:
@@ -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
13
config/mango/layout_change
Executable 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"
|
||||
Reference in New Issue
Block a user