我安装了 Ubuntu 15.10,当我第一次启动电脑时,它给了我非常漂亮的 ubuntu lightdm 登录屏幕,但每次我锁定电脑时,我都会看到非常难看的 gnome 锁定屏幕。我怎样才能让它只使用其中一个?
我尝试过的事情:
- 重新安装 GDM
sudo dpkg-reconfigure
在 gdm 和 lightdm 上
$ dm-tool lock
似乎锁定正确,但按下super + L
会让我回到丑陋的 gdm 锁定屏幕。
我目前的解决方法是更改要使用的键盘快捷键,dm-tool lock
但这并不可持续。
编辑:
评论中有人建议删除该包gdm
,但当我尝试删除时,它却要删除ubuntu-gnome-desktop
下面的列表。显然这不是我想要做的。
account-plugin-aim account-plugin-google account-plugin-jabber account-plugin-salut account-plugin-yahoo acpi-support aisleriot
app-install-data-partner apturl apturl-common argyll argyll-ref baobab bluez-cups brltty cheese dc dconf-editor deja-dup
deja-dup-backend-cloudfiles deja-dup-backend-gvfs deja-dup-backend-s3 duplicity empathy empathy-common file-roller fonts-cantarell
.....
syslinux-legacy telepathy-gabble telepathy-idle telepathy-logger telepathy-salut toshset transmission-common transmission-gtk
ttf-ancient-fonts-symbola ttf-indic-fonts-core ubuntu-sso-client unity-asset-pool uno-libs3 unoconv ure usb-creator-common
usb-creator-gtk vino whoopsie x11-apps x11-session-utils xdg-user-dirs-gtk xdiagnose xinit xorg xsltproc yelp-tools zsync
答案1
Super+L是 Compiz 窗口管理器中设置的快捷方式。设置中设置的内容将进入gsettings
(用于存储应用程序设置的框架,略有不同),然后将您设置的任何快捷方式转发到gnome-settings-daemon
或unity-settings-daemon
。这意味着我们必须先更改 Compiz 设置。
我个人采取的步骤如下:
- 使用以下命令安装 compizconfig-settings-manager
sudo apt-get install compizconfig-settings-manager
compizconfig-settings-manager
使用ccsm
终端命令或 dash 的搜索打开Ubuntu Unity Plugin
在选项查找选项下Key to lock screen
,单击描述快捷方式的按钮。
此时,您可以前往“设置”->“键盘”->“快捷方式”,并使用键绑定Super+L作为dm-tool lock
命令设置自定义快捷方式。
已在 Ubuntu 14.04 LTS 上测试,Trusty
编辑
由于 OP 使用的是 Ubuntu Gnome 而不是 Unity,我使用了我的 15.10 Ubuntu Gnome 虚拟机,发现在正常会话中没有运行 compiz 进程,但是 +Super似乎L是在 gnome-shell 本身中硬编码的。
我成功实现的操作如下:运行gsettings
下面的命令,然后在设置->键盘->快捷键->自定义菜单中将自定义快捷键设置CtrlAltL为dm-tool lock
命令。
gsettings set org.gnome.desktop.lockdown disable-lock-screen true
运行命令并创建快捷方式后,我可以使用 lightdm,而不是通常的内置 gnome 锁屏。OP 也在我们对话中证实了这一点聊天,但希望Super+L成为实际的加速器,并具有更好的锁定速度。目前我无法解决这些问题,而且 OP 想要的组合键似乎是硬编码的,因此无法更改,但我不能 100% 确定。