From 01fe13624d6a8bb7a7886ac6131edc1dd854b34d Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 14 Oct 2010 19:39:24 +0200 Subject: add wscan function for parsing iw output --- .config/bash/functions.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/bash/functions.sh b/.config/bash/functions.sh index ae7329b..c644247 100644 --- a/.config/bash/functions.sh +++ b/.config/bash/functions.sh @@ -232,3 +232,10 @@ die() { echo " * ${*:-(no error message)}" } +wscan() { + local dev=$1 + local pattern=$2 + + iw $dev scan | \ + sed -e '/^[^\t]/{x;p;x;}' | sed -e '/./{H;$!d;}' -e "x;/$pattern/!d;" | sed "/^$/d" +} -- cgit From 08f96b3b87ea48e6c26c1be6fc4008b08d40b710 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 14 Oct 2010 19:45:10 +0200 Subject: add alias to start synergy client tunnel --- .config/bash/alias.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/bash/alias.sh b/.config/bash/alias.sh index d5a6c71..18f8cb7 100644 --- a/.config/bash/alias.sh +++ b/.config/bash/alias.sh @@ -26,3 +26,6 @@ alias tv="~/.scripts/tv.sh" # typos alias sl=ls +# connect to +alias syn_c="ssh -f -N -R 24801:127.0.0.1:24800" + -- cgit From 3c2f5ae4eba59d8658c5550ff47a89336569640f Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 14 Oct 2010 20:22:34 +0200 Subject: awesome: start synergyc default (ssh tunneled) --- .config/awesome/awesome.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/awesome/awesome.lua b/.config/awesome/awesome.lua index 7da4566..abe45fe 100644 --- a/.config/awesome/awesome.lua +++ b/.config/awesome/awesome.lua @@ -18,6 +18,7 @@ local runonce = require("runonce") runonce.run("urxvtd -q -o -f") runonce.run("start-pulseaudio-x11") runonce.run("synergys") +runonce.run("synergyc 127.0.0.1:24801") runonce.run("pidgin") runonce.run(os.getenv("HOME") .. "/.local/bin/swIcon.py") -- cgit