2024-02-08 02:42:01 +01:00
|
|
|
#!/usr/bin/bash
|
2024-02-08 00:48:03 +01:00
|
|
|
|
2024-02-08 02:42:01 +01:00
|
|
|
transform_value=$(hyprctl getoption device:wacom-hid-526b-finger:transform | sed '2!d' | cut -d ":" -f 2)
|
|
|
|
|
|
|
|
|
|
|
|
if [ "${transform_value}" == " 0" ]
|
|
|
|
then
|
|
|
|
echo ${transform_value}
|
|
|
|
hyprctl keyword monitor eDP-1,preferred,auto,1.2,transform,1
|
|
|
|
hyprctl keyword device:wacom-hid-526b-pen:transform 1
|
|
|
|
hyprctl keyword device:wacom-hid-526b-finger:transform 1
|
|
|
|
hyprctl keyword device:wacom-hid-526b-finger-1:transform 1
|
2024-02-08 02:58:09 +01:00
|
|
|
|
2024-02-08 02:59:17 +01:00
|
|
|
sleep 0.5
|
2024-02-08 02:58:09 +01:00
|
|
|
eww open keyb
|
2024-02-08 02:42:01 +01:00
|
|
|
else
|
|
|
|
echo ${transform_value}
|
|
|
|
hyprctl keyword device:wacom-hid-526b-pen:transform 0
|
|
|
|
hyprctl keyword device:wacom-hid-526b-finger:transform 0
|
|
|
|
hyprctl keyword device:wacom-hid-526b-finger-1:transform 0
|
|
|
|
hyprctl keyword monitor eDP-1,preferred,auto,1.2,transform,0
|
|
|
|
|
|
|
|
fi
|
2024-02-08 00:48:03 +01:00
|
|
|
|