Add proxy script for system76-scheduler kwin script

This commit is contained in:
Kyle Gospodnetich 2023-02-13 00:34:55 -08:00
parent 868a019ca1
commit 59a4fd65a3
2 changed files with 12 additions and 0 deletions

View File

@ -1,6 +1,7 @@
FROM ghcr.io/ublue-os/kinoite-nvidia:latest
COPY etc-desktop /etc
COPY usr-desktop /usr
# Re-enable RPMFusion repos & add Copr repos
RUN sed -i 's@enabled=0@enabled=1@g' /etc/yum.repos.d/rpmfusion-nonfree{,-updates}.repo && \

View File

@ -0,0 +1,11 @@
#!/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