Shortcut for Lightdm restart
Posted: Mon Oct 25, 2021 7:24 am
Hello guys,
I am trying unsuccessfully to add a shortcut on my Raspberry to restart LightDM, the classic CTRL-ALT-BackSpace
I tried to add the following with the same result in /etc/xdg/openbox/lxde-pi-rc.xml and ~/.config/openbox/lxde-pi-rc.xml
I tried also
If I run these commands on terminal of course they works, but there's no way for me to add it as a shortcut,
help please!
I am trying unsuccessfully to add a shortcut on my Raspberry to restart LightDM, the classic CTRL-ALT-BackSpace
I tried to add the following with the same result in /etc/xdg/openbox/lxde-pi-rc.xml and ~/.config/openbox/lxde-pi-rc.xml
Code: Select all
<keybind key="C-A-BackSpace">
<action name="Execute">
<command>sudo systemctl restart lightdm</command>
</action>
</keybind>
Code: Select all
<keybind key="C-A-BackSpace">
<action name="Execute">
<command>sudo service lightdm restart</command>
</action>
</keybind>
help please!