2020-05-31 01:02:24 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
MENUOPTIONS=~/.menuoptions
|
|
|
|
MENUSELECT=~/.menuselect
|
|
|
|
|
2020-05-31 07:54:47 +00:00
|
|
|
HEIGHT=0
|
|
|
|
WIDTH=0
|
|
|
|
LINES=0
|
|
|
|
|
2020-05-31 01:02:24 +00:00
|
|
|
if [ ! -f $MENUOPTIONS ]
|
|
|
|
then
|
|
|
|
echo 'termite Terminal' > $MENUOPTIONS
|
2020-05-31 07:54:47 +00:00
|
|
|
echo 'audacious "Music Player"' >> $MENUOPTIONS
|
|
|
|
echo 'firefox "Web Browser"' >> $MENUOPTIONS
|
|
|
|
echo '"sudo reboot" Restart' >> $MENUOPTIONS
|
|
|
|
echo '"sudo poweroff" Shutdown' >> $MENUOPTIONS
|
2020-05-31 01:02:24 +00:00
|
|
|
fi
|
|
|
|
|
2020-05-31 07:54:47 +00:00
|
|
|
cat $MENUOPTIONS | xargs dialog --menu EXECUTE $HEIGHT $WIDTH $LINES 2>$MENUSELECT && swaymsg exec "`cat $MENUSELECT`"
|
2020-05-31 01:02:24 +00:00
|
|
|
|