LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1631|回复: 5

Gentoo,用SLim启动Fvwm导致Mod4不能用

[复制链接]
发表于 2010-8-23 20:03:40 | 显示全部楼层 |阅读模式
startx可以。
  1. tlcr: 0 庚寅年七月十四日 19:57:50 ~
  2. ● dog /etc/slim.conf
  3. # Path, X server and arguments (if needed)
  4. # Note: -xauth $authfile is automatically appended
  5. default_path        ./:/bin:/usr/bin:/usr/local/bin
  6. default_xserver     /usr/bin/X
  7. xserver_arguments   -nolisten tcp -br -deferglyphs 16

  8. # Commands for halt, login, etc.
  9. halt_cmd            /sbin/shutdown -h now
  10. reboot_cmd          /sbin/shutdown -r now
  11. console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
  12. #suspend_cmd        /usr/sbin/suspend

  13. # Full path to the xauth binary
  14. xauth_path         /usr/bin/xauth

  15. # Xauth file for server
  16. authfile           /var/run/slim.auth


  17. # Activate numlock when slim starts. Valid values: on|off
  18. numlock             on

  19. # Hide the mouse cursor (note: does not work with some WMs).
  20. # Valid values: true|false
  21. # hidecursor          false

  22. # This command is executed after a succesful login.
  23. # you can place the %session and %theme variables
  24. # to handle launching of specific commands in .xinitrc
  25. # depending of chosen session and slim theme
  26. #
  27. # NOTE: if your system does not have bash you need
  28. # to adjust the command according to your preferred shell,
  29. # i.e. for freebsd use:
  30. # login_cmd           exec /bin/sh - ~/.xinitrc %session
  31. login_cmd           exec /bin/bash -login ~/.xinitrc %session
  32. #login_cmd           exec /bin/bash -login /etc/X11/xinit/xinitrc

  33. # Commands executed when starting and exiting a session.
  34. # They can be used for registering a X11 session with
  35. # sessreg. You can use the %user variable
  36. #
  37. # sessionstart_cmd      some command
  38. # sessionstop_cmd       some command
  39. sessionstart_cmd        /usr/bin/sessreg -a -l :0.0 %user
  40. sessionstop_cmd     /usr/bin/sessreg -d -l :0.0 %user

  41. # Start in daemon mode. Valid values: yes | no
  42. # Note that this can be overriden by the command line
  43. # options "-d" and "-nodaemon"
  44. daemon  yes

  45. # Available sessions (first one is the default).
  46. # The current chosen session name is replaced in the login_cmd
  47. # above, so your login command can handle different sessions.
  48. # see the xinitrc.sample file shipped with slim sources
  49. sessions            xfce4,icewm,wmaker,blackbox

  50. # Executed when pressing F11 (requires imagemagick)
  51. screenshot_cmd      import -window root /slim.png

  52. # welcome message. Available variables: %host, %domain
  53. welcome_msg         Welcome to %host

  54. # Session message. Prepended to the session name when pressing F1
  55. # session_msg         Session:

  56. # shutdown / reboot messages
  57. shutdown_msg       The system is halting...
  58. reboot_msg         The system is rebooting...

  59. # default user, leave blank or remove this line
  60. # for avoid pre-loading the username.
  61. #default_user        simone

  62. # Focus the password field on start when default_user is set
  63. # Set to "yes" to enable this feature
  64. #focus_password      no

  65. # Automatically login the default user (without entering
  66. # the password. Set to "yes" to enable this feature
  67. #auto_login          no


  68. # current theme, use comma separated list to specify a set to
  69. # randomly choose from
  70. current_theme       slim-gentoo-simple

  71. # Lock file
  72. lockfile            /var/run/slim.lock

  73. # Log file
  74. logfile             /var/log/slim.log

  75. tlcr: 0 庚寅年七月十四日 19:57:56 ~
复制代码

以上是slim的配置,有什么问题??
Arch下面没问题。
应该和Fvwm没关系
发表于 2010-8-23 21:03:01 | 显示全部楼层
用 xmodmap 试试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-8-23 21:16:52 | 显示全部楼层
  1. tlcr: 0 庚寅年七月十四日 21:05:09 ~
  2. ● xmodmap
  3. xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):
  4. shift       Shift_L (0x32),  Shift_R (0x3e)
  5. lock        Caps_Lock (0x42)
  6. control     Control_L (0x25),  Control_R (0x69)
  7. mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd)
  8. mod2        Num_Lock (0x4d)
  9. mod3      
  10. mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
  11. mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)
  12. tlcr: 0 庚寅年七月十四日 21:13:22 ~
复制代码
找到问题之后第一个命令就是xmodmap
回复 支持 反对

使用道具 举报

发表于 2010-8-24 22:24:59 | 显示全部楼层
感觉都用gentoo 了,没有必要弄个slim gdm 之类的东西,直接在 .bashrc 中写了startx 命令,这样只要命令行下登陆后就后启动到图形界面

我的.bashrc 内容如下

if [ ! -f /tmp/.X0-lock  ] ; then
         startx
        logout
fi

然后在.xinitrc 中写上你想启动的窗口管理器
比如
exec startlxde
exec gnome-session 等
回复 支持 反对

使用道具 举报

发表于 2012-1-10 22:53:29 | 显示全部楼层
Post by jixiuf;2109663
感觉都用gentoo 了,没有必要弄个slim gdm 之类的东西,直接在 .bashrc 中写了startx 命令,这样只要命令行下登陆后就后启动到图形界面

我的.bashrc 内容如下

if [ ! -f /tmp/.X0-lock  ] ; then
         startx
        logout
fi

然后在.xinitrc 中写上你想启动的窗口管理器
比如
exec startlxde
exec gnome-session 等
很赞,不过切换WM麻烦了点。
回复 支持 反对

使用道具 举报

发表于 2012-1-11 09:18:01 | 显示全部楼层
Post by 刘淑悯;2158499
很赞,不过切换WM麻烦了点。


不会麻烦啊。一般WM的指令都有--replace选项。直接换WM而保留所有已经打开的程式。

用Login Manager反而要先Logout(关掉所有程式视窗)再转WM、再重新打开所有程式。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表