From a7940964544bdf4536c16836dc79e2d0ae375ae0 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 17 Nov 2018 00:44:54 +0100 Subject: .xprofile: Repaired with the help of shellcheck. --- .xprofile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.xprofile') diff --git a/.xprofile b/.xprofile index 34ad424..116c4b4 100644 --- a/.xprofile +++ b/.xprofile @@ -1,8 +1,8 @@ #!/usr/bin/env bash # use .Xmodmap -if [[ -f ~/.Xmodmap ]]; then - /usr/bin/xmodmap ~/.Xmodmap & +if [ -f ~/.Xmodmap ]; then + /usr/bin/xmodmap ~/.Xmodmap & fi # set X settings @@ -18,12 +18,12 @@ fi # setup screens on login using autorandr if [ -x "$HOME/bin/setup_screens" ]; then - $HOME/bin/setup_screens & + "$HOME/bin/setup_screens" & fi # lock X automatically after inactivity if [ -x "$HOME/bin/xorg_autolock" ]; then - $HOME/bin/xorg_autolock & + "$HOME/bin/xorg_autolock" & fi # lock X before going to sleep -- cgit v1.2.3-54-g00ecf