From 6f897c46303387849c574163d4fcd6ef41715e9b Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Fri, 4 May 2018 11:03:50 +0100 Subject: [PATCH 1/3] Add wan ip to secondary monitor status bar --- i3/i3blocks-secondary.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/i3/i3blocks-secondary.conf b/i3/i3blocks-secondary.conf index ad26bdac..c0992c89 100644 --- a/i3/i3blocks-secondary.conf +++ b/i3/i3blocks-secondary.conf @@ -40,6 +40,11 @@ interval=once signal=11 +[wanip] +command=curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//' +interval=10 +color=#00FF00 + # Generic media player support # # This displays "ARTIST - SONG" if a music is playing. From 884757611671eea4ab7181593a5c72c7811926cd Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Fri, 4 May 2018 11:04:11 +0100 Subject: [PATCH 2/3] Add manpage lookup rofi script --- i3/configWork | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i3/configWork b/i3/configWork index 0ad7e88a..7a29ed26 100644 --- a/i3/configWork +++ b/i3/configWork @@ -69,6 +69,9 @@ bindsym $mod+u exec ~/.dotfiles/rofi/scripts/rofi-emoji #kill i3 bindsym $mod+Shift+x exec killall i3 +# Rename Current Workspace +bindsym $mod+m exec man -k . | awk '{ print $1 " " $2 }' | rofi -dmenu -p man: | awk '{ print $2 " " $1 }' | tr -d '()' | xargs st -e man + # Send signals to i3 blocks and zsh to tell them that capslock has been pushed # The message to zsh is technically a "window change" which causes zsh to re-draw the prompt From bb1c4a14a6da93698bbe7aaf41a669f1e5894f42 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Fri, 4 May 2018 11:10:11 +0100 Subject: [PATCH 3/3] Make media block hide if spotidy not open --- i3/blocks/mediaplayer | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/i3/blocks/mediaplayer b/i3/blocks/mediaplayer index 1165ef6f..f8136ad5 100755 --- a/i3/blocks/mediaplayer +++ b/i3/blocks/mediaplayer @@ -18,10 +18,12 @@ fi title=$($COMMAND metadata title | sed "s/\&/\&/g") artist=$($COMMAND metadata artist | sed "s/\&/\&/g") +if [ "$title" != "(null)" ]; then + ret="$title" + ret="$ret - $artist" -ret="$title" -ret="$ret - $artist" + echo "$ret"; +fi -echo "$ret";