- 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)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Forum for users of antiX Linux. Mean and Lean and Proudly anti-fascist.
Forum › Forums › General › Tips and Tricks › Hotkeys to play or download YouTube videos by coping the link
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.
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |