Back to dmenu.
This commit is contained in:
parent
0ba9df8d5e
commit
6a14afdb8e
6 changed files with 16 additions and 28 deletions
|
@ -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" | rofi -dmenu -l 20 -i -p 'open')"
|
||||
o) chosen="$(echo "$urls" | 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 ;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue