#!/bin/sh # Solarized #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" # Gruvbox base03="#282828" base02="#3c3836" base01="#a89984" base00="#bdae93" base0="#d5c4a1" base1="#ebdbb2" base2="#ebdbb2" base3="#fbf1c7" yellow="#d79921" orange="#d65d0e" red="#cc241d" magenta="#b16286" violet="#b16286" blue="#458588" cyan="#689d6a" green="#98971a" bemenu_cmd() { bemenu -i --scrollbar always\ -n -p 'Run:' -l 10 -B 3 -W 0.5\ --fn "FiraCode Semibold 16px"\ --tb $base02 --tf $green\ --fb $base03 --ff $base0\ --nb $base03 --nf $base0\ --ab $base03 --af $base3\ --sb $base02 --sf $cyan\ --hb $base02 --hf $cyan\ --scb $base02 --scf $cyan\ --bdr $violet\ "$@" } 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