'Why can't I quit dmenu?
I want to write a script, using dmenu, to navigate through my videos folder and then select a video to play. The Problem is when I want to quit the script it just won't let me
Here is the code:
#!/bin/bash
# movies: script for dmenu to easily navigate through my Videos.
trap 'exit 0' SIGINT SIGTERM
current="$HOME/Videos/"
while [[ -d "$current" ]]; do
path="$current"
number="$(ls -tu $current | wc -l)"
current="$(ls -tu "$current" | dmenu -i -l "$number" -p "What to watch:")"
current="$path""$current"/
done
dwmswallow $WINDOWID; mpv --save-position-on-quit "${current%/}"```
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
