Stumpwm configs

This commit is contained in:
Ian Keane 2026-08-07 00:59:48 -04:00
parent feadd84c93
commit 6339a9ef31
4 changed files with 105 additions and 5 deletions

8
scripts/mpv-pick.sh Executable file
View 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