dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README

commit dca7b83898dceb68a18cf6d44aec7e5338347052
parent c5c46c8fed6c0dfcbbaa0046b38437daeaed2cdd
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date:   Thu, 12 May 2022 19:44:12 -0500

Refactor xinitrc

Diffstat:
Mlinux/.config/X11/xinitrc | 12+++---------
1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/linux/.config/X11/xinitrc b/linux/.config/X11/xinitrc @@ -1,10 +1,8 @@ #!/bin/sh # merge in defaults and keymaps -userresources=$XDG_CONFIG_HOME/X11/Xresources -usermodmap=$XDG_CONFIG_HOME/X11/Xmodmap -[[ -f $userresources ]] && xrdb -merge "$userresources" -[[ -f $usermodmap ]] && xmodmap "$usermodmap" +[[ -f $XDG_CONFIG_HOME/X11/Xresources ]] && xrdb -merge "$XDG_CONFIG_HOME/X11/Xresources" +[[ -f $XDG_OONFIG_HOME/X11/Xmodmap ]] && xmodmap "$XDG_CONFIG_HOME/X11/Xmodmap" # start some nice programs if [ -d /etc/X11/xinit/xinitrc.d ]; then @@ -15,10 +13,6 @@ if [ -d /etc/X11/xinit/xinitrc.d ]; then fi # Source xprofile -if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/X11/xprofile" ]; then - source "${XDG_CONFIG_HOME:-$HOME/.config}/X11/xprofile" -else - source "$HOME/.xprofile" -fi +source "$XDG_CONFIG_HOME/X11/xprofile" exec i3