Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Systemd: ALT keys on text console?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
yarjie
n00b
n00b


Joined: 20 Dec 2013
Posts: 25

PostPosted: Tue Dec 31, 2013 6:10 am    Post subject: [SOLVED] Systemd: ALT keys on text console? Reply with quote

How to make system keys (like ALT, WinKeys) work on system text console under systemd running?

Last edited by yarjie on Thu Jan 02, 2014 12:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
Kompi
Apprentice
Apprentice


Joined: 05 Oct 2002
Posts: 252
Location: Germany

PostPosted: Tue Dec 31, 2013 9:21 am    Post subject: Reply with quote

The ALT+F[0-12] keys to switch vt should work out of the box with systemd.

If you want the meta key (windows keys) for vt switching (there is an option with openrc to use them to switch left+right), I don't know if there is an option in the /etc/vconsole.conf to do that. But what you could to is to type:
Code:
loadkeys /usr/share/keymaps/i386/include/windowkeys.map.gz

If you want that at boot, write a simple unit file windowkeys.service like this:

Code:
[Unit]
Description=keymaps for meta keys
After=systemd-vconsole-setup.service

[Service]
Type=simple
ExecStart=/usr/bin/loadkeys /usr/share/keymaps/i386/include/windowkeys.map.gz

[Install]
WantedBy=multi-user.target

And enable it at boot with:
Code:
systemctl enable windowkeys.service


Edit: fixed typose in file path


Last edited by Kompi on Thu Jan 02, 2014 1:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
yarjie
n00b
n00b


Joined: 20 Dec 2013
Posts: 25

PostPosted: Thu Jan 02, 2014 12:51 pm    Post subject: Reply with quote

Oh, thank you very much! Just small thing but brings a lot of joy ;)

However you have putted here the mistyping, i.e. one should put:
/usr/share/keymaps/i386/include/windowkeys.map.gz

(instead of windowskeys.map.gz)

and inside the unit text too.
Back to top
View user's profile Send private message
Kompi
Apprentice
Apprentice


Joined: 05 Oct 2002
Posts: 252
Location: Germany

PostPosted: Thu Jan 02, 2014 1:13 pm    Post subject: Reply with quote

Oh good that you noticed, i edited the post accordingly. Just in case someone else wants to copy&paste it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum