summaryrefslogtreecommitdiffstats
path: root/scripts/current-term
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2019-05-14 22:13:09 +0200
committerJokler <jokler.contact@gmail.com>2019-05-14 22:13:09 +0200
commit64b3f5883e5523e5193ba1583790cc8cfafcfe6e (patch)
tree8c604f28ede436cb2f43bd0a1c3c70d4e12461e6 /scripts/current-term
downloaddotfiles-64b3f5883e5523e5193ba1583790cc8cfafcfe6e.tar.gz
dotfiles-64b3f5883e5523e5193ba1583790cc8cfafcfe6e.zip
Add scripts, polybar and i3 config files
Diffstat (limited to 'scripts/current-term')
-rwxr-xr-xscripts/current-term18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/current-term b/scripts/current-term
new file mode 100755
index 0000000..1917293
--- /dev/null
+++ b/scripts/current-term
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+set_class=0
+if [[ $1 == "--class" ]]; then
+ set_class=1
+ class=$2
+ shift
+ shift
+fi
+
+if [[ $set_class -eq 1 ]]; then
+ #termite --name=$class $@
+ alacritty --class $class $@
+else
+ termite $@
+fi
+
+# vim: expandtab sw=2 ts=2