Hello, good folks of Solus!
I need to remap a key to Super_L, which seems super simple, but I can't for the life of me able to source .Xmodmap
on startup. At first I thought I only need to have the file in $HOME
dir, as stated in the Arch Wiki and also as this line is in /etc/X11/xinit/xinitrc
:
usermodmap=$HOME/.Xmodmap
...
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
But apparently according to this diff gnome-session
will overwrite the keymap so I need to have an autostart script to source it.
So I tried both of this to no avail:
[Desktop Entry]
Type=Application
Name=Remap
Description=
Exec=xmodmap $HOME/.Xmodmap
and
[Desktop Entry]
Type=Application
Name=Remap
Description=
Exec=/usr/bin/xmodmap $HOME/.Xmodmap
I also created a shell script for the command:
#!/bin/sh
if [ -f $HOME/.Xmodmap ]; then
/usr/bin/xmodmap $HOME/.Xmodmap
fi
then execute that shell script instead on the autostart script, which also fails.
Any ideas what I should do? DE is Budgie.
Thanks!