mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
minor correction
This commit is contained in:
parent
d68ba937be
commit
539f3ac807
@ -10,7 +10,7 @@ command -v locate >/dev/null || {
|
|||||||
|
|
||||||
[ -s "$HOME/.config/.mymlocate.db" ] || {
|
[ -s "$HOME/.config/.mymlocate.db" ] || {
|
||||||
notify-send "You have no database. Creating it..."
|
notify-send "You have no database. Creating it..."
|
||||||
disk_path=$(echo "" | rofi -dmenu -l 0 -p "Enter the disk path (e.g '/mnt/harddisk'): ")
|
disk_path=$(echo "" | dmenu -l 0 -p "Enter the disk path (e.g '/mnt/harddisk'): ")
|
||||||
doas updatedb -o ~/.config/.mymlocate.db -U "$disk_path" || {
|
doas updatedb -o ~/.config/.mymlocate.db -U "$disk_path" || {
|
||||||
notify-send "Failed. Run the script once on terminal OR change doas permissions."
|
notify-send "Failed. Run the script once on terminal OR change doas permissions."
|
||||||
exit 1
|
exit 1
|
||||||
@ -18,5 +18,5 @@ command -v locate >/dev/null || {
|
|||||||
}
|
}
|
||||||
|
|
||||||
video_files=$(locate -d ~/.config/.mymlocate.db -b -r '.*\.\(mp4\|mkv\|webm\|mov\|m4v\|wmv\|flv\|avi\)$')
|
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/\.[^.]*$//' | rofi -dmenu -p "Select Video")
|
chosen_file=$(echo "$video_files" | sed 's|.*/||; s/\.[^.]*$//' | dmenu -i -l 10 -p "Select Video")
|
||||||
mpv "$(echo "$video_files" | grep -F "/$chosen_file.")"
|
mpv "$(echo "$video_files" | grep -F "/$chosen_file.")"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user