Update Qtile keyboard layout

This commit is contained in:
Stephan Raabe 2023-12-21 11:11:43 +01:00
parent 7a2d9d9f2b
commit 7c0c43b354
3 changed files with 39 additions and 6 deletions

View File

@ -44,14 +44,14 @@ else
_confirmKeyboard
cp .install/templates/keyboard.conf ~/dotfiles-versions/$version/hypr/conf/keyboard.conf
cp .install/templates/keyboard.py ~/dotfiles-versions/$version/qtile/conf/keyboard.py
cp .install/templates/autostart.sgh ~/dotfiles-versions/$version/qtile/autostart.sh
SEARCH="KEYBOARD_LAYOUT"
REPLACE="$keyboard_layout"
sed -i "s/$SEARCH/$REPLACE/g" ~/dotfiles-versions/$version/hypr/conf/keyboard.conf
SEARCH="\"setxkbmap en\""
REPLACE="\"setxkbmap $keyboard_layout\""
SEARCH="\"KEYBOARD_LAYOUT\""
REPLACE="\"$keyboard_layout\""
sed -i "s/$SEARCH/$REPLACE/g" ~/dotfiles-versions/$version/qtile/autostart.sh
echo ""

36
.install/templates/autostart.sh Executable file
View File

@ -0,0 +1,36 @@
#!/bin/bash
# ___ _____ ___ _ _____ ____ _ _
# / _ \_ _|_ _| | | ____| / ___|| |_ __ _ _ __| |_
# | | | || | | || | | _| \___ \| __/ _` | '__| __|
# | |_| || | | || |___| |___ ___) | || (_| | | | |_
# \__\_\|_| |___|_____|_____| |____/ \__\__,_|_| \__|
#
#
# by Stephan Raabe (2023)
# -----------------------------------------------------
# My screen resolution
# xrandr --rate 120
# For Virtual Machine
# xrandr --output Virtual-1 --mode 1920x1080
# Keyboard layout
setxkbmap KEYBOARD_LAYOUT
# Load picom
picom &
# Load power manager
xfce4-power-manager &
# Load notification service
dunst &
# Launch polybar
~/dotfiles/qtile/scripts/loadbar.sh
sleep 1
# Setup Wallpaper and update colors
~/dotfiles/qtile/scripts/wallpaper.sh init

View File

@ -1,3 +0,0 @@
# Setup global keyboard layout here
keyboard_layout = "KEYBOARD_LAYOUT"