X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=i3-auto-layout-toggle;h=f7330a366af8c3b0395ad07ecbabe1565c2439df;hb=8de1e14e35d0ad62620a59f6e2ca4ba19ddcda3c;hp=e879bdab966179e0bfceb477acd1d1b1c2d56cc3;hpb=50f25d1eec109c4596cfc638c9a7c98da0f0b5d0;p=distro-setup diff --git a/i3-auto-layout-toggle b/i3-auto-layout-toggle index e879bda..f7330a3 100755 --- a/i3-auto-layout-toggle +++ b/i3-auto-layout-toggle @@ -24,8 +24,12 @@ set -e; . /usr/local/lib/bash-bear; set +e f=/tmp/iank-i3-no-auto +# todo: if it is disabled, update the status bar. + if [[ -e $f ]]; then + echo "enabling" rm -f $f else + echo "disabling" touch $f fi