2023-05-19 13:35:28 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# cortilectl - helper script for cortile tiling manager
|
|
|
|
|
|
|
|
# Cortile config file
|
|
|
|
CONFFILE="$HOME/.config/cortile/config.toml"
|
|
|
|
|
|
|
|
start() {
|
2023-05-20 16:36:20 +02:00
|
|
|
echo "">/tmp/cortile.log
|
|
|
|
cortile -v &
|
2023-05-19 13:35:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2023-05-20 16:36:20 +02:00
|
|
|
pkill cortile
|
|
|
|
|
2023-05-19 13:35:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
toggle() {
|
|
|
|
:
|
|
|
|
}
|
|
|
|
editconf() {
|
|
|
|
xdg-open ${CONFFILE}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start) start;;
|
|
|
|
stop) stop;;
|
|
|
|
toggle) toggle;;
|
|
|
|
editconf) editconf;;
|
|
|
|
*):;;
|
|
|
|
esac
|