Skip to content

Instantly share code, notes, and snippets.

@gelbermann
Created January 26, 2023 07:40
Show Gist options
  • Save gelbermann/7c424616b296dfbfebf8f0d7af5a0d2c to your computer and use it in GitHub Desktop.
Save gelbermann/7c424616b296dfbfebf8f0d7af5a0d2c to your computer and use it in GitHub Desktop.
#!/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