From eb3657b0c9ffd30d3b2e4c8fff8aa154ef0cbfaf Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 13 Sep 2016 12:50:37 -0700 Subject: [PATCH] Back to simple xinitrc --- dotfiles/xinitrc | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/dotfiles/xinitrc b/dotfiles/xinitrc index 06037ad0..7e071c3d 100644 --- a/dotfiles/xinitrc +++ b/dotfiles/xinitrc @@ -1,18 +1,3 @@ -function command_exists { - hash "$1" 2>/dev/null 1>/dev/null -} - -function run_if_exists { - command_exists "$1" && $@ -} - +# -*- mode: sh -*- setxkbmap -layout "$(setxkbmap -print | awk -F + '/xkb_symbols/ {print $2}')" -option ctrl:nocaps -xrdb -merge .Xresources - -run_if_exists stalonetray & -run_if_exists xscreensaver -no-splash & -run_if_exists nm-applet --sm-disable & -run_if_exists feh --bg-scale /usr/share/backgrounds/gnome/Blinds.jpg & -run_if_exists copyq & -run_if_exists copyq hide -run_if_exists rofi & +xrdb -merge "$HOME/.Xresources"