From 5bb4bbb0f3c86767c68969bf61881ed89abc3a43 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 1 Dec 2015 18:55:37 +0100 Subject: set visualbell for ircbox termnals 1) let rofi only print the ssh command 2) start urxvt with -vb if rofi's output contains ircbox --- Xresources | 2 +- scripts/ssh_starter.sh | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Xresources b/Xresources index 800c123..57a0222 100644 --- a/Xresources +++ b/Xresources @@ -118,6 +118,6 @@ URxvt.pointerBlank: true !------------------------------------------------------------------------------- ! Ssh command to execute -rofi.ssh-command: {terminal} -e {ssh-client} {host} +rofi.ssh-command: echo {ssh-client} {host} ! Run command to execute that runs in shell rofi.run-shell-command: {terminal} -e {cmd} diff --git a/scripts/ssh_starter.sh b/scripts/ssh_starter.sh index 13c1d26..41fbdc9 100644 --- a/scripts/ssh_starter.sh +++ b/scripts/ssh_starter.sh @@ -2,11 +2,21 @@ if type rofi &>/dev/null then - exec rofi -show ssh + cmd=$(rofi -show ssh) elif type dmenu &>/dev/null then - exec i3-sensible-terminal -e ssh $(grep Host ~/.ssh/config | cut -f2 -d' ' | dmenu) + cmd="ssh $(grep Host ~/.ssh/config | cut -f2 -d' ' | dmenu)" else exec i3-nagbar -m "please install rofi or dmenu to use the ssh starter" &>/dev/null fi + + +if [[ $cmd == *"ircbox"* ]] && [[ $TERMINAL == "urxvt" ]] +then + exec i3-sensible-terminal -vb -e $cmd + +else + exec i3-sensible-terminal -e $cmd +fi + -- cgit v1.2.3