aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amatus.name>2014-10-23 19:31:50 -0500
committerDavid Barksdale <amatus@amatus.name>2014-10-23 19:31:50 -0500
commitb7506ecfda9fe30d4b29af5ca2cba8992c5ec6cb (patch)
tree87e7875a4ddd62b3ae04a3bebe40cbf715ed4fbe
parentd0c4bd852f9284a8a5d8c4012788119390c93d4d (diff)
New script for low-vision users
-rwxr-xr-xlow-vision.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/low-vision.sh b/low-vision.sh
new file mode 100755
index 0000000..b1f37f8
--- /dev/null
+++ b/low-vision.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+as() {
+ user="$1"; shift
+ env -u HOME sudo -u "$user" dbus-launch --exit-with-session "$@"
+ unset user
+}
+
+# High-contrast GTK theme and icons
+gsettings set org.gnome.desktop.interface gtk-theme HighContrast
+gsettings set org.gnome.desktop.interface icon-theme HighContrast
+
+# High-contrast Unity greeter
+# This looks absolutely awful, don't do this
+#as lightdm gsettings set com.canonical.unity-greeter high-contrast true
+#as lightdm gsettings set com.canonical.unity-greeter theme-name HighContrast
+#as lightdm gsettings set com.canonical.unity-greeter icon-theme-name HighContrast
+