From a2655a2ef48f8c802cbb539e0c8476fd1269839a Mon Sep 17 00:00:00 2001 From: John Mertz Date: Tue, 27 Jul 2021 01:20:28 -0400 Subject: [PATCH] Correct Fastnet hostname, add VNC shortcut to Mac --- rofi/rofi-ssh-menu.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/rofi/rofi-ssh-menu.sh b/rofi/rofi-ssh-menu.sh index 1e06f14..ad9cdcc 100755 --- a/rofi/rofi-ssh-menu.sh +++ b/rofi/rofi-ssh-menu.sh @@ -1,19 +1,20 @@ #!/bin/bash res=$(echo "john.me.tz|root@john.me.tz|t470s.lan.john.me.tz|shb.ng|\ -kipary.mailcleaner.net|media.lan.john.me.tz|pipcam.lan.john.me.tz|\ -therm.lan.john.me.tz|hud.lan.john.me.tz|vm.lan.john.me.tz" | \ +kipary.fastnet.ch|media.lan.john.me.tz|pipcam0.lan.john.me.tz|\ +therm.lan.john.me.tz|hud.lan.john.me.tz|vm.lan.john.me.tz|mac.lan.john.me.tz" | \ rofi -sep "|" -dmenu -i -p 'P ' "" -columns 1 -rows 1 -width 45 -l 1 -config \ /home/jpm/.config/rofi/config -hide-scrollbar -eh 1 -location 0 -yoffset 0 \ -padding 12 -opacity 100 -auto-select -no-fullscreen) +echo $res > /home/jpm/.last_ssh_shortcut if [ $res = "john.me.tz" ]; then /usr/bin/urxvt -e /bin/bash -c '/home/jpm/scripts/sshs w' elif [ $res = "root@john.me.tz" ]; then /usr/bin/urxvt -e /bin/bash -c '/home/jpm/scripts/sshs r' elif [ $res = "shb.ng" ]; then /usr/bin/urxvt -e /bin/bash -c '/home/jpm/scripts/sshs s' -elif [ $res = "kipary.mailcleaner.net" ]; then +elif [ $res = "kipary.fastnet.ch" ]; then /usr/bin/urxvt -e /bin/bash -c '/home/jpm/scripts/sshs d' elif [ $res = "camera.lan.john.me.tz" ]; then /usr/bin/urxvt -e /bin/bash -c '/home/jpm/scripts/sshs c' @@ -29,5 +30,7 @@ elif [ $res = "therm.lan.john.me.tz" ]; then /usr/bin/urxvt -e /bin/bash -c '/home/jpm/scripts/sshs t' elif [ $res = "vm.lan.john.me.tz" ]; then /usr/bin/urxvt -e /bin/bash -c '/home/jpm/scripts/sshs v' +elif [ $res = "mac.lan.john.me.tz" ]; then + /usr/bin/gvncviewer 192.168.2.10 >> /home/jpm/macos fi exit 0