неделя, 23 декември 2018 г.

Fix lockscreen problem

After new installation, my sabayon lockscreen wouldn't unlock, even though the password was correct. A workaround was ctr+f2 and:
$sudo loginctl unlock-session 1

A fix is to do:
$sudo chmod u+s /usr/lib64/libexec/kcheckpass
Worked perfectly.

From here:
The correct permissions for /etc/shadow are root:root mode 600. The correct permissions for /sbin/unix_chkpwd depend on whether it was installed with USE=filecaps. If it was so installed, then the permissions should be 711. If it was installed with USE=-filecaps, then the permissions should be 4711.

понеделник, 17 декември 2018 г.

How to remove shortcut from your left win

I'm using my win key for switching keyboard layouts (because why the hell would you need to press alt+shift when you can just press win). So obviously the default shortcut connecting it with the start menu is not ok for me. I mean it makes sense for Windows users, but I'm using Linux for probably 10 years now, I use the start menu only to suspend the machine. For anything else I use alt+f2. So it's redundant and nonsensical. 
The major problem  is that when you assign the left win to the layout switcher, it doesn't automatically unassign it from the menu. So to do that, you need to:

You need to modify the kwinrc file in ~/.config/kwinrc
Group
[ModifierOnlyShortcuts]
Meta= 
 and then then 
>qdbus org.kde.KWin /KWin reconfigure

or 
 
kwriteconfig5 --file kwinrc --group ModifierOnlyShortcuts --key Meta ""
 
source