dotfiles/.config/wm_scripts/menucmd
2022-05-02 17:41:26 +08:00

56 lines
837 B
Bash
Executable File

#!/bin/sh
base03="#002b36"
base02="#073642"
base01="#586e75"
base00="#657b83"
base0="#839496"
base1="#93a1a1"
base2="#eee8d5"
base3="#fdf6e3"
yellow="#b58900"
orange="#cb4b16"
red="#dc322f"
magenta="#d33682"
violet="#6c71c4"
blue="#268bd2"
cyan="#2aa198"
green="#859900"
bemenu_cmd()
{
bemenu -i -l 10 --scrollbar always\
--fn "FiraCode Semibold 11px"\
--tb $base02 --tf $green\
--fb $base03 --ff $base0\
--nb $base03 --nf $base0\
--sb $base02 --sf $cyan\
--hb $base02 --hf $cyan\
--scb $base02 --scf $cyan
$@
}
dmenu_cmd()
{
dmenu -p dmenu -l 10\
-fn "FiraCodeSemibold-9"\
-nb $base03 -nf $base0\
-sb $base02 -sf $cyan\
$@
}
rofi_cmd()
{
rofi -dmenu
}
if [[ -n $WAYLAND_DISPLAY ]]; then
bemenu_cmd $@
elif [[ -n $DISPLAY ]]; then
rofi_cmd $@
else
echo "Error: No Wayland or X11 display detected" >&2
exit 1
fi