Created
January 28, 2021 15:55
-
-
Save ukn/64c7d98b6c1f1b38a0f7e5f67be4eaed to your computer and use it in GitHub Desktop.
Xfce window scaling toggler
This file contains hidden or 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
#!/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