-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(just): enable/disable gnome-vrr (#665)
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,6 +129,29 @@ gnome-extensions: | |
gext install [email protected] | ||
gext install [email protected] | ||
|
||
# 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 | ||
|