remove run.sh

This commit is contained in:
Peter Fajdiga
2023-05-12 11:42:53 +02:00
parent 4cea8a909a
commit fff2c828f2
2 changed files with 0 additions and 28 deletions

View File

@@ -14,8 +14,5 @@ install: build config
rm -r ${INSTALL_DIR}/*
cp -r ./package/* ${INSTALL_DIR}
run: build
./run.sh
logs:
journalctl -t kwin_x11 -g '^qml:|^file://.*karousel' -f

25
run.sh
View File

@@ -1,25 +0,0 @@
#!/bin/bash
# source: https://unix.stackexchange.com/a/517690
set -e
bash_source_absolute="$(pwd)/${BASH_SOURCE[0]}"
karousel_dir="$(dirname "$bash_source_absolute")"
kwin_script_path="$karousel_dir/package/contents/code/main.qml"
num=$(dbus-send --print-reply --dest=org.kde.KWin \
/Scripting org.kde.kwin.Scripting.loadDeclarativeScript \
string:"$kwin_script_path" | awk 'END {print $2}' )
dbus-send --print-reply --dest=org.kde.KWin /$num \
org.kde.kwin.Script.run
echo 'Press enter to stop the script'
read
dbus-send --print-reply --dest=org.kde.KWin /$num \
org.kde.kwin.Script.stop
echo 'Press enter to kill KWin'
read
killall kwin_x11