From 29c6579d02eb8ca12a0da2c414a7a51848fbce2b Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sun, 24 Dec 2023 15:55:34 +0100 Subject: XDM: choose different graphical sessions using function keys The XDM man page is a bit vague about this functionality but the default Xresources file which ships with xdm has the support added. I had removed it for liveslak but added it back in part now. When entering your credentials and pressing ENTER, still the default X11 session will be started. But now instead of ENTER, when you press: F1: failsafe session will be started. F2: kde session will be started. F3: xfce session will be started. F4: fvwm2 session will be started. F5: fluxbox session will be started. --- xdm/Xresources | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/xdm/Xresources b/xdm/Xresources index 83d3d2d..91f066a 100644 --- a/xdm/Xresources +++ b/xdm/Xresources @@ -43,6 +43,23 @@ xlogin.Login.innerFramesWidth: 0 xlogin.Login.sepWidth: 0 xlogin.Login.logoFileName: /etc/X11/xdm/liveslak-xdm/bluepiSW.xpm +xlogin*login.translations: #override \ + CtrlR: abort-display()\n\ + Delete: delete-character()\n\ + Left: move-backward-character()\n\ + Right: move-forward-character()\n\ + Home: move-to-begining()\n\ + End: move-to-end()\n\ + CtrlKP_Enter: set-session-argument(failsafe) finish-field()\n\ + KP_Enter: set-session-argument() finish-field()\n\ + CtrlReturn: set-session-argument(failsafe) finish-field()\n\ + Return: set-session-argument() finish-field() + F1: set-session-argument(failsafe) finish-field()\n\ + F2: set-session-argument(kde) finish-field()\n\ + F3: set-session-argument(xfce) finish-field()\n\ + F4: set-session-argument(fvwm2) finish-field()\n\ + F5: set-session-argument(fluxbox) finish-field()\n\ + .XClock.geometry: 350x28+0-0 .XClock.Clock.analog: false .XClock.Clock.strftime: (%A)\040%F\040%T -- cgit v1.2.3