config: update Xorg initialisation

This commit is contained in:
xerus2000 2021-03-01 09:58:21 +01:00
parent 772896a3c2
commit 79c92ec6cb
6 changed files with 8 additions and 9 deletions

2
.Xmodmap Normal file
View File

@ -0,0 +1,2 @@
! Swap semicolon and colon - https://unix.stackexchange.com/questions/615799/swap-semicolon-colon-to-p-unexpected-cause-semicolon-colon-affected-by-cpas-lock
keycode 47 = colon semicolon colon semicolon

View File

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
echo $XDG_RUNTIME_DIR
test "$ACTION" && case $ACTION in test "$ACTION" && case $ACTION in
add) id=1;; add) id=1;;
remove) id=0;; remove) id=0;;
esac || id=$(test -c /dev/ttyACM0 && echo 1 || echo 0) esac || id=$(test -c /dev/ttyACM0 && echo 1 || echo 0)
test "$id" && XAUTHORITY="/home/janek/.cache/Xauthority" DISPLAY=:0 xkblayout-state set $id test "$id" && XAUTHORITY="/run/user/1000/Xauthority" DISPLAY=:0 xkblayout-state set $id

3
.xinitrc Normal file
View File

@ -0,0 +1,3 @@
export KDEHOME="$XDG_DATA_HOME/kdehome"
export DESKTOP_SESSION=plasma
exec startplasma-x11

View File

@ -1,8 +0,0 @@
export XDG_DATA_DIRS="$HOME/.local/xdg:$XDG_DATA_DIRS"
export KDEHOME="$XDG_DATA_HOME/kdehome"
# Update keyboard layout to US if keyboardio is connected
$HOME/.local/bin/update-keyboard-layout
# Swap semicolon and colon - https://unix.stackexchange.com/questions/615799/swap-semicolon-colon-to-p-unexpected-cause-semicolon-colon-affected-by-cpas-lock
xmodmap -e "keycode 47 = colon semicolon colon semicolon"

View File

@ -3,6 +3,7 @@ export DATA="$HOME/data"
export XDG_DATA_HOME="$HOME/.local/share" export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache" export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config" export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_DIRS="$HOME/.local/xdg:$XDG_DATA_DIRS"
# adjust programs to use xdg # adjust programs to use xdg
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass