aboutsummaryrefslogtreecommitdiffstats
path: root/rvx
diff options
context:
space:
mode:
Diffstat (limited to 'rvx')
-rwxr-xr-xrvx18
1 files changed, 18 insertions, 0 deletions
diff --git a/rvx b/rvx
new file mode 100755
index 0000000..f293e14
--- /dev/null
+++ b/rvx
@@ -0,0 +1,18 @@
+#!/bin/bash
+arg="$1"
+
+if [ $arg != "-h" ]; then
+ echo "Run rvx -h for help"
+fi
+
+if [ $arg = "-d" ]; then
+ killall vxwm 2>/dev/null
+ dbus-run-session vxwm -ignoreautostart
+elif [ $arg = "-h" ]; then
+ echo "rvx: A tool designed for quickly restarting vxwm"
+ echo "rvx -d: Restarts vxwm with dbus-run-session"
+ echo "rvx -h: Show this message"
+else
+ killall vxwm 2>/dev/null
+ vxwm -ignoreautostart
+fi