sxmo_rotate: don't restart lisgd on sway

AFAICT we restart lisgd because it learns the orientation via its
`-o <orientation>` CLI argument. but we only pass that flag on dwm/x11,
not sway. restarting it on sway is wasteful, and potentially racy (i'm
able to get multiple lisgd's running just by enabling autorotate and
flipping the phone rapidly), so don't do that.
This commit is contained in:
Colin 2023-07-16 12:45:49 +00:00
parent bf00570117
commit 0b3ce90e74
1 changed files with 0 additions and 4 deletions

View File

@ -52,7 +52,6 @@ xorgrotinvert() {
swayrotinvert() {
swaymsg -- output "-" transform 180
superctl restart sxmo_hook_lisgd
sxmo_hook_rotate.sh invert
exit 0
}
@ -68,7 +67,6 @@ xorgrotnormal() {
swayrotnormal() {
swaymsg -- output "-" transform 0
superctl restart sxmo_hook_lisgd
sxmo_hook_rotate.sh normal
exit 0
}
@ -84,7 +82,6 @@ xorgrotright() {
swayrotright() {
swaymsg -- output "-" transform 90
superctl restart sxmo_hook_lisgd
sxmo_hook_rotate.sh right
exit 0
}
@ -100,7 +97,6 @@ xorgrotleft() {
swayrotleft() {
swaymsg -- output "-" transform 270
superctl restart sxmo_hook_lisgd
sxmo_hook_rotate.sh left
exit 0
}