Skip to content

Commit

Permalink
add "duo toggle-bottom-touch"
Browse files Browse the repository at this point in the history
  • Loading branch information
alesya-h committed Oct 21, 2024
1 parent f4babe6 commit 7d9d719
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ You also want to add `duo set-displays` to your startup so it'll set your laptop

For manual screen management there are `duo top`, `duo bottom`, `duo both` and `duo toggle` (toggles between top and both) commands.

In addition there's also `duo toggle-bottom-touch` to toggle touch for the bottom screen, so you can draw with a pen while resting your hand on the screen.

## automatic rotation

Expand Down
8 changes: 8 additions & 0 deletions duo
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ case "$1" in
"['SDC', '0x419d', '0x00000000', 'eDP-2']"
done
;;
toggle-bottom-touch)
path="/org/gnome/desktop/peripherals/touchscreens/04f3:425a/output"
if [ -z "$(dconf read "$path")" ]; then
dconf write "$path" "['SDC', '0x419d', '0x00000000', 'eDP-2']"
else
dconf reset "$path"
fi
;;
bat-limit)
echo "${2:-80}" | suenv tee /sys/class/power_supply/BAT0/charge_control_end_threshold
;;
Expand Down

0 comments on commit 7d9d719

Please sign in to comment.