summaryrefslogtreecommitdiff
path: root/desktop/openbox/xinitrc.gnome-openbox
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/openbox/xinitrc.gnome-openbox')
-rw-r--r--desktop/openbox/xinitrc.gnome-openbox20
1 files changed, 4 insertions, 16 deletions
diff --git a/desktop/openbox/xinitrc.gnome-openbox b/desktop/openbox/xinitrc.gnome-openbox
index 3b64b77e1a..ae9cbb511f 100644
--- a/desktop/openbox/xinitrc.gnome-openbox
+++ b/desktop/openbox/xinitrc.gnome-openbox
@@ -7,22 +7,10 @@ sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
-
-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
+[ -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
# Create default user directory & populate it if not already existent
if [ ! -d $HOME/.config/openbox ]; then