X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=desktop-20-autostart.sh;h=b7938cb9719cf11e9935b517c7d3a98c520ba0ac;hb=refs%2Fheads%2Fmaster;hp=ff8e654f4f7a29467c64ee167a15218392923f5d;hpb=12cab163424e3a7b0815646d1d4407f9b5839bcb;p=distro-setup diff --git a/desktop-20-autostart.sh b/desktop-20-autostart.sh index ff8e654..b7938cb 100755 --- a/desktop-20-autostart.sh +++ b/desktop-20-autostart.sh @@ -1,5 +1,12 @@ #!/bin/bash -# Copyright (C) 2016 Ian Kelling +# I, Ian Kelling, follow the GNU license recommendations at +# https://www.gnu.org/licenses/license-recommendations.en.html. They +# recommend that small programs, < 300 lines, be licensed under the +# Apache License 2.0. This file contains or is part of one or more small +# programs. If a small program grows beyond 300 lines, I plan to switch +# its license to GPL. + +# Copyright 2024 Ian Kelling # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,15 +20,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -date "+%A, %B %d, %r, %S seconds" > /tmp/desktop-20-autostart-log - -# first 2 alternatives showed under ubuntu 14.04, second 2 under arch at 11/2015 -if [[ $1 ]]; then - right_monitor_rotation=left -else - right_monitor_rotation=normal -fi +date "+%A, %B %d, %r, %S seconds" > /tmp/desktop-20-autostart-log if ! xout="$(xrandr)"; then @@ -33,7 +33,7 @@ if echo "$xout" | grep "^HDMI-1 connected" &>/dev/null; then xrandr --output VGA-1 --off --output HDMI-1 --mode 3840x2160 --pos 0x0 --rotate normal --output eDP-1 --off fi case $HOSTNAME in - sy) /a/bin/distro-setup/input-setup l ;; + sy|bo) /a/bin/distro-setup/input-setup l ;; *) /a/bin/distro-setup/input-setup m ;; esac