]> git.donarmstrong.com Git - x_base.git/commitdiff
avoid changing down into super_l
authorDon Armstrong <don@donarmstrong.com>
Sun, 14 Jun 2009 01:56:49 +0000 (01:56 +0000)
committerDon Armstrong <don@donarmstrong.com>
Sun, 14 Jun 2009 01:56:49 +0000 (01:56 +0000)
.xsession
.xsession_archimedes
.xsession_jax
.xsession_volo

index 505bfc2ce4ce0515dc10e75c843b0de6385c2fd0..7723cc430363b6a2d4de0fc80d628c8c2d811932 100755 (executable)
--- a/.xsession
+++ b/.xsession
@@ -15,16 +15,13 @@ if [ -d ~/tmp ]; then
    export TMPDIR=$(echo ~/tmp)
 fi;
 
-if [ "$HOSTNAME" == "archimedes" ]; then
-    xmodmap -e 'keycode 158 = XF86AudioRaiseVolume'
-    xmodmap -e 'keycode 146 = XF86AudioLowerVolume'
-    xset r rate 170 40
-fi;
-
 xmodmap -e 'keycode 115 = Multi_key'
-xmodmap -e 'keycode 116 = Super_L'
+# No clue why this has changed from Alt_R to Down, but we really want Down.
+if ! xmodmap -pk|grep -qe '116.*Down'; then
+    xmodmap -e 'keycode 116 = Super_L'
+fi;
 xmodmap -e 'clear mod4'
-xmodmap -e 'add mod4 = Super_L'
+xmodmap -e 'add mod4 = Super_L Super_R'
 
 if [ -e ~/.Xresources_$HOSTNAME ]; then
     xrdb -merge < ~/.Xresources_$HOSTNAME;
index 3748c936c14588e72a5860bb851ccb0b2c2ec0bb..7ba5103440e771e6733ebdd55d25e009866c6fce 100644 (file)
@@ -1,6 +1,4 @@
 #-*- mode: sh; -*-
-HOSTNAME=$(hostname)
-
 xrandr --output DVI0 --right-of VGA2
 
 xmodmap -e 'keycode 158 = XF86AudioRaiseVolume'
@@ -8,9 +6,12 @@ xmodmap -e 'keycode 146 = XF86AudioLowerVolume'
 xset r rate 170 40
 
 xmodmap -e 'keycode 115 = Multi_key'
-xmodmap -e 'keycode 116 = Super_L'
+# No clue why this has changed from Alt_R to Down, but we really want Down.
+if ! xmodmap -pk|grep -qe '116.*Down'; then
+    xmodmap -e 'keycode 116 = Super_L'
+fi;
 xmodmap -e 'clear mod4'
-xmodmap -e 'add mod4 = Super_L'
+xmodmap -e 'add mod4 = Super_L Super_R'
 
 #Red  1.300, Green  1.300, Blue  1.150
 xgamma -rgamma 1.3  -ggamma 1.3 -bgamma  1.15
index 0ef531f82fa36ced7161dadd7515be34735e0981..ec42b82d97eeffa121d0bf924934938293d815dc 100644 (file)
@@ -7,7 +7,6 @@ HOSTNAME=$(hostname)
 xmodmap - <<EOF
 clear lock
 keycode 66 = Multi_key
-keycode 115 = Super_L
 clear mod4
-add mod4 = Super_L
+add mod4 = Super_L Super_R
 EOF
index 327646a58fc3d1821706b0c8cbebcacf7c55a855..1f4a7d3c8a31b9e1aa8c4e879a4a7c7de88b3013 100644 (file)
@@ -16,9 +16,8 @@ add mod1 = Alt_L Alt_R
 clear shift
 add shift = Shift_L
 keycode 115 = Multi_key
-keycode 116 = Super_L
 clear mod4
-add mod4 = Super_L
+add mod4 = Super_L Super_R
 EOF