From 7c76823e8b51731d236764ec9a836184d374b783 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Sat, 6 Nov 2021 17:36:44 +0100 Subject: [PATCH] Little bit of polish to common-shells and x --- common-shells/.profile | 3 +-- x/.xinitrc | 4 ++-- x/.xprofile | 1 - x/.xsession | 1 - x/.xsessionrc | 1 - 5 files changed, 3 insertions(+), 7 deletions(-) diff --git a/common-shells/.profile b/common-shells/.profile index 0aeb1ef..3f65a25 100644 --- a/common-shells/.profile +++ b/common-shells/.profile @@ -10,11 +10,10 @@ # Set font for console tty # Source: https://github.com/powerline/fonts/tree/master/Terminus/PSF -if [ "$TERM" == "linux" ]; then +if [ "$TERM" = "linux" ]; then CONSOLE_FONTD=$HOME/.local/share/consolefonts CONSOLE_FONT=ter-powerline-v12n.psf.gz if [ -f "$CONSOLE_FONTD/$CONSOLE_FONT" ]; then setfont "$CONSOLE_FONTD/$CONSOLE_FONT" fi fi - diff --git a/x/.xinitrc b/x/.xinitrc index c5cb6fb..7704986 100755 --- a/x/.xinitrc +++ b/x/.xinitrc @@ -18,7 +18,7 @@ fi # NOTE: this stinks a bit, and everything works without this... BUT there are # some parameters set in this collection of scripts of which at the -# moment I don't have the time (and will) to grasp the secuirty +# moment I don't have the time (and the will) to grasp the secuirty # consequences of removing them. # run all system xinitrc shell scripts. if [ -d /etc/X11/Xsession.d ]; then @@ -26,7 +26,7 @@ if [ -d /etc/X11/Xsession.d ]; then if [ -n "$SESSIONFILES" ]; then set +e for SESSIONFILE in $SESSIONFILES; do - . $SESSIONFILE + . "$SESSIONFILE" done set -e fi diff --git a/x/.xprofile b/x/.xprofile index 02f20a5..bee855f 100755 --- a/x/.xprofile +++ b/x/.xprofile @@ -13,4 +13,3 @@ # - ~/.xinitrc # - ~/.xsession # For example XDM or the command xinit and its wrapper startx - diff --git a/x/.xsession b/x/.xsession index 24a898f..1027b01 100755 --- a/x/.xsession +++ b/x/.xsession @@ -20,4 +20,3 @@ case $session in xmonad ) exec xmonad;; *) exec $1;; esac - diff --git a/x/.xsessionrc b/x/.xsessionrc index 60f54ec..c080b81 100755 --- a/x/.xsessionrc +++ b/x/.xsessionrc @@ -18,4 +18,3 @@ unset C_PATH if fsmartconnect --version > /dev/null ; then fsmartconnect & fi -