安装:
$ sudo apt install lxde
$ sudo apt install lxde-common
安装完毕后,可能没法关机及logout,可以使用如下安装:
$ sudo apt install lxsession-logout
如果还是不能关机和logout,则用下面的试试:
$ sudo apt install lxde-logout
如果需要看是否要移除 clipit,它可能带有不安全因素。
如果由于ubuntu版本太老而无法用apt-get安装,可以先加入:
sudo add-apt-repository ppa:lxde/ppa sudo apt-get update
lxde 下交换ctrl及caps lock的方法:
Open up (lx)terminal and type in the one you want:
# 1. Lubuntu Caps Lock -> Super :
$ setxkbmap -option caps:super
# 2. Left Control <-> Caps Lock :
setxkbmap -option ctrl:swapcaps
# 3. Caps Lock -> Control :
setxkbmap -option ctrl:nocaps
Of course this doesn't get saved persistantly on reboot, so you have to run this for every boot.
I've placed a script called "caps-killer.sh" in /usr/bin/caps-killer.sh and made it run on boot by running:
gksudo leafpad /etc/xdg/lxsession/Lubuntu/autostart
...and inserted this at the end:
@/usr/bin/caps-killer.sh
lxde 自动开启numlock的方法:
首先查看下当前使用的是哪种 Display Manager,命令如下:
cat /etc/X11/default-display-manager
输出大概率应该是 "/usr/sbin/lightdm", 如果不是,则在登录前无法打开numlock(需另寻其它方法)。
安装 numlock 包:
apt-get install numlockx
在登录前打开numlock,则修改 /etc/lightdm/lightdm.conf ,在该文件的 "[SeatDefaults]" 章节下添加如下行,如果你的 Display Manager 不是 lightDM,则需另寻方法:
greeter-setup-script=/usr/bin/numlockx on
此时,登录前已经打开了numlock,但登录后,numlock会启动熄灭,如需要保持numlock的打开状态,则需要:
在登录后开启,你需要在 /etc/xdg/lxsession/LXDE/autostart 文件添加如下行:
/usr/bin/numlockx on
注意,不要在行首添加 "@",它表示检查状态变化并不断执行该命令,也就是说如果你加上它,则numlockx会在numlock灯灭的时候自动重启,着牙你永远没法关闭numlock。
lxde 右下方的日期时间格式如下:
- %a - The abbreviated weekday name (Sun)
- %A - The full weekday name (Sunday)
- %b - The abbreviated month name (Jan)
- %B - The full month name (January)
- %d - Day of the month (01..31)
- %e - Day of the month (1..31)
- %H - Hour of the day, 24-hour clock (00..23)
- %I - Hour of the day, 12-hour clock (01..12)
- %l - Hour of the day ()
- %j - Day of the year (001..366)
- %m - Month of the year (01..12)
- %M - Minute of the hour (00..59)
- %p - Meridian indicator (AM or PM)
- %S - Second of the minute (00..60)
- %w - Day of the week (Sunday is 0, 0..6)
- %y - Year without a century (00..99)
- %Y - Year with century
- %Z - Time zone name
- %% - Literal % character
我一般这样使用:
%y年%b%d日 %R