i3/scripts/use_bookmark.sh
2025-07-20 20:50:57 -04:00

10 lines
231 B
Bash
Executable file

#!/bin/bash
dest=$(cat ~/.bookmarks | dmenu -nf '#BBBBBB' -nb '#3A515D' -sb '#83C092' -sf '#000000' -fn 'monospace-16' -l 10 -p "Bookmarks: " | cut -d ' ' -f 2)
if [[ -z "$dest" ]]
then
echo "empty"
else
xdotool type $dest
fi