Change default $MODKEY to Mod4.

This commit is contained in:
Kris Maglione 2009-10-10 14:57:00 -04:00
parent b26fc42fed
commit b75ccc7266
3 changed files with 18 additions and 4 deletions

View File

@ -7,7 +7,7 @@ oldpath=$path; path=($PLAN9/bin $path)
# WMII Configuration
# Keys
MODKEY=Mod1
MODKEY=Mod4
UP=k
DOWN=j
LEFT=h

View File

@ -137,12 +137,12 @@ control:
##
# The wmii "grabmod" setting.
#
grab: Mod1
grab: Mod4
##
# Prefix for all shortcuts.
#
mod: Mod1
mod: Mod4
##
# Direction keys.

View File

@ -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 @@ export WMII_FONT='-*-fixed-medium-r-*-*-13-*-*-*-*-*-*-*'
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