1
1
Fork 0
nixos/options/custom/scripts/menu.sh
Myned 880deccb75
menu: switch to walker
Signed-off-by: Myned <dev@bjork.tech>
2024-09-15 17:41:21 -05:00

55 lines
945 B
Bash

#! /usr/bin/env bash
# Menu wrapper
#?? menu
command=walker
while (("$#" > 0)); do
case "$1" in
--applications)
command="walker --modules applications"
;;
--calculator)
command="walker --modules calc"
;;
--clipboard)
command="walker --modules clipboard"
;;
--files)
command="walker --modules finder"
;;
--input)
command="walker --dmenu"
;;
--networks)
command="networkmanager_dmenu"
;;
--passwords)
command="rofi-rbw"
;;
--runner)
command="walker --modules runner"
;;
--search)
command="walker --modules websearch"
;;
--ssh)
command="walker --modules ssh"
;;
--unicode)
command="walker --modules emojis"
;;
--windows)
command="walker --modules windows"
;;
--)
shift
command+=" $*"
break
;;
esac
shift
done
$command