mabox-tools/bin/cortilectl
2023-05-20 16:36:20 +02:00

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