Skip to content

Commit

Permalink
Fix example dbus script after TYPE_ENUM change
Browse files Browse the repository at this point in the history
Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Aug 9, 2019
1 parent 1778579 commit 1081078
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dbus-examples/cdbus-driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ service="com.github.chjj.compton.${dpy}"
interface='com.github.chjj.compton'
object='/com/github/chjj/compton'
type_win='uint32'
type_enum='uint16'
type_enum='uint32'

# === DBus methods ===

Expand All @@ -44,11 +44,11 @@ dbus-send --print-reply --dest="$service" "$object" "${interface}.reset"

# Undirect window
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
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
dbus-send --print-reply --dest="$service" "$object" "${interface}.repaint"
2 changes: 1 addition & 1 deletion dbus-examples/inverter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ service="com.github.chjj.compton.${dpy}"
interface="com.github.chjj.compton"
compton_dbus="dbus-send --print-reply --dest="${service}" / "${interface}"."
type_win='uint32'
type_enum='uint16'
type_enum='uint32'

# === Color Inversion ===

Expand Down

0 comments on commit 1081078

Please sign in to comment.