diff options
| author | Alec Goncharow <alec@goncharow.dev> | 2022-12-04 18:23:46 -0600 |
|---|---|---|
| committer | Alec Goncharow <alec@goncharow.dev> | 2022-12-04 18:23:46 -0600 |
| commit | 1ec73cc2c14d2f62c32046d9585c3a745531d37a (patch) | |
| tree | 8b9c6b2e5ba43ce1248c114758a55df9467cab64 /.config/rofi/applets/android/quicklinks.sh | |
| parent | b257edf16c9b8b14ebb542e857a29c74fea00495 (diff) | |
Fresh start
Diffstat (limited to '.config/rofi/applets/android/quicklinks.sh')
| -rwxr-xr-x | .config/rofi/applets/android/quicklinks.sh | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/.config/rofi/applets/android/quicklinks.sh b/.config/rofi/applets/android/quicklinks.sh deleted file mode 100755 index e2ae62f..0000000 --- a/.config/rofi/applets/android/quicklinks.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/usr/bin/env bash - -## Author : Aditya Shakya -## Mail : adi1090x@gmail.com -## Github : @adi1090x -## Twitter : @adi1090x - -dir="$HOME/.config/rofi/applets/android" -rofi_command="rofi -theme $dir/six.rasi" - -# Error msg -msg() { - rofi -theme "$dir/message.rasi" -e "$1" -} - -# Browser -if [[ -f /usr/bin/firefox ]]; then - app="firefox" -elif [[ -f /usr/bin/chromium ]]; then - app="chromium" -elif [[ -f /usr/bin/midori ]]; then - app="midori" -else - msg "No suitable web browser found!" - exit 1 -fi - -# Links -google="" -facebook="" -twitter="" -github="" -mail="" -youtube="" - -# Variable passed to rofi -options="$google\n$facebook\n$twitter\n$github\n$mail\n$youtube" - -chosen="$(echo -e "$options" | $rofi_command -p "Open In : Firefox" -dmenu -selected-row 0)" -case $chosen in - $google) - $app https://www.google.com & - ;; - $facebook) - $app https://www.facebook.com & - ;; - $twitter) - $app https://www.twitter.com & - ;; - $github) - $app https://www.github.com & - ;; - $mail) - $app https://www.gmail.com & - ;; - $youtube) - $app https://www.youtube.com & - ;; -esac - |
