bazzite/system_files/desktop/usr/bin/system76-scheduler-dbus-proxy
Kyle Gospodnetich e2bb2e3a16 feat: Add Wallpaper Engine and System76-Scheduler to Yafti.
chore: Be explicit about using Chiaki4Deck over Chiaki on bazzite-deck
2023-06-28 11:42:16 -07:00

12 lines
498 B
Bash
Executable File

#!/bin/bash
DBUS_SERVICE="com.system76.Scheduler"
DBUS_PATH="/com/system76/Scheduler"
DBUS_INTERFACE="com.system76.Scheduler"
DBUS_METHOD="SetForegroundProcess"
dbus-monitor "destination=$DBUS_SERVICE,path=$DBUS_PATH,interface=$DBUS_INTERFACE,member=$DBUS_METHOD" |
while true; do
read method call time sender _ dest serial path interface member
read type pid
[ "$member" = "member=$DBUS_METHOD" ] && qdbus --system $DBUS_SERVICE $DBUS_PATH $DBUS_INTERFACE.$DBUS_METHOD $pid
done