Added some basic mangowm configuration.
This commit is contained in:
parent
fbb1c6df2e
commit
8ecd3e9447
16 changed files with 1532 additions and 0 deletions
14
.config/mango/scripts/cycle-layout
Executable file
14
.config/mango/scripts/cycle-layout
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
set -x
|
||||
dir=${1:-next}
|
||||
f=/tmp/mango-layout-idx
|
||||
idx=0
|
||||
[[ -f $f ]] && idx=$(<$f)
|
||||
layouts=(tile scroller monocle grid deck center_tile vertical_tile right_tile vertical_scroller vertical_grid vertical_deck dwindle fair vertical_fair)
|
||||
if [[ "$dir" == "prev" ]]; then
|
||||
idx=$(( (idx - 1 + ${#layouts[@]}) % ${#layouts[@]} ))
|
||||
else
|
||||
idx=$(( (idx + 1) % ${#layouts[@]} ))
|
||||
fi
|
||||
mmsg dispatch setlayout,${layouts[$idx]} && echo "$idx" > "$f"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue