mabox-tools/bin/cortilectl

33 lines
392 B
Bash
Executable File

#!/bin/bash
# cortilectl - helper script for cortile tiling manager
# Cortile config file
CONFFILE="$HOME/.config/cortile/config.toml"
start() {
echo "">/tmp/cortile.log
cortile -v &
}
stop() {
pkill cortile
}
toggle() {
:
}
editconf() {
xdg-open ${CONFFILE}
}
case "$1" in
start) start;;
stop) stop;;
toggle) toggle;;
editconf) editconf;;
*):;;
esac