From 409ecbcd97fa363b052c51d8a6db4856a9075965 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Sun, 22 Jan 2023 14:36:05 +0100 Subject: Fix shell script --- .profile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.profile b/.profile index cf657cd..fbe3015 100644 --- a/.profile +++ b/.profile @@ -1,5 +1,5 @@ #!/usr/bin/env sh -if [ -z "${XDG_RUNTIME_DIR}" ] +if [ -z "$XDG_RUNTIME_DIR" ] then XDG_RUNTIME_DIR="/tmp/$UID-runtime-dir" export XDG_RUNTIME_DIR @@ -37,14 +37,16 @@ export GTK_THEME export TERMINAL BAT="$(which bat 2> /dev/null || which batcat 2> /dev/null)" -if [ -n $BAT ] +if [ -n "$BAT" ] then MANPAGER="sh -c 'col -bx | $BAT -l man -p'" export MANPAGER fi +SWAY_PROCESSES="$(pgrep sway)" + # Sway specific -if [ `pgrep sway` ] +if [ -n "$SWAY_PROCESSES" ] then SDL_VIDEODRIVER="wayland" _JAVA_AWT_WM_NONREPARENTING=1 -- cgit v1.2.3