]> git.rmz.io Git - dotfiles.git/commitdiff
xprofile: only set urxvt related env when needed
authorSamir Benmendil <me@rmz.io>
Tue, 1 Nov 2022 14:42:14 +0000 (14:42 +0000)
committerSamir Benmendil <me@rmz.io>
Tue, 1 Nov 2022 14:42:14 +0000 (14:42 +0000)
xprofile.d/99-applications.sh

index b0bc270d8b1c6cd03a6439802a24b9c9e219eb6e..229a9e63b5d3627f07f4255280c52b2c9556b860 100755 (executable)
@@ -1,10 +1,12 @@
-URXVT_PERL_LIB=$URXVT_PERL_LIB:$HOME/src/dotfiles/urxvt/autocomplete-ALL-the-things
-URXVT_PERL_LIB=$URXVT_PERL_LIB:$HOME/src/dotfiles/urxvt/font-size
-URXVT_PERL_LIB=$URXVT_PERL_LIB:$HOME/src/dotfiles/urxvt/perls
-URXVT_PERL_LIB=$URXVT_PERL_LIB:$HOME/src/dotfiles/urxvt/perls/deprecated
-export URXVT_PERL_LIB
+if [[ "$TERMINAL" == "urxvtc" ]]; then
+    URXVT_PERL_LIB=$URXVT_PERL_LIB:$HOME/src/dotfiles/urxvt/autocomplete-ALL-the-things
+    URXVT_PERL_LIB=$URXVT_PERL_LIB:$HOME/src/dotfiles/urxvt/font-size
+    URXVT_PERL_LIB=$URXVT_PERL_LIB:$HOME/src/dotfiles/urxvt/perls
+    URXVT_PERL_LIB=$URXVT_PERL_LIB:$HOME/src/dotfiles/urxvt/perls/deprecated
+    export URXVT_PERL_LIB
+    urxvtd -q -o -f
+fi
 
-[[ "$TERMINAL" == "urxvtc" ]] && urxvtd -q -o -f
 picom &
 unclutter --timeout 1 &
 xcape -e "Control_L=Escape;Control_R=Escape"