如何在 Awesome 菜单中创建切换用户条目?
如果有帮助,我会使用 kubuntu。
最佳答案
如果您使用带有 lightdm 的 ubuntu 作为显示管理器,您可以使用“dm-tool”
类型 dm-tool -h
列出选项,它们是自我解释的
我的 rc.lua 中有这样的
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
{ "Debian", debian.menu.Debian_menu.Debian },
{ "open terminal", terminal },
{ "switch user", terminal .. " -e /usr/bin/dm-tool switch-to-user username" }
}
})
dm-tool 选项
switch-to-user
带您进入登录屏幕,您添加的用户已选择为参数剩下的就是输入密码。
关于menu - 在 Awesome WM 菜单中切换用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10064369/