💄 style(formatting): fixed some files

This commit is contained in:
Sergio Laín 2023-10-13 00:43:15 +02:00
parent b29e059422
commit af92c01cb7
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
4 changed files with 18 additions and 17 deletions

View file

@ -11,4 +11,5 @@ end
starship init fish | source
zoxide init fish | source
alias cd='z' # Couldn't create it as a function because of zoxide init
alias cd='z' # Couldn't create it as a function because of zoxide init

View file

@ -12,7 +12,7 @@ swaync &
# Wallpaper Backend
swww init
$scripts/wallpaper random &
"$scripts"/wallpaper random &
# Bar
waybar &
@ -53,5 +53,5 @@ aw-watcher-afk &
dex -a -s ~/.config/autostart/ & # Easyeffects, Spotify, Discord and Thunderbird
# Screen sharing and portals
$scripts/launch_portals &
"$scripts"/launch_portals &
xwaylandvideobridge &

View file

@ -11,8 +11,8 @@ color=$(wl-paste)
image=/tmp/${color}.png
if [[ "$color" ]]; then
# generate preview
convert -size 48x48 xc:"$color" ${image}
# notify the color
notify-send -u low -i ${image} "$color" "Copied to clipboard."
# generate preview
convert -size 48x48 xc:"$color" "$image"
# notify the color
notify-send -u low -i "$image" "$color" "Copied to clipboard."
fi

View file

@ -2,22 +2,22 @@
mode=$1
if [ -z "$mode" ]; then
echo "Usage: $0 [select|random]"
exit 1
if [ "$mode" = "" ]; then
echo "Usage: $0 [select|random]"
exit 1
fi
if [ "$mode" == "select" ]; then
IMAGE=$(rofi -show file-browser-extended -theme ~/.config/rofi/style.rasi -file-browser-stdout -file-browser-dir $HOME/.config/hypr/themes/luna/walls/)
IMAGE=$(rofi -show file-browser-extended -theme ~/.config/rofi/style.rasi -file-browser-stdout -file-browser-dir "$HOME"/.config/hypr/themes/luna/walls/)
if [ -z "$IMAGE" ]; then
exit 1
fi
if [ "$IMAGE" = "" ]; then
exit 1
fi
elif [ "$mode" == "random" ]; then
RANDOM_IMAGE=$(fd -e png -e jpg --base-directory "$HOME/.config/hypr/themes/luna/walls/" --type f . | shuf -n 1)
IMAGE="$HOME/.config/hypr/themes/luna/walls/$RANDOM_IMAGE"
RANDOM_IMAGE=$(fd -e png -e jpg --base-directory "$HOME/.config/hypr/themes/luna/walls/" --type f . | shuf -n 1)
IMAGE="$HOME/.config/hypr/themes/luna/walls/$RANDOM_IMAGE"
else
exit 1
exit 1
fi
swww img --transition-type grow --transition-pos top-right --transition-fps 75 --transition-duration 3.8 --transition-step 255 "$IMAGE"