💄 style(formatting): fixed some files
This commit is contained in:
parent
b29e059422
commit
af92c01cb7
4 changed files with 18 additions and 17 deletions
|
@ -11,4 +11,5 @@ end
|
||||||
starship init fish | source
|
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
|
||||||
|
|
||||||
|
|
|
@ -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 &
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue