Skip to content

Commit

Permalink
Add proxy script for system76-scheduler kwin script
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Feb 13, 2023
1 parent 868a019 commit 59a4fd6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions Containerfile-desktop
Original file line number Diff line number Diff line change
@@ -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 && \
Expand Down
11 changes: 11 additions & 0 deletions usr-desktop/bin/system76-scheduler-dbus-proxy.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 59a4fd6

Please sign in to comment.