From: paperbenni Date: Sun, 2 Aug 2020 13:44:47 +0000 (+0200) Subject: change xdotool formatting X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=549221b9decef285f01acfac72c4664471eb7d0b;p=instantos%2FinstantOS.git change xdotool formatting --- diff --git a/autostart.sh b/autostart.sh index daf0de5..77d62a5 100755 --- a/autostart.sh +++ b/autostart.sh @@ -191,8 +191,10 @@ if ! islive; then fi if [ -e ~/instantos/monitor.sh ]; then + echo "restoring resolution" bash ~/instantos/monitor.sh & elif [ -e ~/.config/autorandr/instantos/config ]; then + echo "restoring autorandr resolution" autorandr instantos & fi @@ -336,18 +338,16 @@ if ! iconf -i nohelp; then fi fi -if iconf -i highfps; then - xdotool key super+alt+shift+d -fi - -if iconf -i noanimations; then - xdotool key super+alt+shift+s -fi +confkey() { + [ -n "$2" ] || return + iconf -i "$1" || return + xdotool key "$2" +} +confkey highfps "super+alt+shift+d" +confkey noanimations "super+alt+shift+s" # disable wm alttab for graphical alttab -if iconf -i alttab; then - xdotool key super+alt+control+shift+Tab -fi +confkey alttab "super+alt+control+shift+Tab" # desktop icons if iconf -i desktopicons; then