diff --git a/.config/ags/scripts/color_generation/switchwall.sh b/.config/ags/scripts/color_generation/switchwall.sh index 30cf01ba..254ddce8 100755 --- a/.config/ags/scripts/color_generation/switchwall.sh +++ b/.config/ags/scripts/color_generation/switchwall.sh @@ -7,14 +7,22 @@ else # Select and set image (hyprland) cd "$HOME/Pictures" imgpath=$(yad --width 1200 --height 800 --file --title='Choose wallpaper') + screensizey=$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f2 | head -1) + cursorposx=$(hyprctl cursorpos -j | gojq '.x') + cursorposy=$(hyprctl cursorpos -j | gojq '.y') + cursorposy_inverted=$(( screensizey - cursorposy )) if [ "$imgpath" == '' ]; then echo 'Aborted' exit 0 fi - ags run-js "wallpaper.set('')" - sleep 0.1 && ags run-js "wallpaper.set('${imgpath}')" & + + # ags run-js "wallpaper.set('')" + # sleep 0.1 && ags run-js "wallpaper.set('${imgpath}')" & + swww img "$imgpath" --transition-step 100 --transition-fps 60 \ + --transition-type grow --transition-angle 30 --transition-duration 1 \ + --transition-pos "$cursorposx, $cursorposy_inverted" fi # Generate colors for ags n stuff diff --git a/.config/hypr/colors_default.conf b/.config/hypr/colors_default.conf deleted file mode 100644 index 09e7115b..00000000 --- a/.config/hypr/colors_default.conf +++ /dev/null @@ -1,4 +0,0 @@ -general { - col.active_border = rgba(0DB7D4FF) rgba(7AA2F7FF) rgba(9778D0FF) 45deg - col.inactive_border = rgba(04404aaa) -} diff --git a/.config/hypr/execs.conf b/.config/hypr/execs.conf index 14a36eea..cf9a239c 100644 --- a/.config/hypr/execs.conf +++ b/.config/hypr/execs.conf @@ -1,7 +1,6 @@ -# Status bar -#exec-once = eww daemon && eww open bar && eww open bgdecor +# Bar, wallpaper +exec-once = swww init exec-once = ags & -#exec-once = waybar # Input method exec-once = fcitx5 @@ -15,8 +14,10 @@ exec-once = swayidle -w timeout 450 'pidof java || systemctl suspend' & exec-once = sleep 1 && dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # Some fix idk # Clipboard: history +# exec-once = wl-paste --watch cliphist store & exec-once = wl-paste --type text --watch cliphist store exec-once = wl-paste --type image --watch cliphist store + # Clipboard: disable middle-click paste exec-once = wl-paste -p --watch wl-copy -p ""