Hotkeys to play or download YouTube videos by coping the link

Forum Forums General Tips and Tricks Hotkeys to play or download YouTube videos by coping the link

  • This topic has 2 replies, 3 voices, and was last updated Mar 13-3:18 pm by techore.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #101919
    Member
    Lead Farmer

      Hotkeys that will let you play or download YouTube videos by copying the link and pressing the hotkey.

      #Video Download 
      key "Ctrl+Shift+z" x-terminal-emulator -T "Downloading a Video..." -e /bin/bash -c "xclip -selection c -o | xargs youtube-dl -f 22 && yad --center --button=gtk-quit:1 --buttons-layout=center --width=200 --title="Download" --text="Complete" --text-align=center --borders=5"
      #Video Play
      key "Ctrl+Shift+x" x-terminal-emulator -T "Playing a Video" -e /bin/bash -c "xclip -selection c -o |  xargs mpv --loop-file=1 --ytdl-format=22 --fullscreen=yes"

      Adding the hotkeys:

      Open Control Center > Edit IceWM setting > keys, and copy the code to the end of the file.
      You now need to restart the session, Menu > Logout > Restart Session.

      How to play and download a video:

      1) Right click on the video you want to play or download and select “copy link address”, or copy the address of the video from the URL bar.

      2) Ctrl+Shift+x will play the video
      Ctrl+Shift+z will download the video

      * The video format is set 720p, you can change “–ytdl-format=22” or “-f 22” to 18 to set it to 360p

      * Playing the video is set play in fullscreen “–fullscreen=yes” but you can replace is maximized with “–window-maximized=yes” or remove it.
      Also I set in to repeat once with “–loop-file=1” you can remove it if you like.

      * To exit the video playing press q.

      * You can replace the hotkeys for liking, I don’t know to set it for other desktops.

      I hope someone will find this useful.

      Attachments:
      #101923
      Member
      RJP
        Helpful
        Up
        0
        ::

        You have fine icons on your Desktop. 🙂

        #101928
        Member
        techore
          Helpful
          Up
          0
          ::

          Very nice and thank you for sharing.

          @RJP, stop flirting. 🙂

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.