mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Compare commits
3 Commits
c3f7d1e086
...
0ab183db9c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0ab183db9c | ||
|
|
533c21c3af | ||
|
|
031938a792 |
@ -9,7 +9,7 @@
|
||||
#
|
||||
# If there is already a running instance, user will be prompted to end it.
|
||||
|
||||
getdim() { xrandr | sed -n "s/\s*\([0-9]\+x[0-9]\+\).*\*.*/\1/p" ;}
|
||||
getdim() { xrandr | grep -oP '(?<=current ).*(?=,)' | tr -d ' ' ;}
|
||||
|
||||
updateicon() { \
|
||||
echo "$1" > /tmp/recordingicon
|
||||
|
||||
@ -1,10 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
tempfile=$(mktemp)
|
||||
locate -d ~/.config/.mymlocate.db -b -r '.*\.\(mp4\|mkv\|webm\|mov\|m4v\|wmv\|flv\|avi\)$' > "$tempfile"
|
||||
|
||||
chosen_name=$(sed 's|.*/||; s/\.[^.]*$//' "$tempfile" | dmenu -i -l 10 -p "Select a video file:")
|
||||
chosen_path=$(grep "/$chosen_name\." "$tempfile")
|
||||
|
||||
mpv "$chosen_path"
|
||||
rm -f "$tempfile"
|
||||
video_files=$(locate -d ~/.config/.mymlocate.db -b -r '.*\.\(mp4\|mkv\|webm\|mov\|m4v\|wmv\|flv\|avi\)$')
|
||||
chosen_file=$(echo "$video_files" | sed 's|.*/||; s/\.[^.]*$//' | dmenu -p "Select Video")
|
||||
mpv "$(echo "$video_files" | grep "/$chosen_file.")"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user