当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 7 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 改变xmodmap键配置的脚本,放到fvwm autostart里,有问题
帖子发表于 : 2012-08-27 16:47 

注册: 2008-10-31 22:12
帖子: 6546
系统: 践兔
送出感谢: 18
接收感谢: 25
代码:
● 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]
为啥执行过了,又变回来了。鼠标倒是正常的。


_________________
代码:
] ls -ld //


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 改变xmodmap键配置的脚本,放到fvwm autostart里,有问题
帖子发表于 : 2012-08-27 22:01 

注册: 2008-10-31 22:12
帖子: 6546
系统: 践兔
送出感谢: 18
接收感谢: 25
恳请exp前来帮忙解决。


_________________
代码:
] ls -ld //


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 改变xmodmap键配置的脚本,放到fvwm autostart里,有问题
帖子发表于 : 2012-08-27 22:51 
头像

注册: 2009-03-05 16:31
帖子: 2794
送出感谢: 0 次
接收感谢: 11
source menu2ctrl.bash 否则是新session


_________________
http://adam8157.info/


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 改变xmodmap键配置的脚本,放到fvwm autostart里,有问题
帖子发表于 : 2012-08-27 22:52 

注册: 2008-10-31 22:12
帖子: 6546
系统: 践兔
送出感谢: 18
接收感谢: 25
adam8157 写道:
source menu2ctrl.bash 否则是新session

但是在fvwm完整启动后,在urxvt里menu2ctrl.bash,就生效了啊。


_________________
代码:
] ls -ld //


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 改变xmodmap键配置的脚本,放到fvwm autostart里,有问题
帖子发表于 : 2012-08-27 23:00 
头像

注册: 2009-03-05 16:31
帖子: 2794
送出感谢: 0 次
接收感谢: 11
hmm, 因为x启动之前认不到keycode 135或者Control_R?


_________________
http://adam8157.info/


页首
 用户资料  
 
6 楼 
 文章标题 : Re: 改变xmodmap键配置的脚本,放到fvwm autostart里,有问题
帖子发表于 : 2012-08-27 23:19 

注册: 2008-10-31 22:12
帖子: 6546
系统: 践兔
送出感谢: 18
接收感谢: 25
[bash]
<cfy> ....
<tusooa> cfy: 出来了?
<cfy> tusooa: 是阿.
<tusooa> cfy:
viewtopic.php?f=48&t=385398&p=2829909#p2829909
[23:07]
<cfy> tusooa: 不知道.你看看有没有别东西再重复设置的? [23:08]
*** void1 (~void@unaffiliated/strangemk2) has quit: Quit: 离开
<cfy> tusooa: 我似乎曾经遇到过有系统设置会自行后台定时设置东西的
<cfy> tusooa: cli下有效果么? [23:09]
<cfy> tusooa: adam8157说的也是有可能的.
<cleamoon> http://ww1.sinaimg.cn/bmiddle/68377b29j ... 5lu0gj.jpg [23:10]
<tusooa> cfy: xmodmap,cli下当然没效果
<cfy> tusooa: 不是,开终端啦
<cfy> cleamoon: ....这个nb了....
*** xhh (~xhh@222.130.140.232) has joined channel #ubuntu-cn [23:11]
<tusooa> cfy: 把两条命令放到autostart的最后,就好了
<tusooa> cfy: 但是是啥给改了啊?
<cfy> tusooa: 难道是 adam8157说的?
<cfy> tusooa: 那就不是我说的
<cfy> tusooa: 不过也奇怪的
<tusooa> cfy: 被哪个软件给改了
<cfy> tusooa: adam8157: X都没启动.fvwm就给启动了?
<cfy> tusooa: 真的是背哪个软件改了? [23:12]
<cleamoon> http://ww3.sinaimg.cn/mw600/66b3de17gw1dw35h6ttanj.jpg
*** lei (~lei@118.119.133.115) has left channel #ubuntu-cn: #ubuntu-cn [23:13]
*** hamo (~hamo@106.3.61.224) has left channel #ubuntu-cn: #ubuntu-cn
<tusooa> cfy:
fcitx,stardict,xcompmgr,trayer,habak.perl,urxvt,conky,gnome-keyring-daemon
*** DrSaber (~634466600@180.171.228.248) has joined channel #ubuntu-cn
<cfy> tusooa: 不知道哪个.......应该不会吧... [23:14]
*** Frank1 (~frank@119.184.113.227) has joined channel #ubuntu-cn
<tusooa> cfy: xcompmgr,trayer,urxvt
<tusooa> cfy: trayer,urxvt
<tusooa> cfy: urxvt #??? [23:15]
<cfy> tusooa: 不知道....这个不会吧...
<cfy> tusooa: 用排除下试试
<cfy> tusooa: 用排除法试试
<tusooa> cfy: 启动上述程式之后,menu键一直都是ctrl的作用。 [23:16]
<tusooa> 看来都不是???
* adam8157 http://ww4.sinaimg.cn/mw600/66b3de17gw1dwbid4jitfj.jpg
<cleamoon> http://ww2.sinaimg.cn/bmiddle/7fd54a81j ... jy18sj.jpg [23:17]
<tusooa> cfy: 咋看咋正常啊
<cleamoon> adam8157, 没看懂
<cleamoon>
http://fmn.rrimg.com/fmn063/20120505/19 ... 581260.jpg
<tusooa> cfy: 反正放到脚本最后,就正常了[/bash]


_________________
代码:
] ls -ld //


页首
 用户资料  
 
7 楼 
 文章标题 : Re: 改变xmodmap键配置的脚本,放到fvwm autostart里,有问题
帖子发表于 : 2012-08-27 23:21 

注册: 2008-10-31 22:12
帖子: 6546
系统: 践兔
送出感谢: 18
接收感谢: 25
adam8157 写道:
hmm, 因为x启动之前认不到keycode 135或者Control_R?

fvwm都启动了,还X启动之前。。。


_________________
代码:
] ls -ld //


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 7 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 0 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译