#!/usr/bin/env bash
# ABOUTME: Application launcher using rofi with Catppuccin Mocha theme.
# ABOUTME: Supports window, files, run, and drun modes.

case $1 in
  window)
    showmode="window"
    ;;
  files)
    showmode="filebrowser"
    ;;
  run)
    showmode="run"
    ;;
  *)
    showmode="drun"
    ;;
esac

## Run
rofi \
    -show $showmode \
    -click-to-exit \
    -theme /etc/xdg/rofi/themes/launcher.rasi
