add system76-scheduler
This commit is contained in:
parent
a102c20613
commit
0c3a0f6f20
2 changed files with 15 additions and 0 deletions
|
|
@ -54,6 +54,10 @@ RUN rpm-ostree install gwenview
|
|||
# Install ananicy-cpp
|
||||
RUN rpm-ostree install ananicy-cpp ananicy-cpp-rules
|
||||
|
||||
# Install system76-scheduler
|
||||
RUN wget https://copr.fedorainfracloud.org/coprs/kylegospo/system76-scheduler/repo/fedora-$(rpm -E %fedora)/kylegospo-system76-scheduler-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_kylegospo-system76-scheduler.repo && \
|
||||
rpm-ostree install system76-scheduler
|
||||
|
||||
# Copy config files
|
||||
COPY etc /etc
|
||||
# Copy /usr
|
||||
|
|
|
|||
11
usr/local/bin/system76-scheduler-dbus-proxy.sh
Executable file
11
usr/local/bin/system76-scheduler-dbus-proxy.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue