blob: 92d62143d313c07a473d027218b7a64eca39b874 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
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
|