aboutsummaryrefslogtreecommitdiff
path: root/Common/rofi/applets/menu/apps.sh
diff options
context:
space:
mode:
authorjakob.stendahl <jakob.stendahl@infomedia.dk>2024-01-23 11:13:18 +0100
committerjakob.stendahl <jakob.stendahl@infomedia.dk>2024-01-23 11:13:18 +0100
commit72efe134f645a5212f875c153dd8db4a64cbe968 (patch)
treed23229285071bf381515657b94919852ebf426c9 /Common/rofi/applets/menu/apps.sh
parente33d5f8d10d34e5a3a4bb292015961dd574f4c93 (diff)
downloaddotfiles-72efe134f645a5212f875c153dd8db4a64cbe968.tar.gz
dotfiles-72efe134f645a5212f875c153dd8db4a64cbe968.zip
changes
Diffstat (limited to 'Common/rofi/applets/menu/apps.sh')
-rwxr-xr-xCommon/rofi/applets/menu/apps.sh95
1 files changed, 0 insertions, 95 deletions
diff --git a/Common/rofi/applets/menu/apps.sh b/Common/rofi/applets/menu/apps.sh
deleted file mode 100755
index b5dd989..0000000
--- a/Common/rofi/applets/menu/apps.sh
+++ /dev/null
@@ -1,95 +0,0 @@
-#!/usr/bin/env bash
-
-## Author : Aditya Shakya
-## Mail : adi1090x@gmail.com
-## Github : @adi1090x
-## Twitter : @adi1090x
-
-style="$($HOME/.config/rofi/applets/menu/style.sh)"
-
-dir="$HOME/.config/rofi/applets/menu/configs/$style"
-rofi_command="rofi -theme $dir/apps.rasi"
-
-# Links
-terminal=""
-files=""
-editor=""
-browser=""
-music=""
-settings=""
-
-# Error msg
-msg() {
- rofi -theme "$HOME/.config/rofi/applets/styles/message.rasi" -e "$1"
-}
-
-# Variable passed to rofi
-options="$terminal\n$files\n$editor\n$browser\n$music\n$settings"
-
-chosen="$(echo -e "$options" | $rofi_command -p "Most Used" -dmenu -selected-row 0)"
-case $chosen in
- $terminal)
- if [[ -f /usr/bin/termite ]]; then
- termite &
- elif [[ -f /usr/bin/urxvt ]]; then
- urxvt &
- elif [[ -f /usr/bin/kitty ]]; then
- kitty &
- elif [[ -f /usr/bin/xterm ]]; then
- xterm &
- elif [[ -f /usr/bin/xfce4-terminal ]]; then
- xfce4-terminal &
- elif [[ -f /usr/bin/gnome-terminal ]]; then
- gnome-terminal &
- else
- msg "No suitable terminal found!"
- fi
- ;;
- $files)
- if [[ -f /usr/bin/thunar ]]; then
- thunar &
- elif [[ -f /usr/bin/pcmanfm ]]; then
- pcmanfm &
- else
- msg "No suitable file manager found!"
- fi
- ;;
- $editor)
- if [[ -f /usr/bin/geany ]]; then
- geany &
- elif [[ -f /usr/bin/leafpad ]]; then
- leafpad &
- elif [[ -f /usr/bin/mousepad ]]; then
- mousepad &
- elif [[ -f /usr/bin/code ]]; then
- code &
- else
- msg "No suitable text editor found!"
- fi
- ;;
- $browser)
- if [[ -f /usr/bin/firefox ]]; then
- firefox &
- elif [[ -f /usr/bin/chromium ]]; then
- chromium &
- elif [[ -f /usr/bin/midori ]]; then
- midori &
- else
- msg "No suitable web browser found!"
- fi
- ;;
- $music)
- if [[ -f /usr/bin/lxmusic ]]; then
- lxmusic &
- else
- msg "No suitable music player found!"
- fi
- ;;
- $settings)
- if [[ -f /usr/bin/xfce4-settings-manager ]]; then
- xfce4-settings-manager &
- else
- msg "No suitable settings manager found!"
- fi
- ;;
-esac