summaryrefslogtreecommitdiff
path: root/retardX11.sh
diff options
context:
space:
mode:
authormiguel <miguel@megaloman.softwarefools.com>2021-01-24 21:33:31 +0100
committermiguel <miguel@megaloman.softwarefools.com>2021-01-24 21:33:31 +0100
commit115a65be0583658a7f39a7abaeb2401448f0d7c9 (patch)
tree3c75fc44222b72f11900d098da5d5ff157c19542 /retardX11.sh
parent5ec428a0c177025b9c04330ae3f39cbde27a2d81 (diff)
add some stuff from megaloman
Diffstat (limited to 'retardX11.sh')
-rwxr-xr-xretardX11.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/retardX11.sh b/retardX11.sh
new file mode 100755
index 0000000..3be0261
--- /dev/null
+++ b/retardX11.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+case $1 in
+ start)
+ echo starting retard X access
+ xhost +SI:localuser:retard
+ sudo su retard
+ ;;
+
+ stop)
+ echo stopping retard X access
+ xhost -SI:localuser:retard
+ ;;
+
+ *)
+ echo "stop or start?"
+esac