diff options
Diffstat (limited to 'desktop/icewm/xinitrc.icewm')
-rw-r--r-- | desktop/icewm/xinitrc.icewm | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/desktop/icewm/xinitrc.icewm b/desktop/icewm/xinitrc.icewm index 399a04b3a2212..a2fdacc78a3e4 100644 --- a/desktop/icewm/xinitrc.icewm +++ b/desktop/icewm/xinitrc.icewm @@ -5,25 +5,13 @@ usermodmap=$HOME/.Xmodmap sysresources=/usr/lib/X11/xinit/.Xresources sysmodmap=/usr/lib/X11/xinit/.Xmodmap -# merge in defaults and keymaps +# Merge in defaults and keymaps +[ -f $sysresources ] && /usr/bin/xrdb -merge $sysresources +[ -f $sysmodmap ] && /usr/bin/xmodmap $sysmodmap +[ -f $userresources ] && /usr/bin/xrdb -merge $userresources +[ -f $usermodmap ] && /usr/bin/xmodmap $usermodmap -if [ -f $sysresources ]; then - /usr/bin/xrdb -merge $sysresources -fi - -if [ -f $sysmodmap ]; then - /usr/bin/xmodmap $sysmodmap -fi - -if [ -f $userresources ]; then - /usr/bin/xrdb -merge $userresources -fi - -if [ -f $usermodmap ]; then - /usr/bin/xmodmap $usermodmap -fi - -# Create default user directory & populate it if not already existent +# Create default user directory & populate it if it does not already exist if [ ! -d $HOME/.icewm ]; then mkdir $HOME/.icewm for FILE in keys menu preferences toolbar winoptions; |