From c5d8ade430f202fbe07a6f6e7169b0856aeb7e87 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Fri, 30 Jul 2021 21:30:28 -0400 Subject: [PATCH] Added AndroidUSB mirroring option --- rofi/rofi-ssh-menu.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rofi/rofi-ssh-menu.sh b/rofi/rofi-ssh-menu.sh index ad9cdcc..fad9032 100755 --- a/rofi/rofi-ssh-menu.sh +++ b/rofi/rofi-ssh-menu.sh @@ -2,7 +2,7 @@ res=$(echo "john.me.tz|root@john.me.tz|t470s.lan.john.me.tz|shb.ng|\ 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" | \ +therm.lan.john.me.tz|hud.lan.john.me.tz|vm.lan.john.me.tz|mac.lan.john.me.tz|AndroidUSB" | \ 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) @@ -32,5 +32,7 @@ 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 +elif [ $res = "AndroidUSB" ]; then + /usr/bin/scrcpy fi exit 0