cplay-ng

simple curses audio player
git clone https://git.ce9e.org/cplay-ng.git

commit
4865421db04eca17872cb5748dec7752c533f071
parent
1fb5891e90a43b3a9aa8bc503009525009bf5403
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2022-02-23 19:02
use @DEFAULT_SINK@ instead of hardcoded index with pactl

Diffstat

M cplay.py 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/cplay.py b/cplay.py

@@ -80,7 +80,7 @@ def str_match(query, s):
   80    80 
   81    81 def set_volume(vol):
   82    82     subprocess.check_call([
   83    -1         'pactl', '--', 'set-sink-volume', '0', '%i%%' % int(vol * 100)
   -1    83         'pactl', 'set-sink-volume', '@DEFAULT_SINK@', '%i%%' % int(vol * 100)
   84    84     ])
   85    85 
   86    86