This commit is contained in:
Stephan Raabe 2023-11-11 11:17:50 +01:00
parent ea2a6adbf0
commit ad8ab06486
4 changed files with 4 additions and 5 deletions

View File

@ -21,7 +21,6 @@ EOF
read -p "Do you want to proceed? (Yy/Nn): " yn read -p "Do you want to proceed? (Yy/Nn): " yn
case $yn in case $yn in
[Yy]* ) [Yy]* )
echo "-> Preparing dotfiles"
if [ ! -d ~/dotfiles-versions ]; then if [ ! -d ~/dotfiles-versions ]; then
mkdir ~/dotfiles-versions mkdir ~/dotfiles-versions
fi fi

View File

@ -20,11 +20,11 @@ while true; do
if [ -z "$keyboard" ]; then if [ -z "$keyboard" ]; then
keyboard="us" keyboard="us"
fi fi
SEARCH="kb_layout = de" SEARCH="kb_layout = us"
REPLACE="kb_layout = $keyboard" REPLACE="kb_layout = $keyboard"
sed -i "s/$SEARCH/$REPLACE/g" ~/dotfiles-versions/$version/hypr/conf/keyboard.conf sed -i "s/$SEARCH/$REPLACE/g" ~/dotfiles-versions/$version/hypr/conf/keyboard.conf
SEARCH="keyboard_layout = \"de\"" SEARCH="keyboard_layout = \"us\""
REPLACE="keyboard_layout = \"$keyboard\"" REPLACE="keyboard_layout = \"$keyboard\""
sed -i "s/$SEARCH/$REPLACE/g" ~/dotfiles-versions/$version/qtile/conf/keyboard.py sed -i "s/$SEARCH/$REPLACE/g" ~/dotfiles-versions/$version/qtile/conf/keyboard.py
break;; break;;

View File

@ -2,7 +2,7 @@
# Keyboard Layout # Keyboard Layout
# ----------------------------------------------------- # -----------------------------------------------------
input { input {
kb_layout = de kb_layout = us
# kb_layout = us # kb_layout = us
follow_mouse = 1 follow_mouse = 1
touchpad { touchpad {

View File

@ -1,3 +1,3 @@
# Setup global keyboard layout here # Setup global keyboard layout here
keyboard_layout = "de" keyboard_layout = "us"