You are not logged in.
Pages: 1
I have a
xmodmap ~/.custom_xmodmapline in .bashrc. I included a script to manually upload it and set it up to autostart; it's just a bash script with:
#!/bin/bash
xmodmap .custom_xmodmapAfter using my laptop, I notice that it stopped working, and I don't know when. How can I solve this issue?
Offline
it's just a bash script
Do you want to execute the script when the user log in or when it open the bash?
Because the bashrc file will launch the program once you have opened the bash
BTW, I reccomend you to use crontab https://wiki.archlinux.org/title/cron
EDIT: Spelling
Last edited by Khere (2023-10-30 09:43:31)
Fan of Giorgio Moroder & Mohammad Ammax enemy
Offline
The script will fail if
- ~/.bashrc isn't sourced at all because you switched to the superior zsh
- bashrc is sourced while there's no X11 server or w/o the $DISPLAY environment present
- your ~/.custom_xmodmap is bogus
If it initially works and the change gets lost during the session that's most likely for any kind of xkb mapping (setxkbmap was called, the keyboard got (logically) reattached (eg. b/c of an S3)
I recommend not doing any of this and run xmodmap (if you really REALLY cannot use an xkb setting) at an appropriate time during the GUI session setup or, if need be, after the resume from S3
cat ~/.custom_xmodmap
loginctl session-statusOffline
Pages: 1