Refactor config.fish

This commit is contained in:
Roland Thomas Jr 2023-06-29 00:25:51 -04:00
parent d19fd744a5
commit d4249a957f
1 changed files with 5 additions and 19 deletions

View File

@ -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