Skip to content

Instantly share code, notes, and snippets.

@griffinevans
Created November 15, 2021 07:36
Show Gist options
  • Save griffinevans/23f1cbf7590d66ae329c6518943e94ea to your computer and use it in GitHub Desktop.
Save griffinevans/23f1cbf7590d66ae329c6518943e94ea to your computer and use it in GitHub Desktop.
* {
width: 100px;
}
#!/usr/bin/env bash
chosen=$(echo -e "1\n2" | rofi -dmenu)
case $chosen in
1)
echo "chose 1"
ans=$(rofi -dmenu -i -p "Exit? (y/n)" -theme example.rasi)
;;
2)
echo "chose 2"
exit 0
;;
esac
echo $ans
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment