Skip to content

Instantly share code, notes, and snippets.

@ukn
Created January 28, 2021 15:55
Show Gist options
  • Save ukn/64c7d98b6c1f1b38a0f7e5f67be4eaed to your computer and use it in GitHub Desktop.
Save ukn/64c7d98b6c1f1b38a0f7e5f67be4eaed to your computer and use it in GitHub Desktop.
Xfce window scaling toggler
#!/usr/bin/env bash
currect_factor=`xfconf-query -c xsettings -p /Gdk/WindowScalingFactor`
echo Factor: $currect_factor
if [ "${currect_factor}" -eq "1" ]; then
echo "Change it to 2"
new_factor=2
else
echo "Change it to 1"
fi
xfconf-query -c xsettings -p /Gdk/WindowScalingFactor -s ${new_factor-1} && xfce4-panel -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment