1
0
Fork 0
mirror of https://github.com/eoli3n/dotfiles synced 2024-05-27 09:56:07 +02:00
eoli3n-dotfiles/.i3/rofi_custom.sh
2017-01-15 12:55:50 +01:00

43 lines
828 B
Bash
Executable File

#!/bin/bash
action=$(echo -e "ompd\nompd-git\nspotify\ntransmission\nnicotine\nstreamstudio\nnetflix\nmps-youtube" | rofi -dmenu -p "custom:")
if [[ "$action" == "ompd" ]]
then
/usr/bin/google-chrome-stable --app="http://127.0.0.1/OMPD"
fi
if [[ "$action" == "ompd-git" ]]
then
/usr/bin/google-chrome-stable --app="http://127.0.0.1/ompd_test"
fi
if [[ "$action" == "transmission" ]]
then
/usr/bin/google-chrome-stable --app="http://localhost:9091/transmission/web/"
fi
if [[ "$action" == "streamstudio" ]]
then
streamstudio
fi
if [[ "$action" == "netflix" ]]
then
/usr/bin/google-chrome-stable --app="https://www.netflix.com"
fi
if [[ "$action" == "mps-youtube" ]]
then
urxvtc -e mpsyt
fi
if [[ "$action" == "nicotine" ]]
then
nicotine
fi
if [[ "$action" == "spotify" ]]
then
blockify
fi