💄 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

@ -12,3 +12,4 @@ starship init fish | source
zoxide 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 # Wallpaper Backend
swww init swww init
$scripts/wallpaper random & "$scripts"/wallpaper random &
# Bar # Bar
waybar & waybar &
@ -53,5 +53,5 @@ aw-watcher-afk &
dex -a -s ~/.config/autostart/ & # Easyeffects, Spotify, Discord and Thunderbird dex -a -s ~/.config/autostart/ & # Easyeffects, Spotify, Discord and Thunderbird
# Screen sharing and portals # Screen sharing and portals
$scripts/launch_portals & "$scripts"/launch_portals &
xwaylandvideobridge & xwaylandvideobridge &

View file

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

View file

@ -2,22 +2,22 @@
mode=$1 mode=$1
if [ -z "$mode" ]; then if [ "$mode" = "" ]; then
echo "Usage: $0 [select|random]" echo "Usage: $0 [select|random]"
exit 1 exit 1
fi fi
if [ "$mode" == "select" ]; then 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 if [ "$IMAGE" = "" ]; then
exit 1 exit 1
fi fi
elif [ "$mode" == "random" ]; then elif [ "$mode" == "random" ]; then
RANDOM_IMAGE=$(fd -e png -e jpg --base-directory "$HOME/.config/hypr/themes/luna/walls/" --type f . | shuf -n 1) 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" IMAGE="$HOME/.config/hypr/themes/luna/walls/$RANDOM_IMAGE"
else else
exit 1 exit 1
fi fi
swww img --transition-type grow --transition-pos top-right --transition-fps 75 --transition-duration 3.8 --transition-step 255 "$IMAGE" swww img --transition-type grow --transition-pos top-right --transition-fps 75 --transition-duration 3.8 --transition-step 255 "$IMAGE"