From daec65a44f081ec167dc2044e7171f5aff6046b4 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Fri, 19 May 2023 13:35:28 +0200 Subject: [PATCH] cortilectl --- bin/cortilectl | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 bin/cortilectl diff --git a/bin/cortilectl b/bin/cortilectl new file mode 100755 index 0000000..9cc6b76 --- /dev/null +++ b/bin/cortilectl @@ -0,0 +1,30 @@ +#!/bin/bash + +# cortilectl - helper script for cortile tiling manager + +# Cortile config file +CONFFILE="$HOME/.config/cortile/config.toml" + +start() { + cortile & +} + +stop() { + pkill cortile +} + +toggle() { +: +} +editconf() { + xdg-open ${CONFFILE} +} + + +case "$1" in + start) start;; + stop) stop;; + toggle) toggle;; + editconf) editconf;; + *):;; +esac