Sample Header Ad - 728x90

How to create a keyboard shortcut for playing youtube videos with mpv?

0 votes
1 answer
249 views
I'm using Pop OS. I've aliased the command mpv $(xclip -o) & exit to pp so I can play youtube links copied to my clipboard with mpv player in lesser keystrokes in the terminal. I realised I may also do this without even having to open the terminal by creating a 'custom shortcut'(in Pop OS keyboard settings) for the aforementioned command. My attempt at the solution - I tried to assign the custom keys to gnome-terminal -- mpv $(xclip -o) and when it didn't work out I shortened it to mpv $(xclip -o) but with no success. Nothing happened after I pressed the assigned shortcut keys. The question - How do I create a system-wide custom keyboard shortcut to play youtube videos with mpv with help of the command mpv $(xclip -o) & exit ?
Asked by Archit (1 rep)
Oct 14, 2022, 11:10 AM
Last activity: Feb 16, 2023, 10:41 PM