Swayscript : Vrr also toggles refresh rates.
This commit is contained in:
parent
3f79c50d24
commit
656b170f28
|
@ -1,3 +1,4 @@
|
||||||
|
# TODO: Add different modes for different screens.
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
text = ''
|
text = ''
|
||||||
export _swayvrrlist=(
|
export _swayvrrlist=(
|
||||||
|
@ -9,6 +10,7 @@
|
||||||
on() {
|
on() {
|
||||||
for vrr in ''${_swayvrrlist[@]}; do
|
for vrr in ''${_swayvrrlist[@]}; do
|
||||||
swaymsg "output \"''${vrr}\" adaptive_sync on"
|
swaymsg "output \"''${vrr}\" adaptive_sync on"
|
||||||
|
swaymsg "output \"''${vrr}\" mode 3440x1440@164.999Hz"
|
||||||
done
|
done
|
||||||
_vrrstate on
|
_vrrstate on
|
||||||
}
|
}
|
||||||
|
@ -20,6 +22,7 @@
|
||||||
off() {
|
off() {
|
||||||
for vrr in ''${_swayvrrlist[@]}; do
|
for vrr in ''${_swayvrrlist[@]}; do
|
||||||
swaymsg "output \"''${vrr}\" adaptive_sync off"
|
swaymsg "output \"''${vrr}\" adaptive_sync off"
|
||||||
|
swaymsg "output \"''${vrr}\" mode 3440x1440@59.973Hz"
|
||||||
done
|
done
|
||||||
_vrrstate off
|
_vrrstate off
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue