Stumpwm configs
This commit is contained in:
parent
feadd84c93
commit
6339a9ef31
4 changed files with 105 additions and 5 deletions
8
scripts/mpv-pick.sh
Executable file
8
scripts/mpv-pick.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
# Build a list of full paths, display just filenames in rofi
|
||||
files=$(cd $HOME/Videos && fd -t f)
|
||||
selection=$(echo "$files" | awk -F'/' '{print $NF}' | rofi -i -dmenu -p mpv)
|
||||
if [ -n "$selection" ]; then
|
||||
fullpath=$(echo "$files" | grep -F "$selection" | head -1)
|
||||
mpv --save-position-on-quit "$HOME/Videos/$fullpath"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue