Back to rofi, because of fucked up fonts in dmenu.

This commit is contained in:
Bartek Stalewski 2021-10-03 14:15:14 +02:00
parent d050312cff
commit a6926a4716

View File

@ -12,7 +12,7 @@ urls="$(sed 's/.*│//g' | tr -d '\n' | # First remove linebreaks and mutt sideb
while getopts "hoc" o; do case "${o}" in
h) printf "Optional arguments for custom use:\\n -c: copy\\n -o: xdg-open\\n -h: Show this message\\n" && exit 1 ;;
o) chosen="$(echo "$urls" | dmenu -l 20 -i -p 'open')"
o) chosen="$(echo "$urls" | rofi -dmenu -l 20 -i -p 'open')"
setsid xdg-open "$chosen" >/dev/null 2>&1 & ;;
c) echo "$urls" | dmenu -i -p 'copy' -l 10 | tr -d '\n' | xsel -l /dev/null ;;
*) printf "Invalid option: -%s\\n" "$OPTARG" && exit 1 ;;