[hackers] [wmii] Change default $MODKEY to Mod4. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Sun, 11 Oct 2009 09:36:11 +0000 (UTC)

changeset: 2528:801633ca6d00
user: Kris Maglione <jg_AT_suckless.org>
date: Sat Oct 10 14:57:00 2009 -0400
files: alternative_wmiircs/plan9port/wmiirc alternative_wmiircs/ruby/config.yaml rc/wmiirc.sh
description:
Change default $MODKEY to Mod4.

diff -r 2af9370de0f4 -r 801633ca6d00 alternative_wmiircs/plan9port/wmiirc
--- a/alternative_wmiircs/plan9port/wmiirc Sat Oct 10 14:57:00 2009 -0400
+++ b/alternative_wmiircs/plan9port/wmiirc Sat Oct 10 14:57:00 2009 -0400
@@ -7,7 +7,7 @@
 # WMII Configuration
 
 # Keys
-MODKEY=Mod1
+MODKEY=Mod4
 UP=k
 DOWN=j
 LEFT=h
diff -r 2af9370de0f4 -r 801633ca6d00 alternative_wmiircs/ruby/config.yaml
--- a/alternative_wmiircs/ruby/config.yaml Sat Oct 10 14:57:00 2009 -0400
+++ b/alternative_wmiircs/ruby/config.yaml Sat Oct 10 14:57:00 2009 -0400
@@ -137,12 +137,12 @@
   ##
   # The wmii "grabmod" setting.
   #
- grab: Mod1
+ grab: Mod4
 
   ##
   # Prefix for all shortcuts.
   #
- mod: Mod1
+ mod: Mod4
 
   ##
   # Direction keys.
diff -r 2af9370de0f4 -r 801633ca6d00 rc/wmiirc.sh
--- a/rc/wmiirc.sh Sat Oct 10 14:57:00 2009 -0400
+++ b/rc/wmiirc.sh Sat Oct 10 14:57:00 2009 -0400
@@ -3,8 +3,9 @@
 wmiiscript=wmiirc # For wmii.sh
 . wmii.sh
 
+
 # Configuration Variables
-MODKEY=Mod1
+MODKEY=Mod4
 UP=k
 DOWN=j
 LEFT=h
@@ -24,6 +25,19 @@
 set -- $(echo $WMII_NORMCOLORS $WMII_FOCUSCOLORS)
 export WMII_TERM="@TERMINAL@"
 
+if ! test -d "${WMII_CONFPATH%%:*}"; then
+ mkdir "${WMII_CONFPATH%%:*}"
+ res=$(wihack -type DIALOG xmessage -nearmouse -buttons Windows,Alt -print -fn $WMII_FONT \
+ "Welcome to wmii,$wi_newline$wi_newline" \
+ "Most of wmii's default key bindings make use of the$wi_newline" \
+ "Windows key, or equivalent. For keyboards lacking such$wi_newline" \
+ "a key, many users change this to the Alt key.$wi_newline$wi_newline" \
+ "Which would you prefer?")
+ [ "$res" = "Alt" ] && MODKEY=Mod1
+ echo "MODKEY=$MODKEY" >"${WMII_CONFPATH%%:*}/wmiirc_local"
+ chmod +x "${WMII_CONFPATH%%:*}/wmiirc_local"
+fi
+
 # Menu history
 hist="${WMII_CONFPATH%%:*}/history"
 histnum=5000
Received on Sun Oct 11 2009 - 09:36:11 UTC

This archive was generated by hypermail 2.2.0 : Sun Oct 11 2009 - 09:48:19 UTC