diff options
author | Luca Matei Pintilie <lucafulger@gmail.com> | 2023-01-22 13:36:05 +0000 |
---|---|---|
committer | Luca Matei Pintilie <lucafulger@gmail.com> | 2023-01-22 13:36:05 +0000 |
commit | 409ecbcd97fa363b052c51d8a6db4856a9075965 (patch) | |
tree | 5730b859374b55d822527800d2a37182202601fb /.profile | |
parent | 7eb6d4034b67a2a4b141d87a03e5b81952feffc0 (diff) | |
download | dotfiles-409ecbcd97fa363b052c51d8a6db4856a9075965.tar dotfiles-409ecbcd97fa363b052c51d8a6db4856a9075965.tar.gz dotfiles-409ecbcd97fa363b052c51d8a6db4856a9075965.tar.bz2 dotfiles-409ecbcd97fa363b052c51d8a6db4856a9075965.tar.lz dotfiles-409ecbcd97fa363b052c51d8a6db4856a9075965.tar.xz dotfiles-409ecbcd97fa363b052c51d8a6db4856a9075965.tar.zst dotfiles-409ecbcd97fa363b052c51d8a6db4856a9075965.zip |
Fix shell script
Diffstat (limited to '.profile')
-rw-r--r-- | .profile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |