Compare commits
5 Commits
a122793705
...
d0c53586ca
| Author | SHA1 | Date |
|---|---|---|
|
|
d0c53586ca | 1 week ago |
|
|
cc76c28253 | 1 week ago |
|
|
f7d45b034b | 1 week ago |
|
|
852e1a0b89 | 1 week ago |
|
|
1012e87fd5 | 1 week ago |
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
while sleep 1; do
|
||||||
|
if [ "$(swaymsg -t get_workspaces | jq '.[] | select(.focused == true) | .num')" = '10' ] && ! (ps aux | grep -q [b]eyondallreason.real); then
|
||||||
|
if [ "$l" != 'on' ]; then
|
||||||
|
echo on
|
||||||
|
swaymsg 'output * adaptive_sync on'
|
||||||
|
l='on'
|
||||||
|
fi
|
||||||
|
else if [ "$l" != 'off' ]
|
||||||
|
then echo off
|
||||||
|
swaymsg 'output * adaptive_sync off'
|
||||||
|
l='off'
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
Loading…
Reference in New Issue