diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-14 08:03:23 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-14 08:03:23 +0900 |
| commit | 58cb49805da76d1b56ea4c5ef4cc0ad7417b8375 (patch) | |
| tree | 5eaa504dd621cf876ad8d06ba0fdb7034a723994 /ar/.local/bin | |
| parent | ca20879a6c8d824f6441c6e661efe377da22ca3b (diff) | |
modified x11/xprofile, modified bin/mpvplay
Diffstat (limited to 'ar/.local/bin')
| -rwxr-xr-x | ar/.local/bin/mpvplay | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ar/.local/bin/mpvplay b/ar/.local/bin/mpvplay index 294d59e..32d229f 100755 --- a/ar/.local/bin/mpvplay +++ b/ar/.local/bin/mpvplay @@ -14,7 +14,9 @@ play_url() { if ! mpv "$url"; then notify-send "🔑 Authentication required" username="$(echo | dmenu -i -p "Enter a username:")" + [ -z "$username" ] && exit 1 password="$(echo | dmenu -i -P -p "Enter a password:")" + [ -z "$password" ] && exit 1 [ -n "$username" ] && [ -n "$password" ] && mpv --ytdl-raw-options=username="$username",password="$password" "$url" || notify-send "❌ Failed to play $url" "❗ Check your username or password" fi |
