From 02be5bb7a45a5b1c0cba7bb9782abb8845deef09 Mon Sep 17 00:00:00 2001 From: afonsofrancof Date: Sat, 5 Nov 2022 16:00:54 +0000 Subject: [PATCH] Fixed keyboard config not loading by moving it to xinirc --- .config/xmonad/xmonad.lhs | 3 --- .xinitrc | 55 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 .xinitrc diff --git a/.config/xmonad/xmonad.lhs b/.config/xmonad/xmonad.lhs index a730295..66bf2b6 100644 --- a/.config/xmonad/xmonad.lhs +++ b/.config/xmonad/xmonad.lhs @@ -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} diff --git a/.xinitrc b/.xinitrc new file mode 100644 index 0000000..11f8419 --- /dev/null +++ b/.xinitrc @@ -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