1
0
Fork 0
mirror of https://github.com/eoli3n/dotfiles synced 2024-06-03 05:16:10 +02:00

added gcmenu

This commit is contained in:
eoli3n 2016-09-20 01:07:09 +02:00
parent f08eb7e063
commit 512cd94460
2 changed files with 31 additions and 0 deletions

View File

@ -119,6 +119,9 @@ 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
#screenbug
bindsym $mod+Control+x exec ~/screenbug.sh

28
.i3/gcmenu.sh Executable file
View File

@ -0,0 +1,28 @@
#!/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