Linux轻量级桌面配置-openbox+slim+pcmanfm+wicd+pnmixer+tint2

使用linux已经很长时间了,把手头的配置稍微记录一下,以免日后遗忘,也提供给大家参考

首先,登陆采用了极轻量的slim,对背景图片啥的没有特殊要求,就没做相应配置,唯一修改了的就是默认登陆用户名,以免登陆时既要输入用户名,又要输入密码,修改的是/etc/slim.conf文件,将default_user设置为我自己的默认登陆名,这样子登陆时就只需输入密码了。

然后,桌面采用了openbox,配置文件的位置是在当前用户的.config/openbox/rc.xml这儿,里面主要修改的是快捷键绑定:

 <!-- Keybindings for open file browser -->
    <keybind key="W-e">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Pcmanfm</name>
        </startupnotify>
        <command>pcmanfm -n /home/roysong</command>
      </action>
    </keybind>

   <!-- Keybindings for capture screen -->
    <keybind key="C-A-a">         
      <action name="Execute">
        <startupnotify>                             
          <enabled>true</enabled>                             
          <name>Shutter</name>
        </startupnotify>                                              
        <command>shutter -s -e</command>
      </action>                                                               
    </keybind>

 <!-- Keybindings for start terminal-->
    <keybind key="W-r">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Terminal</name>
        </startupnotify>
        <command>urxvt</command>
      </action>
    </keybind>
    <!-- Keybindings for lock screen-->
    <keybind key="W-l">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Terminal</name>
        </startupnotify>
        <command>xlock</command>
      </action>
    </keybind>
从这儿也可以看出,文件管理采用的是pcmanfm,-n参数是指每次采用win+e键开启一个新的文件管理窗口,指向用户主路径。

ctrl+alt+a截图是采用了shutter软件,使用的是区域截图的形式。

win+r是打开了命令控制台,这儿是采用了urxvt来做终端窗口。

win+l是锁定屏幕,采用了xlock来做屏保。

接下来,先说说pcmanfm,它起了两个作用,一是图形化文件管理,二是支持桌面快捷方式。图形化文件管理上面已经简要介绍了,接下来说说对桌面快捷方式的支持。在.config/openbox/autostart.sh中添加如下语句即可:

pcmanfm --desktop &

它就会自动将~/desktop下面的快捷方式展现在桌面上。

然后是tint2,它起的作用是给openbox加上任务栏,它的配置文件是.config/tint2/tint2rc,里面主要修改一下时间的展示方式和笔记本电池的通知方式即可。它的启动也是在.config/openbox/autostart.sh中添加如下语句即可:

 tint2 &

在.config/openbox/autostart.sh中我还添加了这两句:

synclient TapButton1=1
synclient TapButton2=3

作用是打开触摸板轻触作为左键点击,以及双指触作为右键的功能。

urxvt的默认界面极其丑陋,它的配置文件是~/.Xdeaults,下面是修改后的配置:

URxvt.preeditType:Root                                                          
URxvt.inputMethod:ibus
!!颜色设置
!URxvt.depth:32
URxvt.background: [90]#000000
URxvt.foreground:  #ffffff
URxvt.colorBD:Gray95
URxvt.colorUL:Green
URxvt.color1:Red2
URxvt.color4:RoyalBlue
URxvt.color5:Magenta2
URxvt.color8:Gray50
URxvt.color10:Green2
URxvt.color12:DodgerBlue
URxvt.color14:Cyan2
URxvt.color15:Gray95
!!!URL操作
!URxvt.urlLauncher:chromium
!URxvt.matcher.button:1
!Urxvt.perl-ext-common:matcher
!!!滚动条设置
URxvt.scrollBar:True
URxvt.scrollBar_right:True

URxvt.scrollBar:True                                                            
URxvt.scrollBar_right:True
URxvt.scrollBar_floating:False
!URxvt.scrollstyle:plain
!!!滚屏设置
!URxvt.mouseWheelScrollPage:True
!URxvt.scrollTtyOutput: False
!URxvt.scrollWithBuffer: True
!URxvt.scrollTtyKeypress: True
!!!光标闪烁
URxvt.cursorBlink:True
URxvt.saveLines:3000
!!!边框
URxvt.borderLess:False
!!字体设置
!Xft.dpi:96
URxvt.font:xft:Bitstream Vera Sans Mono:size=12

网络图形化管理使用的是wicd,没进行啥特别的配置,安装上即可。

音量图形化管理是pnmixer,也没进行啥特别配置,安装上即可。

监视器图形化管理是采用的lxrandr,装上即可。

其它的暂时想不到了,想到了再添加

 

posted @ 2013-03-25 12:02  _暮色  阅读(1196)  评论(0编辑  收藏  举报