From d4249a957fb20bbb71ee89874f2e668da990af60 Mon Sep 17 00:00:00 2001 From: Roland Thomas Date: Thu, 29 Jun 2023 00:25:51 -0400 Subject: [PATCH] Refactor config.fish --- .config/fish/config.fish | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index bd36499..7ae4555 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -15,10 +15,15 @@ set --export XSECURELOCK_DIM_COLOR "#2E3440" set --export XSECURELOCK_NO_COMPOSITE 1 if status is-interactive + source "$HOME/.config/fish/abbreviations.fish" end # Start X at login if status --is-login + fish_add_path "$HOME/.local/bin" + fish_add_path "$HOME/.cargo/bin" + fish_add_path "/usr/lib/xsecurelock" + # Check if DISPLAY is set if set -q DISPLAY xset s 300 5 xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsecurelock & @@ -31,23 +36,4 @@ if status --is-login end end -switch $DISPLAY - case ':10.0' - if test -z "$XSECURELOCK_XRDP" - set --export XSECURELOCK_XRDP 1 - xset s 300 5 - xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsecurelock & - pactl set-default-sink xrdp-sink - picom --animations --no-fading-openclose -b - end -end - -# Check if DISPLAY is set - -fish_add_path "$HOME/.local/bin" -fish_add_path "$HOME/.cargo/bin" -fish_add_path "/usr/lib/xsecurelock" - -source "$HOME/.config/fish/abbreviations.fish" - starship init fish | source