Dotfiles/bin/.bin/dmenu/trofi
2021-04-04 17:30:49 +01:00

12 lines
310 B
Bash
Executable file

#!/usr/bin/env bash
# THis is a simple wrapper around rofi which makes it nicer to use with touch screens
input="$(cat -)"
lines="$(echo "$input" | wc -l )"
[ "$lines" -gt 15 ] && lines=15
echo "$input" | rofi -dmenu -me-accept-entry '!MousePrimary' -theme "themes/touch-dmenu.rasi" -lines "$lines" "$@"