aboutsummaryrefslogtreecommitdiff
path: root/extra/install_coolbits.sh
diff options
context:
space:
mode:
Diffstat (limited to 'extra/install_coolbits.sh')
-rwxr-xr-xextra/install_coolbits.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/extra/install_coolbits.sh b/extra/install_coolbits.sh
new file mode 100755
index 0000000..053e8ab
--- /dev/null
+++ b/extra/install_coolbits.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+script_dir=$(dirname "$0")
+cd "$script_dir"
+
+[ $(id -u) -ne 0 ] && echo "You need root privileges to run the install script" && exit 1
+
+for xorg_conf_d in "/etc/X11/xorg.conf.d" "/usr/share/X11/xorg.conf.d" "/usr/lib/X11/xorg.conf.d"; do
+ [ -d "$xorg_conf_d" ] && install -Dm644 "88-gsr-coolbits.conf" "$xorg_conf_d/88-gsr-coolbits.conf" && exit 0
+done