安裝:
$ 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