mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2023-02-13 20:55:19 -05:00
Added this dmenu reddio script.
This commit is contained in:
parent
2dc0e75dae
commit
da41ab647c
1 changed files with 49 additions and 0 deletions
49
.dmenu/dmenu-reddio.sh
Executable file
49
.dmenu/dmenu-reddio.sh
Executable file
|
@ -0,0 +1,49 @@
|
|||
#!/bin/bash
|
||||
# ____ _____
|
||||
# | _ \_ _| Derek Taylor (DistroTube)
|
||||
# | | | || | http://www.youtube.com/c/DistroTube
|
||||
# | |_| || | http://www.gitlab.com/dwt1/
|
||||
# |____/ |_|
|
||||
#
|
||||
# Dmenu script for reddio - a command line Reddit viewer.
|
||||
|
||||
|
||||
declare -a options=(" r/archlinux
|
||||
r/commandline
|
||||
r/DistroTube
|
||||
r/linux
|
||||
r/linuxmasterrace
|
||||
r/unixporn
|
||||
r/linux4noobs
|
||||
r/vim
|
||||
quit ")
|
||||
|
||||
choice=$(echo -e "${options[@]}" | dmenu -l -i -p 'Last 10 Posts From Reddit: ')
|
||||
|
||||
if [ "$choice" == ' quit ' ]; then
|
||||
echo "Program terminated."
|
||||
fi
|
||||
if [ "$choice" == ' r/archlinux ' ]; then
|
||||
exec st -e './.dmenu/dmenu-reddio-archlinux.sh'
|
||||
fi
|
||||
if [ "$choice" == ' r/commandline ' ]; then
|
||||
exec st -e './.dmenu/dmenu-reddio-commandline.sh'
|
||||
fi
|
||||
if [ "$choice" == ' r/DistroTube ' ]; then
|
||||
exec st -e './.dmenu/dmenu-reddio-distrotube.sh'
|
||||
fi
|
||||
if [ "$choice" == ' r/linux ' ]; then
|
||||
exec st -e './.dmenu/dmenu-reddio-linux.sh'
|
||||
fi
|
||||
if [ "$choice" == ' r/linuxmasterrace ' ]; then
|
||||
exec st -e './.dmenu/dmenu-reddio-linuxmasterrace.sh'
|
||||
fi
|
||||
if [ "$choice" == ' r/unixporn ' ]; then
|
||||
exec st -e './.dmenu/dmenu-reddio-unixporn.sh'
|
||||
fi
|
||||
if [ "$choice" == ' r/linux4noobs ' ]; then
|
||||
exec st -e './.dmenu/dmenu-reddio-linux4noobs.sh'
|
||||
fi
|
||||
if [ "$choice" == ' r/vim ' ]; then
|
||||
exec st -e './.dmenu/dmenu-reddio-vim.sh'
|
||||
fi
|
Loading…
Reference in a new issue