diff --git a/.scripts/change-wallpaper b/.scripts/change-wallpaper index 64bc9aa..01413a4 100755 --- a/.scripts/change-wallpaper +++ b/.scripts/change-wallpaper @@ -12,7 +12,7 @@ ext=${image##*.} current_dir="$HOME/.config/wallpaper-chooser/current" image_copied="$current_dir/wallpaper.$ext" -temp_img=$(mktemp --suffix=.$ext) || exit 1 +temp_img=$(mktemp --suffix=."$ext") || exit 1 cp "$image" "$temp_img" || exit 1 rm -f "$current_dir"/wallpaper.* cp -f "$temp_img" "$image_copied" || ( diff --git a/.scripts/smb-mount b/.scripts/smb-mount index d0e145b..76d6a9c 100755 --- a/.scripts/smb-mount +++ b/.scripts/smb-mount @@ -1,6 +1,6 @@ #!/bin/sh -"issu" && { +issu && { echo "Do not run this script in sudo mode." exit 1 } diff --git a/.scripts/ssh-init b/.scripts/ssh-init index 84db665..43e1fb4 100755 --- a/.scripts/ssh-init +++ b/.scripts/ssh-init @@ -1,5 +1,9 @@ #!/bin/sh -# shellcheck disable=SC1091 +# shellcheck disable=SC1091,SC1090 + +# `eval "$(ssh-init)"` to set up environment +# variables for ssh agent in the current shell. +# TIPS: `bass "$(ssh-init)"` case in fish mkdir -p "$HOME/.local/state" agent_file="$HOME/.local/state/ssh-agent" @@ -18,10 +22,5 @@ if [ -z "$SSH_AUTH_SOCK" ]; then eval "$(ssh-agent -s | tee "$agent_file")" > /dev/null 2>&1 fi - [ -f "$agent_file" ] && ( - cat "$agent_file" - exit 0 - ) -fi - -echo "true" \ No newline at end of file + [ -f "$agent_file" ] && cat "$agent_file" +fi \ No newline at end of file diff --git a/.scripts/wsl-mount b/.scripts/wsl-mount index 4c2981e..92b54b7 100755 --- a/.scripts/wsl-mount +++ b/.scripts/wsl-mount @@ -1,6 +1,6 @@ #!/bin/sh -"issu" && { +issu && { echo "Do not run this script in sudo mode." exit 1 } diff --git a/fish/post.d/.gitignore b/fish/post.d/.gitignore new file mode 100644 index 0000000..800c948 --- /dev/null +++ b/fish/post.d/.gitignore @@ -0,0 +1,5 @@ +* +!.gitignore +!fetch.fish +!fetch.fish.template +!sshs.fish \ No newline at end of file diff --git a/wlogout/style.css b/wlogout/style.css index e4cd2b6..0e8f9ec 100644 --- a/wlogout/style.css +++ b/wlogout/style.css @@ -30,7 +30,7 @@ button:focus, button:active, button:hover { background-size: 20%; - background-color: alpha(#1e1e2e, 0.6); + background-color: alpha(#1e1e2e, 1); animation: gradient_f 20s ease-in infinite; transition: all 0.3s cubic-bezier(0.55, 0, 0.28, 1.682); } diff --git a/wlogout/style.css.template b/wlogout/style.css.template index d76f474..1784646 100644 --- a/wlogout/style.css.template +++ b/wlogout/style.css.template @@ -30,7 +30,7 @@ button:focus, button:active, button:hover { background-size: 20%; - background-color: alpha(#1e1e2e, 0.6); + background-color: alpha(#1e1e2e, 1); animation: gradient_f 20s ease-in infinite; transition: all 0.3s cubic-bezier(0.55, 0, 0.28, 1.682); }