#!/usr/bin/env bash

export launcher_type="2"
export clipboard_type="1"
export wallpaper_type="1"
export powermenu_type="2"
export rofi_dir="$HOME/.config/rofi"

pkill rofi

case $1 in
d) exec $rofi_dir/launchers/type-$launcher_type/launcher.sh ;;
c) exec $rofi_dir/clipboard/type-$clipboard_type/clipboard.sh ;;
w) exec $rofi_dir/wallpaper/type-$wallpaper_type/wallpaper.sh ;;
p) exec $rofi_dir/applets/bin/powermenu.sh ;;
s) exec $rofi_dir/applets/bin/screenshot.sh ;;
h)
    echo -e "rofilaunch.sh [action]\nwhere action,"
    echo "d : drun mode"
    echo "w : window mode"
    echo "s : screen shot mode,"
    echo "c : clipboard manager"
    exit 0
    ;;
*) ;;
esac
