diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-08-23 15:44:34 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-08-23 15:44:34 +0300 |
commit | b94839324996ab3c9b0249eadc3930e54ffd1a86 (patch) | |
tree | fdd075a056165b29c0899896c4e4468db683a932 /dotfiles/.local/bin/exremote | |
parent | b3318da576333bd5caf32506b6706638e40ca458 (diff) | |
download | swayrice-b94839324996ab3c9b0249eadc3930e54ffd1a86.tar.gz swayrice-b94839324996ab3c9b0249eadc3930e54ffd1a86.zip |
Shortcuts to control my other computer through ssh
* Scripts to simplify executing of commands through ssh, and to send
current computer's clipboard to the other one and viceversa.
* sway shortcuts to control mpd, audio volume and clipboard data.
Diffstat (limited to 'dotfiles/.local/bin/exremote')
-rwxr-xr-x | dotfiles/.local/bin/exremote | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dotfiles/.local/bin/exremote b/dotfiles/.local/bin/exremote new file mode 100755 index 0000000..a6bbbbb --- /dev/null +++ b/dotfiles/.local/bin/exremote @@ -0,0 +1,9 @@ +#!/bin/sh + +# Helper script to execute commands on remote host + +[ -n "$1" ] || (echo "Specify command to run" && exit 0) + +host=$(cat $HOME/.config/exremote/host) + +ssh "$host" "source /home/$(whoami)/.profile 2> /dev/null && $1" |