forked from Shinonome/dots-hyprland
Switch to AGS v1.9.0 (#1092)
and switch bin name for [preparing migrating to agsv2](https://github.com/Aylur/ags/issues/618#issuecomment-2476866842)
This commit is contained in:
@@ -164,8 +164,8 @@ apply_gtk() { # Using gradience-cli
|
||||
}
|
||||
|
||||
apply_ags() {
|
||||
ags run-js "handleStyles(false);"
|
||||
ags run-js 'openColorScheme.value = true; Utils.timeout(2000, () => openColorScheme.value = false);'
|
||||
agsv1 run-js "handleStyles(false);"
|
||||
agsv1 run-js 'openColorScheme.value = true; Utils.timeout(2000, () => openColorScheme.value = false);'
|
||||
}
|
||||
|
||||
apply_qt() {
|
||||
|
||||
@@ -17,8 +17,8 @@ switch() {
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# ags run-js "wallpaper.set('')"
|
||||
# sleep 0.1 && ags run-js "wallpaper.set('${imgpath}')" &
|
||||
# agsv1 run-js "wallpaper.set('')"
|
||||
# sleep 0.1 && agsv1 run-js "wallpaper.set('${imgpath}')" &
|
||||
swww img "$imgpath" --transition-step 100 --transition-fps 120 \
|
||||
--transition-type grow --transition-angle 30 --transition-duration 1 \
|
||||
--transition-pos "$cursorposx, $cursorposy_inverted"
|
||||
@@ -26,7 +26,7 @@ switch() {
|
||||
|
||||
if [ "$1" == "--noswitch" ]; then
|
||||
imgpath=$(swww query | awk -F 'image: ' '{print $2}')
|
||||
# imgpath=$(ags run-js 'wallpaper.get(0)')
|
||||
# imgpath=$(agsv1 run-js 'wallpaper.get(0)')
|
||||
elif [[ "$1" ]]; then
|
||||
switch "$1"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user