diff options
| author | Robert Günzler <r@gnzler.io> | 2020-05-25 17:41:08 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2020-05-25 17:41:08 +0200 |
| commit | 0531bc802ae436d75c73ff2d1171235b69d59f0e (patch) | |
| tree | 7d80b09a7348085c74db6100121b87fe88a7cee1 /bin/hibiki | |
| parent | 6a030ed9fff90c662ed850208a2a124d533b3a76 (diff) | |
Add osu-mode script to lock pointer to screen
Diffstat (limited to 'bin/hibiki')
| -rwxr-xr-x | bin/hibiki/osu-mode | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/hibiki/osu-mode b/bin/hibiki/osu-mode new file mode 100755 index 0000000..92d6214 --- /dev/null +++ b/bin/hibiki/osu-mode @@ -0,0 +1,13 @@ +#!/bin/sh +set -ex + +case "$1" in + off) + swaymsg input \$pen map_to_output \* + ;; + on|*) + out="$(swq current output)" + swaymsg input \$pen map_to_output "$out" + swaymsg input \$pen map_from_region 0.0x0.0 0.5x0.5 + ;; +esac |