Am Freitag, 20. Juli 2018 schrieb Thierry de Coulon:
On Friday 20 July 2018 18.36:17 Dan Youngquist wrote:
If there's a way to do that, it wouldn't
be handled by the GUI. The
virtual sessions, and the Ctrl-Alt-Fx keystrokes, are set up before the GUI
starts, maybe by the init system when the multiuser runlevel starts. Maybe
you could make a script to determine which graphical sessions are active,
then switch to the next one, and assign the script to a hotkey. But all
that is way above my pay grade.
I'm afraid it's way above mine too :)
Nothing special here. Modify your /etc/sudoers so that it contains an entry like this:
%sudo ALL=(ALL:ALL) ALL, (root) NOPASSWD: /bin/chvt
and then use xbindkeys to bind e.g F8 to switch to console 8 with "sudo /bin/chvt
8", that's all.
Nik
--
Please do not email me anything that you are not comfortable also sharing with the NSA,
CIA ...