Fix example dbus script after TYPE_ENUM change

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-08-09 23:40:20 +01:00
parent fae30d46e7
commit bc60e06e23
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
2 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ service="com.github.chjj.compton.${dpy}"
interface='com.github.chjj.compton' interface='com.github.chjj.compton'
object='/com/github/chjj/compton' object='/com/github/chjj/compton'
type_win='uint32' type_win='uint32'
type_enum='uint16' type_enum='uint32'
# === DBus methods === # === DBus methods ===
@ -44,11 +44,11 @@ dbus-send --print-reply --dest="$service" "$object" "${interface}.reset"
# Undirect window # Undirect window
sleep 3 sleep 3
dbus-send --print-reply --dest="$service" "$object" "${interface}.opts_set" string:redirected_force uint16:0 dbus-send --print-reply --dest="$service" "$object" "${interface}.opts_set" string:redirected_force "${type_enum}:0"
# Revert back to auto # Revert back to auto
sleep 3 sleep 3
dbus-send --print-reply --dest="$service" "$object" "${interface}.opts_set" string:redirected_force uint16:2 dbus-send --print-reply --dest="$service" "$object" "${interface}.opts_set" string:redirected_force "${type_enum}:2"
# Force repaint # Force repaint
dbus-send --print-reply --dest="$service" "$object" "${interface}.repaint" dbus-send --print-reply --dest="$service" "$object" "${interface}.repaint"

View File

@ -34,7 +34,7 @@ service="com.github.chjj.compton.${dpy}"
interface="com.github.chjj.compton" interface="com.github.chjj.compton"
compton_dbus="dbus-send --print-reply --dest="${service}" / "${interface}"." compton_dbus="dbus-send --print-reply --dest="${service}" / "${interface}"."
type_win='uint32' type_win='uint32'
type_enum='uint16' type_enum='uint32'
# === Color Inversion === # === Color Inversion ===