aboutsummaryrefslogtreecommitdiffstats
path: root/rvx
blob: f293e14ab9ce631ac87e1524d70ec83e3d256578 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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