Fixed keyboard config not loading by moving it to xinirc

This commit is contained in:
afonsofrancof 2022-11-05 16:00:54 +00:00
parent c2a6fc9252
commit 02be5bb7a4
2 changed files with 55 additions and 3 deletions

View file

@ -248,9 +248,6 @@ Percent of screen to increment by when resizing panes
spawn ("killall trayer ;sleep 1 && trayer --monitor 0 --edge top --align right --widthtype request --padding 7 --iconspacing 12 --SetDockType true --SetPartialStrut true --expand true --transparent true --alpha 0 --tint 0x2B2E37 --height 26 --distance 5 &")
spawnOn "web" myWebBrowser
spawnOn "main" myTerminal
spawn "setxkbmap -layout us,pt"
spawn "setxkbmap -option grp:win_space_toggle"
spawn "setxkbmap -option caps:escape"
\end{code}

55
.xinitrc Normal file
View file

@ -0,0 +1,55 @@
#!/bin/sh
#userresources=$HOME/.Xresources
#usermodmap=$HOME/.Xmodmap
#sysresources=/etc/X11/xinit/.Xresources
#sysmodmap=/etc/X11/xinit/.Xmodmap
#
## merge in defaults and keymaps
#
#if [ -f $sysresources ]; then
#
#
#
#
#
#
#
# xrdb -merge $sysresources
#
#fi
#
#if [ -f $sysmodmap ]; then
# xmodmap $sysmodmap
#fi
#
#if [ -f "$userresources" ]; then
#
#
#
#
#
#
#
# xrdb -merge "$userresources"
#
#fi
#
#if [ -f "$usermodmap" ]; then
# xmodmap "$usermodmap"
#fi
#
## start some nice programs
#
#if [ -d /etc/X11/xinit/xinitrc.d ] ; then
# for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
# [ -x "$f" ] && . "$f"
# done
# unset f
#fi
setxkbmap -layout us,pt
setxkbmap -option grp:win_space_toggle
setxkbmap -option caps:escape
xrandr --output DP-0 --primary --left-of HDMI-0
/home/afonso/.local/bin/xmonad