mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Compare commits
3 Commits
50fc1c320f
...
9fe6c96b75
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9fe6c96b75 | ||
|
|
708d6c6731 | ||
|
|
6476766a21 |
@ -11,9 +11,9 @@ transmission-remote -l | grep % |
|
|||||||
sort -h | uniq -c | awk '{print $3 $1}' | paste -sd ' ' -
|
sort -h | uniq -c | awk '{print $3 $1}' | paste -sd ' ' -
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) setsid -f "$TERMINAL" -e tremc ;;
|
1) setsid -f "$TERMINAL" -e stig ;;
|
||||||
2) td-toggle ;;
|
2) td-toggle ;;
|
||||||
3) notify-send "🌱 Torrent module" "\- Left click to open tremc.
|
3) notify-send "🌱 Torrent module" "\- Left click to open stig.
|
||||||
- Middle click to toggle transmission.
|
- Middle click to toggle transmission.
|
||||||
- Shift click to edit script.
|
- Shift click to edit script.
|
||||||
Module shows number of torrents:
|
Module shows number of torrents:
|
||||||
|
|||||||
6
.local/bin/videosearch
Normal file
6
.local/bin/videosearch
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
temp_file=$(mktemp)
|
||||||
|
locate -d ~/.config/.mymlocate.db -b -r '.*\.\(mp4\|mkv\|webm\|mov\|m4v\wmv\|flv\|avi\)$' | awk -F/ '{name=$NF; gsub(/\.(mp4|mkv|webm|mov|m4v|wmv|flv|avi)$/, "", name); print name "\t" $0}' > "$temp_file"
|
||||||
|
chosen_file_name_and_path=$(cut -f1 "$temp_file" | dmenu -i -l 10 -p "Select a video file:")
|
||||||
|
mpv "$(awk -F'\t' -v chosen="$chosen_file_name_and_path" '$1 == chosen {print $2; exit}' "$temp_file")" && rm "$temp_file"
|
||||||
Loading…
x
Reference in New Issue
Block a user