Skip to content

Instantly share code, notes, and snippets.

@cirrusUK
Created October 31, 2024 19:38
Show Gist options
  • Save cirrusUK/50ad63e8853d89331b4e29e888be40a9 to your computer and use it in GitHub Desktop.
Save cirrusUK/50ad63e8853d89331b4e29e888be40a9 to your computer and use it in GitHub Desktop.
#!/bin/sh
# colors {{{
c_red="\033[1;31m"
c_green="\033[1;32m"
c_yellow="\033[1;33m"
c_blue="\033[1;34m"
c_magenta="\033[1;35m"
c_cyan="\033[1;36m"
c_reset="\033[0m"
c_bold="\033[1m"
#}}}
dir=("/run/media/cirrus/HP51/Videos/New")
get_selection() {
for p in $dir; do
ls "$p"
done \
| fzf-tmux --ansi -m --height=90% --color=bg+:#191919,bg:#002b36,spinner:#719e07,hl:#586e75,border:#5fff5f --color=fg:#839496,header:#ffff00,info:#ffaf00,pointer:#719e07 --color=marker:#719e07,fg+:#5fff5f,prompt:#719e07,hl+:#719e07 --header=' ᗧ ᛫ . ᗣ ᛫ 🍒 ᛫ ᗣ . 🍒 . AnY CoL0uR y0u LiKe . 🍇 . . 🍓 . ᛫ 🍈 . 🍒 . ' --border=sharp --prompt='➤ ' --pointer='➤ ' --marker='➤ ' --exit-0
}
if selection=$( get_selection ); then
mpv --no-osd-bar --ontop --no-config "${dir}/${selection}"
else
printf "${c_green} Hope you liked that one.\n${c_red} Hit up arrow to${c_magenta} ${c_bold} keeo watching.${c_reset}"
exit
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment