From 1e0a42d6a7f3ba0c15dac7b6fb99db5c566ff3ec Mon Sep 17 00:00:00 2001 From: bobslept <38557801+bobslept@users.noreply.github.com> Date: Fri, 17 Nov 2023 17:24:01 +0100 Subject: [PATCH] feat(just): enable/disable gnome-vrr (#665) --- just/custom.just | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/just/custom.just b/just/custom.just index c4a34318c9d..0e67d7ad0a1 100644 --- a/just/custom.just +++ b/just/custom.just @@ -129,6 +129,29 @@ gnome-extensions: gext install pano@elhan.io gext install weatheroclock@CleoMenezesJr.github.io +# Enable or Disable Gnome-VRR +gnome-vrr: + #!/usr/bin/env bash + if gsettings get org.gnome.mutter experimental-features | grep -q "variable-refresh-rate" + then + CURRENT_STATE="Enabled" + else + CURRENT_STATE="Disabled" + fi + echo "Gnome-VRR is currently ${CURRENT_STATE}" + echo "Enable or Disable Gnome-VRR" + OPTION=$(gum choose Enable Disable) + if [ "$OPTION" = "Enable" ] + then + echo "Enabling Gnome-VRR" + gsettings set org.gnome.mutter experimental-features "['variable-refresh-rate','scale-monitor-framebuffer']" + elif [ "$OPTION" = "Disable" ] + then + echo "Disabling Gnome-VRR" + gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']" + fi + echo "To apply the changes make sure you logout and restart your session" + # Install JetBrains Toolbox | https://www.jetbrains.com/toolbox-app/ jetbrains-toolbox: #!/usr/bin/env bash