代码:
● dog ~/.fvwm/autostart.bash
#!/bin/bash
export LANG=zh_CN.UTF-8 TERM=xterm LC_ALL= XIM=fcitx XIM_PROGRAM=fcitx
export XMODIFIERS="@im=fcitx"
export QT_IM_MODULE=fcitx GTK_IM_MODULE=fcitx
export PATH="$HOME/应用/脚本/:$HOME/应用/脚本/scripts-eexp:$HOME/应用/脚本/scripts-bones:$HOME/应用/脚本/scripts-xiooli:$PATH"
#mlnet &
xrdb ~/.Xresource
menu2ctrl.bash &
罗技鼠标-m525.bash &
#switch-roll.bash default &
fcitx &
stardict &
xcompmgr -CF &
#xcompmgr -CcF -I-.015 -O-.03 -D6 -t-1 -l-3 -r4.2 -o.5 &
trayer --widthtype pixel --width 200 --edge bottom --align left --transparent true &
mkdir -p /tmp/dtach/
#test -e /tmp/dtach/fanqiang || dtach -n /tmp/dtach/fanqiang /bin/bash $HOME/应用/脚 本/fq-loop &
habak.perl &
#xterm -e screen &
urxvt -e env TERM=rxvt-unicode screen &
sleep 1
conky &
#FvwmCommand "All (env) Maximize"
#FvwmCommand "All (urxvt) Maximize"
FvwmCommand "All (screen) MoveToPage 1 1"
FvwmCommand "All (screen) Maximize"
pulseaudio &
gnome-keyring-daemon &
#nm-applet --sm-disable &
#autoproxy -p 7456 &
#/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
代码:
● dog ~scripts/menu2ctrl.bash
#!/bin/bash
echo menu2ctrl.bash
xmodmap -e 'keycode 135 = Control_R'
xmodmap -e 'keycode 66 = Control_L'
xmodmap -e 'clear lock'
xmodmap -e 'clear control'
xmodmap -e 'add control = Control_R Control_L'
xmodmap
代码:
● dog ~scripts/罗技鼠标-m525.bash
#!/bin/bash
# 翻页键->右左滚轮。
xmodmap -e 'pointer = 1 2 3 4 5 8 9 6 7'
启动fvwm之后,发现menu还是menu,caps还是caps。
代码:
● xmodmap
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x69)
mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
但是翻一翻.xsession-errors,确实执行了menu2ctrl.bash。
[bash]● dog ~/.xsession-errors
/etc/X11/gdm/Xsession: Beginning session setup...
which: no keychain in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4:/opt/android-sdk-update-manager/tools:/opt/android-sdk-update-manager/platform-tools:/usr/games/bin)
/etc/X11/gdm/Xsession: Setup done, will execute: /usr/bin/dbus-launch --exit-with-session /usr/bin/ssh-agent -- /home/tusooa/.xsession
[fvwm][FlocaleGetFontSet]: (-*-fixed-medium-r-semicondensed-*-13-*-*-*-*-*-*-*,-*-fixed-medium-r-normal-*-14-*-*-*-*-*-*-*,-*-*-medium-r-normal-*-16-*-*-*-*-*-*-*) Missing font charsets:
GBK-0
[fvwm][CursorStyle]: <<ERROR>> Cursor /home/tusooa/.icons/ArchCursorTheme/cursors/default not found
[fvwm][CursorStyle]: <<ERROR>> Cursor /home/tusooa/.icons/ArchCursorTheme/cursors/default not found
[fvwm][CursorStyle]: <<ERROR>> Cursor /home/tusooa/.icons/ArchCursorTheme/cursors/default not found
[fvwm][CursorStyle]: <<ERROR>> Cursor /home/tusooa/.icons/ArchCursorTheme/cursors/default not found
[fvwm][style_parse_one_style_option]: <<WARNING>> IndexedIconName is deprecated. Converting to use: IconTitleFormat %n (%t)
[fvwm][ParseBinding]: <<WARNING>> Got mouse button 9 when the maximum is 5.
You can't bind complex functions to this button. To suppress this warning, use:
Silent Mouse 9 A A Exec exec switch-roll.bash
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from /usr/share/icons/hicolor/22x22/apps/pidgin.png
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from /usr/share/icons/hicolor/22x22/apps/evince.png
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from mini.stop.xpm
menu2ctrl.bash
Warning: Only changing the first 9 of 24 buttons.
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock
control Control_L (0x25), Control_L (0x42), Control_R (0x69), Control_R (0x87)
mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
(WARN-2669 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx-config/fcitx-config.c:1062) 配置项DefaultInputMethodState不合法,使用默认值Inactive
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-keyboard.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-imselector.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-ipc.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-x11.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-xkb.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-chttrans.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-dbus.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-vk.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-remote-module.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-autoeng.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-punc.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-fullwidth-char.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-xim.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-classic-ui.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-kimpanel-ui.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-pinyin.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-qw.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-unicode.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-table.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-quickphrase.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/lib/fcitx/addon.c:100) 加载附加组件配置文件: fcitx-xkbdbus.conf
/home/tusooa/.fvwm/autostart.bash:行30: pulseaudio: 未找到命令
GNOME_KEYRING_CONTROL=/tmp/keyring-4yfTmv
SSH_AUTH_SOCK=/tmp/keyring-4yfTmv/ssh
GPG_AGENT_INFO=/tmp/keyring-4yfTmv/gpg:0:1
GNOME_KEYRING_PID=2699
Conky: desktop window (33c) is root window
Conky: window type - override
Conky: drawing to created window (0x1a00001)
Conky: drawing to double buffer
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/im/table/table.c:187) 加载码表文件: erbi.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/im/table/table.c:187) 加载码表文件: zrm.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/im/table/table.c:187) 加载码表文件: cangjie.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/im/table/table.c:187) 加载码表文件: db.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/im/table/table.c:187) 加载码表文件: wanfeng.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/im/table/table.c:187) 加载码表文件: wbpy.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/im/table/table.c:187) 加载码表文件: wbx.conf
(INFO-2685 /var/tmp/portage/app-i18n/fcitx-4.2.5-r1/work/fcitx-4.2.5/src/im/table/table.c:187) 加载码表文件: qxm.conf
2012-8-27 阵雨转阴 30°C - 24°C 北风4-5级
2012-8-28 多云 31°C - 24°C 西风4-5级/东风3-4级
2012-8-29 多云 31°C - 24°C 东风3-4级
2012-8-30 多云 30°C - 24°C 东北风3-4级
2012-8-31 多云 31°C - 24°C 东风3-4级
2012-9-1 多云 32°C - 25°C 东风3-4级
2012-9-2 多云 32°C 东风3-4级
Argument "" isn't numeric in numeric eq (==) at /home/tusooa/应用/脚本/scripts-eexp/cairo-weather.perl line 107.
Argument "" isn't numeric in numeric eq (==) at /home/tusooa/应用/脚本/scripts-eexp/cairo-weather.perl line 107.
Argument "" isn't numeric in numeric eq (==) at /home/tusooa/应用/脚本/scripts-eexp/cairo-weather.perl line 108.
Argument "" isn't numeric in numeric eq (==) at /home/tusooa/应用/脚本/scripts-eexp/cairo-weather.perl line 108.
habak -ms /home/tusooa/.fvwm/desktop.jpg -mp 30,540 -hi "/home/tusooa/.cache/Scripts/cal.png" -mp 50,60 -hi "/home/tusooa/.cache/Scripts/weather.png"
AUP timeline: Entered aup.init() (first event)
AUP timeline: * calling prefs.init() (0)
AUP timeline: * calling filterListener.init() (1)
AUP timeline: * calling proxy.init() (0)
AUP timeline: * calling filterStorage.init() (1)
AUP timeline: * Entered filterStorage.loadFromDisk() (0)
AUP timeline: * * done locating patterns.ini file (0)
AUP timeline: * * done parsing file (134)
AUP timeline: * * load complete, calling observers (0)
AUP timeline: * filterStorage.loadFromDisk() done (34)
AUP timeline: * calling policy.init() (0)
AUP timeline: * calling synchronizer.init() (1)
AUP timeline: aup.init() done (0)
[/bash]
为啥执行过了,又变回来了。鼠标倒是正常的。