Created
January 26, 2023 07:40
-
-
Save gelbermann/7c424616b296dfbfebf8f0d7af5a0d2c to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
class=org.gnome.desktop.interface | |
name=text-scaling-factor | |
gs_status=$(gsettings get "$class" "$name") | |
if [[ $gs_status = 1.0 ]]; then | |
echo "scaling up" | |
new_gs_status=1.25 | |
else | |
echo "scaling down" | |
new_gs_status=1.0 | |
fi | |
echo "changing $name to $new_gs_status" | |
gsettings set $class $name $new_gs_status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment