diff --git a/.config/fish/config.fish b/.config/fish/config.fish index d3160dcd..fe6c0da0 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -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 \ No newline at end of file +alias cd='z' # Couldn't create it as a function because of zoxide init + diff --git a/.config/hypr/scripts/autostart b/.config/hypr/scripts/autostart index b60a5f4c..aadc44b4 100755 --- a/.config/hypr/scripts/autostart +++ b/.config/hypr/scripts/autostart @@ -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 & diff --git a/.config/hypr/scripts/color_picker b/.config/hypr/scripts/color_picker index 73eeb45a..1c9ef4fe 100755 --- a/.config/hypr/scripts/color_picker +++ b/.config/hypr/scripts/color_picker @@ -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 diff --git a/.config/hypr/scripts/wallpaper b/.config/hypr/scripts/wallpaper index c3c1d89b..7f900f30 100755 --- a/.config/hypr/scripts/wallpaper +++ b/.config/hypr/scripts/wallpaper @@ -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"