remove run.sh
This commit is contained in:
3
Makefile
3
Makefile
@@ -14,8 +14,5 @@ install: build config
|
|||||||
rm -r ${INSTALL_DIR}/*
|
rm -r ${INSTALL_DIR}/*
|
||||||
cp -r ./package/* ${INSTALL_DIR}
|
cp -r ./package/* ${INSTALL_DIR}
|
||||||
|
|
||||||
run: build
|
|
||||||
./run.sh
|
|
||||||
|
|
||||||
logs:
|
logs:
|
||||||
journalctl -t kwin_x11 -g '^qml:|^file://.*karousel' -f
|
journalctl -t kwin_x11 -g '^qml:|^file://.*karousel' -f
|
||||||
|
|||||||
25
run.sh
25
run.sh
@@ -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
|
|
||||||
Reference in New Issue
Block a user