From 1135a62b01a115daa72c271d5ea4719d23ef0d83 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Tue, 20 Sep 2016 17:30:29 +0200 Subject: [PATCH] changed wappslocal added wappsmenu --- .i3/config | 7 +++++-- .i3/gcmenu.sh | 28 ---------------------------- .i3/wappslocalmenu.sh | 13 +++++++++++++ .i3/wappsmenu.sh | 9 +++++++++ 4 files changed, 27 insertions(+), 30 deletions(-) delete mode 100755 .i3/gcmenu.sh create mode 100755 .i3/wappslocalmenu.sh create mode 100755 .i3/wappsmenu.sh diff --git a/.i3/config b/.i3/config index fc7272e..79d5f78 100644 --- a/.i3/config +++ b/.i3/config @@ -119,8 +119,11 @@ exec --no-startup-id i3-msg 'workspace $tag4; exec urxvtc -e screen -rd weechat; #zmenu bindsym $mod+Shift+q exec ~/.i3/zmenu.sh -#gcmenu -bindsym $mod+Shift+s exec ~/.i3/gcmenu.sh +#wappslocalmenu +bindsym $mod+Control+Left exec ~/.i3/wappslocalmenu.sh + +#wappslocalmenu +bindsym $mod+Control+Right exec ~/.i3/wappsmenu.sh #screenbug bindsym $mod+Control+x exec ~/screenbug.sh diff --git a/.i3/gcmenu.sh b/.i3/gcmenu.sh deleted file mode 100755 index fa903fa..0000000 --- a/.i3/gcmenu.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -action=$(echo -e "ompd\nsoundcloud\ngmaps\nnetflix\ntransmission" | dmenu -fn 'hack-10' -h 20 -nb '#202020' -nf '#FFFFFF' -sf '#dc322f' -sb '#202020' -p "wapps >" -w 190 -o 0.9 -y 21 -l 5) - -if [[ "$action" == "ompd" ]] -then - /usr/bin/google-chrome-stable --app="http://127.0.0.1/ompd" -fi - -if [[ "$action" == "soundcloud" ]] -then - /usr/bin/google-chrome-stable --app="https://soundcloud.com/stream" -fi - -if [[ "$action" == "gmaps" ]] -then - /usr/bin/google-chrome-stable --app="http://www.googlemaps.com" -fi - -if [[ "$action" == "netflix" ]] -then - /usr/bin/google-chrome-stable --app="https://www.netflix.com" -fi - -if [[ "$action" == "transmission" ]] -then - /usr/bin/google-chrome-stable --app="http://localhost:9091/transmission/web/" -fi - diff --git a/.i3/wappslocalmenu.sh b/.i3/wappslocalmenu.sh new file mode 100755 index 0000000..fd6293d --- /dev/null +++ b/.i3/wappslocalmenu.sh @@ -0,0 +1,13 @@ +#!/bin/bash +action=$(echo -e "ompd\nsoundcloud\ngmaps\nnetflix\ntransmission" | dmenu -fn 'hack-10' -h 20 -nb '#202020' -nf '#FFFFFF' -sf '#dc322f' -sb '#202020' -p "wapps >" -w 190 -o 0.9 -y 21 -l 2) + +if [[ "$action" == "ompd" ]] +then + /usr/bin/google-chrome-stable --app="http://127.0.0.1/ompd" +fi + +if [[ "$action" == "transmission" ]] +then + /usr/bin/google-chrome-stable --app="http://localhost:9091/transmission/web/" +fi + diff --git a/.i3/wappsmenu.sh b/.i3/wappsmenu.sh new file mode 100755 index 0000000..7009e72 --- /dev/null +++ b/.i3/wappsmenu.sh @@ -0,0 +1,9 @@ +#!/bin/bash +urll=$(echo -e | dmenu -fn 'hack-10' -h 20 -nb '#202020' -nf '#FFFFFF' -sf '#dc322f' -sb '#202020' -p "gsearch >" -w 500 -o 0.9 -y 21 -q) + +lucky(){ url=$(echo "http://www.google.com/search?hl=en&q=$@&btnI=I%27m+Feeling+Lucky&aq=f&oq=" | sed 's/ /+/g'); google-chrome-stable --app=$url; }; + +if [[ $urll != "" ]] +then + lucky $urll +fi