summaryrefslogtreecommitdiff
path: root/.local/bin/no-rgb
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2022-04-24 14:56:19 +0200
committerAdam <56338480+adastx@users.noreply.github.com>2022-04-24 14:56:19 +0200
commitad067e8e61f305f21135b0bf1c491a2cda595ad7 (patch)
tree32af0c4029f0f0481dde06e95400d879a169fe35 /.local/bin/no-rgb
parentb460eaa65839490da6dc5da3549f1fd639843ac0 (diff)
Moved scripts to .local/bin and small i3 change
Diffstat (limited to '.local/bin/no-rgb')
-rwxr-xr-x.local/bin/no-rgb8
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/bin/no-rgb b/.local/bin/no-rgb
new file mode 100755
index 0000000..a843b12
--- /dev/null
+++ b/.local/bin/no-rgb
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ "$USER" == "adam" ]; then
+ openrgb -p no-rgb
+else
+ USER=adam
+ su $USER -c "openrgb -p no-rgb"
+fi