Add unified .xprofile for all systems

This commit is contained in:
Knut Ahlers 2024-09-23 16:52:11 +02:00
parent 9998efe021
commit 419dbdfc27
Signed by: luzifer
SSH key fingerprint: SHA256:/xtE5lCgiRDQr8SLxHMS92ZBlACmATUmF1crK16Ks4E
4 changed files with 18 additions and 0 deletions

8
.xprofile Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
[[ -d ${HOME}/.xprofile.d ]] && {
for lc in $(find ${HOME}/.xprofile.d -name '*.zsh' -o -name '*.sh'); do
[[ -e $lc ]] && source ${lc} || true
done
} || true

View file

@ -0,0 +1,3 @@
# Fix Keyboard setup
setxkbmap -option ''
setxkbmap -layout us,de -option 'grp_led:scroll,grp:caps_toggle,compose:ralt'

View file

@ -0,0 +1,5 @@
# Fix broken ssh-agent after crash
systemctl --user is-active ssh-agent.service | grep -q active || {
rm -f ~/.ssh/ssh_auth_sock
systemctl --user restart ssh-agent.service
}

View file

@ -0,0 +1,2 @@
killall xbindkeys || true
xbindkeys -p