.bash aliases: Difference between revisions
From ICO wiki
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
Line 8: | Line 8: | ||
################### | ################### | ||
# EndeavourOS, Arch Linux, Manjaro Linux, etc. | # EndeavourOS, Arch Linux, Manjaro Linux, etc. | ||
alias u='yay -Syyuu --noconfirm' # | alias u='yay -Syyuu --noconfirm' #update, upgrade | ||
alias k='yay -Scc --noconfirm' # | alias k='yay -Scc --noconfirm' #clean | ||
alias i='yay -S' # | alias i='yay -S' #install | ||
alias oka='yay -Ss' # | alias oka='yay -Ss' #remote search | ||
alias oko='yay -Qs' # | alias oko='yay -Qs' #local search | ||
alias n='yay -Si' # | alias n='yay -Si' #show information | ||
alias e='yay -Rsn' # | alias e='yay -Rsn' #remove completely | ||
alias ae='yay -Yc' # | alias ae='yay -Yc' #remove orphan dependencies | ||
alias ug='sudo grub-mkconfig -o /boot/grub/grub.cfg' # | alias ug='sudo grub-mkconfig -o /boot/grub/grub.cfg' #update GRUB | ||
# | # | ||
# Linux Mint, Ubuntu, Debian, etc. | # Linux Mint, Ubuntu, Debian, etc. |
Revision as of 21:58, 23 September 2021
# Preliminary version in Estonian can be found at http://viki.pingviin.org/Alias
#
# Also from http://enos.itcollege.ee/~edmund/materials/bash
#
###########################################################################
# Some bash aliases
###################
# EndeavourOS, Arch Linux, Manjaro Linux, etc.
alias u='yay -Syyuu --noconfirm' #update, upgrade
alias k='yay -Scc --noconfirm' #clean
alias i='yay -S' #install
alias oka='yay -Ss' #remote search
alias oko='yay -Qs' #local search
alias n='yay -Si' #show information
alias e='yay -Rsn' #remove completely
alias ae='yay -Yc' #remove orphan dependencies
alias ug='sudo grub-mkconfig -o /boot/grub/grub.cfg' #update GRUB
#
# Linux Mint, Ubuntu, Debian, etc.
#alias u='sudo apt update && sudo apt full-upgrade'
#alias k='sudo ldconfig && sudo dpkg --configure -a && sudo apt-get clean'
#alias i='sudo apt install'
#alias oka='apt search'
#alias oko='dpkg -l|grep -i'
#alias n='sudo apt show'
#alias e='sudo apt purge'
#alias ae='sudo apt purge --auto-remove'
#alias p='sudo apt-cache policy'
#alias f='sudo apt install -f'
#alias ug='sudo update-grub'
###########################################################################
# Transfer
# https://transfer.sh
# usage: transfer file.txt - replace "file.txt" with real one
# up to 10 GB, files stored for 14 days
transfer() { if [ $# -eq 0 ]; then echo -e "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi
tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; }
###########################################################################
alias clean='rm ~/.local/share/recently-used.xbel 2>/dev/null' #clean recently used files list
alias neti='ping neti.ee -c3'
#
# What is my IP address?
alias ipinfo='curl ipinfo.io'
alias ipinfo-ip='curl ipinfo.io/ip'
alias ipinfo-hostname='curl ipinfo.io/hostname'
alias ipinfo-city='curl ipinfo.io/city'
alias ipinfo-region='curl ipinfo.io/region'
alias ipinfo-country='curl ipinfo.io/country'
alias ipinfo-loc='curl ipinfo.io/loc'
alias ipinfo-org='curl ipinfo.io/org'
# sudo apt update && sudo apt install curl -y && sudo apt clean
###########################################################################
# weather https://askubuntu.com/questions/390329/weather-from-terminal
alias weather-tallinn='curl wttr.in/tallinn'
alias weather2-tallinn='curl v2.wttr.in/tallinn'
###########################################################################
# Logging with SSH keyfile example with checking key both in text and visual mode. Replace with appropriate data
#
#alias sshalias='ssh-keyscan -t ecdsa address.ee | ssh-keygen -lv -f - && ssh -X -i ~/.ssh/keyfile -o VisualHostKey=yes user@address.ee'
#
###########################################################################
# Power management
alias power-lock-suspend='sudo physlock -du $USER; sudo systemctl suspend'
# sudo apt update && sudo apt install physlock -y && sudo apt clean
# https://groups.google.com/forum/#!topic/qubes-users/4dnNv5eYgq4
# https://github.com/muennich/physlock
alias power-off='systemctl poweroff'
alias power-reboot='systemctl reboot'
alias power-halt='systemctl halt'
alias power-suspend='systemctl suspend'
alias power-hibernate='systemctl hibernate'
###########################################################################
# RADIOSTATIONS
# http://icecast.err.ee/
# http://icecast.mmm.elion.ee:8080/
# http://striiming.trio.ee/
# http://www.raadio.ee
# http://www.raadio.net
# https://www.liveradio.ie/
# http://www.w3.ee
# http://et.wikipedia.org/wiki/Eesti_raadiojaamade_loend
# http://www.neti.ee/cgi-bin/teema/INFO_JA_MEEDIA/Raadio/
# http://www.neti.ee/cgi-bin/teema/INFO_JA_MEEDIA/Raadio/ON-LINE/
# http://www.rhm.ee/raadio/raadiojaam.html
# http://www.google.com/Top/World/Eesti/Meedia/Raadio/
# http://www.tvnewsradio.com/ee/raadio.htm
# http://www.di.fm
# http://somafm.com
# http://www.surfmusic.de
# http://www.micromusic.net
# http://www.1club.fm/radioChannelGuide.htm
# http://www.m2radio.fr
# http://radiomap.eu/ee/
# https://www.raadio.net/
# https://levira.com/en/services/broadcasting/radio-broadcasting-fm-web/
# https://www.ttja.ee/et/valdkonnad-teenused/sideteenused/raadioside/tv-ja-raadioringhaaling - here are PDF-files from officially allowed radio stations in Estonia
# https://wiki.kuus.eu/index.php/Eesti_raadiod_onlines
#
# Streaming Directories:
# http://dir.xiph.org/ (http://www.icecast.org/)
# http://www.shoutcast.com/
# http://www.internet-radio.com/
# http://www.live365.com/
# http://www.listenlive.eu/
# http://www.radiotunes.com/
# http://radiotuna.com/
# http://tunein.com/
# http://www.977music.com/
# http://www.radioguide.fm/
# http://www.radio.de/
#
# MPlayer and codecs installation
# https://help.ubuntu.com/community/MPlayer - install mediaplayer
# https://help.ubuntu.com/community/RestrictedFormats - install codecs
# sudo apt update && sudo apt install mplayer mplayer-fonts k|x|l|ubuntu-restricted-extras -y && sudo apt clean #choose one of the restricted extras package according used ubuntu flavour
#
# MPV - new era mediaplayer based on MPlayer, also for smart devices
# https://mpv.io/installation/
#
##########################################################################
# Estonian National Broadcasting Company (ERR) - http://www.err.ee/
# http://icecast.err.ee/
#
# Klassikaraadio - http://klassikaraadio.err.ee/
alias radio-kl-128-mp3='mpv http://icecast.err.ee/klassikaraadio.mp3.m3u'
alias radio-kl-128-ogg='mpv http://icecast.err.ee/klassikaraadio.ogg.m3u'
alias radio-kl-64-mp3='mpv http://icecast.err.ee/klassikaraadiomadal.mp3.m3u'
alias radio-kl-64-ogg='mpv http://icecast.err.ee/klassikaraadiomadal.ogg.m3u'
# x-terminal-emulator -T "Klassikaraadio" -e "mpv http://icecast.err.ee/klassikaraadio.ogg.m3u"
#
# Raadio 2 - http://r2.err.ee/
alias radio-r2-128-mp3='mpv http://icecast.err.ee/raadio2.mp3.m3u'
alias radio-r2-128-ogg='mpv http://icecast.err.ee/raadio2.ogg.m3u'
alias radio-r2-64-mp3='mpv http://icecast.err.ee/raadio2madal.mp3.m3u'
alias radio-r2-64-ogg='mpv http://icecast.err.ee/raadio2madal.ogg.m3u'
# x-terminal-emulator -T "Raadio 2" -e "mpv http://icecast.err.ee/raadio2.mp3.m3u"
#
# Raadio 4 - http://r4.err.ee/
alias radio-r4-128-mp3='mpv http://icecast.err.ee/raadio4.mp3.m3u'
alias radio-r4-128-ogg='mpv http://icecast.err.ee/raadio4.ogg.m3u'
alias radio-r4-64-mp3='mpv http://icecast.err.ee/raadio4madal.mp3.m3u'
alias radio-r4-64-ogg='mpv http://icecast.err.ee/raadio4madal.ogg.m3u'
#
# Raadio Tallinn - http://raadiotallinn.err.ee/
alias radio-rt-128-mp3='mpv http://icecast.err.ee/raadiotallinn.mp3.m3u'
alias radio-rt-128-ogg='mpv http://icecast.err.ee/raadiotallinn.ogg.m3u'
alias radio-rt-64-mp3='mpv http://icecast.err.ee/raadiotallinnmadal.mp3.m3u'
alias radio-rt-64-ogg='mpv http://icecast.err.ee/raadiotallinnmadal.ogg.m3u'
#
# Vikerraadio - http://vikerraadio.err.ee/
alias radio-vr-128-mp3='mpv http://icecast.err.ee/vikerraadio.mp3.m3u'
alias radio-vr-128-ogg='mpv http://icecast.err.ee/vikerraadio.ogg.m3u'
alias radio-vr-64-mp3='mpv http://icecast.err.ee/vikerraadiomadal.mp3.m3u'
alias radio-vr-64-ogg='mpv http://icecast.err.ee/vikerraadiomadal.ogg.m3u'
# x-terminal-emulator -T "Vikerraadio" -e "mpv http://icecast.err.ee/vikerraadio.ogg.m3u"
#
##########################################################################
# https://www.eestimeedia.ee/tegevusalad/raadio/
#
# http://kuku.postimees.ee/
alias radio-kuku-aac='mpv http://striiming.trio.ee/kuku.aac'
alias radio-kuku-mp3='mpv http://striiming.trio.ee/kuku.mp3'
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/kuku.mp3
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/kuku.aac
# x-terminal-emulator -T "Kuku" -e "mpv https://router.euddn.net/8103046e16b71d15d692b57c187875c7/kuku.mp3"
#
# http://myhits.postimees.ee/
alias radio-myhits-aac='mpv http://striiming.trio.ee/myhits.aac'
alias radio-myhits-mp3='mpv http://striiming.trio.ee/myhits.mp3'
# http://striiming.trio.ee:8008/myhits_high.mp3
# http://striiming.trio.ee/myhits_low.mp3
# http://router.euddn.net/8103046e16b71d15d692b57c187875c7/myhits.mp3
# http://router.euddn.net/8103046e16b71d15d692b57c187875c7/myhits.aac
#
# https://elmar.elu24.ee/ , https://elmar.elu24.ee/radio
# https://www.elu24.ee/build-wu-v5/39.bundle-724da730ae1c9618e9a7.js
alias radio-elmar-aac='mpv http://striiming.trio.ee/elmar.aac'
alias radio-elmar-mp3='mpv http://striiming.trio.ee/elmar.mp3'
# x-terminal-emulator -T "Elmar" -e "mpv https://router.euddn.net/8103046e16b71d15d692b57c187875c7/elmar.mp3"
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/elmar.aac
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/elmar.mp3
#
# http://www.dfm.ee http://www.dfm.ee/online/play.html ./js/index.js
alias radio-dfm-aac='mpv http://striiming.trio.ee/dfm.aac'
alias radio-dfm-mp3='mpv http://striiming.trio.ee/dfm.mp3'
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/dfm.mp3
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/dfm.aac
#
# http://www.narodnoeradio.ee
alias radio-narodnoe-aac='mpv http://striiming.trio.ee/narodnoe.aac'
alias radio-narodnoe-mp3='mpv http://striiming.trio.ee/narodnoe.mp3'
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/narodnoe.mp3
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/narodnoe.aac
#
###########################################################################
#
# Babahh Media
# http://retro.babahhcdn.com/
# http://skyplus.babahhcdn.com/
# http://sky.babahhcdn.com/
#
# https://sky.ee/
alias radio-retrofm='mpv http://retro.babahhcdn.com/RETRO'
# http://retro.babahhcdn.com/RETROFM_boadcast.m3u
# http://retro.babahhcdn.com/retro.m3u
# http://retro.babahhcdn.com/retro1.mp3.m3u
# http://retro.babahhcdn.com/retro2.mp3.m3u
alias radio-nrj='mpv http://retro.babahhcdn.com/NRJ.m3u'
alias radio-nrj-dnb='mpv http://retro.babahhcdn.com/NRJdnb.m3u'
#alias radio-nrj-house='mpv http://retro.babahhcdn.com/NRJhouse.m3u'
#
# Russkoje Radio - http://www.russkoeradio.fm/ , https://www.russkoeradio.fm/online?station=russkoe-radio
alias radio-rr='mpv https://skyplus.babahhcdn.com/RR'
# http://retro.babahhcdn.com/RR.m3u
#
# Russkoje Radio Rap
alias radio-rrap='mpv https://skymedia.babahhcdn.com/rrap'
#http://retro.babahhcdn.com/rrap.m3u
#
# Russkoje Radio Rock
alias radio-rrock='mpv https://skymedia.babahhcdn.com/rrock'
#http://retro.babahhcdn.com/rrock.m3u
#
# Sky Radio - http://www.sky-radio.fm/ - venekeelne
# http://player.sky-radio.fm/PlayerContent/SkyRadio/js/settings.js
alias radio-sky='mpv http://sky.babahhcdn.com/SKY'
#http://retro.babahhcdn.com/SKY.m3u
alias radio-skyplus='mpv http://skyplus.babahhcdn.com/SKYPLUS'
#http://retro.babahhcdn.com/SKYPLUS.m3u
#http://retro.babahhcdn.com/SKYPLUS_boadcast.m3u
#http://retro.babahhcdn.com/skyplus.m3u
alias radio-skydance='mpv http://sky.babahhcdn.com/SKYdance'
# http://retro.babahhcdn.com/SKYdance.m3u
alias radio-skygold='mpv http://sky.babahhcdn.com/SKYgold'
#http://retro.babahhcdn.com/SKYgold.m3u
alias radio-rockfm='mpv http://retro.babahhcdn.com/rck.m3u'
alias radio-rockfm-metal='mpv http://retro.babahhcdn.com/rckmetal.m3u'
alias radio-skyplus-gold='mpv http://retro.babahhcdn.com/skyplus_gold.mp3.m3u'
alias radio-skyplus-top40='mpv http://retro.babahhcdn.com/skyplus_top40.mp3.m3u'
alias radio-skyplus-dance='mpv http://retro.babahhcdn.com/skyplusdance.m3u'
#
# Star FM - http://starfm.tv3.ee/
alias radio-starfm='mpv https://ice.leviracloud.eu/star96-aac'
#
###########################################################################
# PowerHit Radio - http://power.tv3.ee/
alias radio-powerhit='mpv http://stream.power.ee/PHR.m3u'
# https://ice.leviracloud.eu/phr96-aac
#
# Radio Volna https://volna.tv3.ee/
alias radio-volna='mpv https://ice.leviracloud.eu/volna96-aac'
#
###########################################################################
#
# Christian radiostations in Estonia
#
# Raadio7 http://www.raadio7.ee/
alias radio-raadio7='mpv https://raadio7.babahhcdn.com/raadio7.m3u'
#
# Pereraadio http://www.pereraadio.ee/
alias radio-pere-tartu='mpv http://icecast.pereraadio.ee/Tartu'
# http://bee.pereraadio.ee:8000/listen.pls
# x-terminal-emulator -T "Tartu Pereraadio" -e "mpv http://icecast.pereraadio.ee/Tartu"
#
alias radio-pere-tallinn='mpv http://icecast.pereraadio.ee/Tallinn'
#
# Pereraadio in Russian
alias radio-pere-semeinoe='mpv http://icecast.pereraadio.ee/Semeinoje'
alias radio-pere-eli='mpv http://icecast.pereraadio.ee/RadioEli'
#
# Kuressaare Pereraadio http://www.pereraadio.com/
alias radio-pere-kuressaare='mpv http://icecast.pereraadio.ee/Kuressaare'
###########################################################################
# http://icecast.mmm.elion.ee:8080/
#
# Ruut FM - http://www.ruutfm.ee/
alias radio-ruutfm='mpv http://sc1.treraadio.ee:8010/tre'
# x-terminal-emulator -T "Ruut FM" -e "mpv http://sc1.treraadio.ee:8010/tre"
###########################################################################
# Ring FM - http://www.ringfm.ee/ , http://www.ringfm.ee/ring/kuula-otse/
alias radio-ringfm='mpv http://sc2.treraadio.ee/ringfm'
###########################################################################
# Marta FM - http://www.martafm.ee/ , live.martafm.ee
alias radio-martafm='mpv http://icecast.mmm.elion.ee:8080/MartaFM'
###########################################################################
# Raadio TRE - http://www.treraadio.ee/ , http://tre.ee/
#
alias radio-tre-rapla='mpv http://sc1.treraadio.ee:8002/tre'
#http://sc1.treraadio.ee:8002/listen.pls'
#http://151.80.180.93:8002/tre
alias radio-tre-kesk-eesti='mpv http://sc2.treraadio.ee:8004/tre'
alias radio-tre-pohja-eesti='mpv http://sc2.treraadio.ee/pohja-tre'
alias radio-tre-parnu='mplayer http://icecast.mmm.elion.ee:8080/paikeseraadio'
# x-terminal-emulator -T "Raadio TRE" -e "mpv http://sc1.treraadio.ee:8002/tre"
###########################################################################
# Tartu Noorteraadio - http://www.noorteraadio.ee/
# x-terminal-emulator -T "Tartu Noorteraadio" -e "mplayer http://tartunoored.ee:8010/stream"
###########################################################################
# Raadio Mania - http://www.mania.ee/ - closed
# alias radio-mania='mpv http://icecast.linxtelecom.com:8000/mania.mp3.m3u'
# x-terminal-emulator -T "Raadio Mania" -e "mpv http://icecast.linxtelecom.com:8000/mania.mp3.m3u"
###########################################################################
# Raadio Kadi - http://www.kadi.ee/ (levitaja: http://www.eqcomputer.com)
alias radio-kadi='mpv https://kadi.babahhcdn.com/kadi'
# x-terminal-emulator -T "Raadio Kadi" -e "mpv https://kadi.babahhcdn.com/kadi"
###########################################################################
# Nõmme Raadio - http://www.nommeraadio.ee/
alias radio-nommeraadio='mplayer http://149.210.138.12:8000/nommeraadio'
###########################################################################
# dance
#alias nashe96='mpv http://www.nashe.ua/radio.m3u'
#alias nashe128='mpv http://www.nashe.ua/nashe.m3u'
#alias swh-latvia='mpv http://www.radioswh.lv/swhlivee_s.m3u'
#alias radio1='mplayer http://netshow.play.cz:8000/radio1.mp3'
alias radio-t4e_main='mplayer http://out03.t4e.dj:80/main_high.mp3'
alias radio-t4e_hard='mplayer http://out03.t4e.dj:80/hard_high.mp3'
alias radio-t4e_club='mplayer http://out03.t4e.dj:80/club_high.mp3'
alias radio-t4e_lounge='mplayer http://out03.t4e.dj:80/lounge_high.mp3'
alias radio-iwayhigh_dub_electro_chill='mpv http://iwayhigh.net:8000/listen.pls'
alias radio-iwayhigh_guidance2='mpv http://iwayhigh.net:8002/listen.pls'
###########################################################################
# Metal
#alias chronix_aggression='mpv http://www.chronixradio.com/stations/chronixaggression/listen/listen.pls'
#alias chronix_metal='mpv http://www.chronixradio.com/cxrmetal/listen/listen.pls'
#alias chronix_grit='mpv http://www.chronixradio.com/cxrgrit/listen/listen.pls'
#alias chronix_mm='mpv http://sc1.chronixradio.com:10300/listen.pls'
#alias risingmetal='mpv http://radio1.forbidenhosting.com:2199/tunein/dgarda00.pls'
#alias radio-metalradio='mpv http://cent4.serverhostingcenter.com:2199/tunein/dzapped-stream.pls' #http://metalradio.com/
###########################################################################
# ambient
alias radio-ambient-somafm-dronezone='mpv http://somafm.com/dronezone.pls' #ambient http://somafm.com/dronezone/
alias radio-ambient-somafm-spacestation='mpv http://somafm.com/spacestation.pls' # http://somafm.com/spacestation/
alias radio-ambient-somafm-deepspace='mpv https://somafm.com/deepspaceone.pls' # http://somafm.com/deepspaceone/
alias radio-ambient-somafm-groovesalad='mpv https://somafm.com/groovesalad.pls' # http://somafm.com/groovesalad/
alias radio-ambient-somafm-missioncontrol='mpv https://somafm.com/missioncontrol.pls' # http://somafm.com/missioncontrol/
alias radio-ambient-hbr1='mpv http://radio.hbr1.com:19800/ambient.ogg.m3u' # http://www.hbr1.com/ Dream Factory
# http://radio.hbr1.com:19800/ - media server
alias radio-ambient-sleepbot='mpv http://www.sleepbot.com/ambience/cgi/listen.cgi/listen.pls' # http://www.sleepbot.com/ambience/broadcast/
alias radio-ambient-bluemars='mpv http://streams.echoesofbluemars.org:8000/bluemars.m3u' # http://echoesofbluemars.org/
alias radio-ambient-cryosleep='mpv http://streams.echoesofbluemars.org:8000/cryosleep.m3u' # http://echoesofbluemars.org/cryosleep.php
alias radio-ambient-voices-from-within='mpv http://streams.echoesofbluemars.org:8000/voicesfromwithin.m3u' # http://echoesofbluemars.org/voicesfromwithin.php
###########################################################################
# Christian Metal
alias radio-christian-metal-hardrock-low='mpv http://christianhardrock.net/CHRDN/live/low.pls'
alias radio-christian-metal-hardrock-high='mpv http://christianhardrock.net/CHRDN/live/high.pls'
alias radio-christian-metal-rock-low='mpv http://www.christianrock.net/CRDN/live/low.pls'
alias radio-christian-metal-rock-high='mpv http://www.christianrock.net/CRDN/live/high.pls'
alias radio-christian-metal-classicrock-low='mpv http://www.christianclassicrock.net/CCRDN/live/low.pls'
alias radio-christian-metal-classicrock-high='mpv http://www.christianclassicrock.net/CCRDN/live/high.pls'
alias radio-christian-metal-sanctus-gladius='mpv http://yp.shoutcast.com/sbin/tunein-station.m3u?id=1624924'
alias radio-christian-metal-full-armor='mpv http://yp.shoutcast.com/sbin/tunein-station.m3u?id=329149'
alias radio-christian-powerpraise-low='mpv http://www.christianpowerpraise.net/CPPDN/live/low.pls'
alias radio-christian-powerpraise-high='mpv http://www.christianpowerpraise.net/CPPDN/live/high.pls'
#alias radio-christian-rock-I-am='mpv http://yp.shoutcast.com/sbin/tunein-station.m3u?id=28991'
#alias christian-blastfm='mpv http://yp.shoutcast.com/sbin/tunein-station.m3u?id=107652'
#alias radio-christian-musicforhisglory='mpv http://yp.shoutcast.com/sbin/tunein-station.m3u?id=99190554'
#alias radio-christian-life-radio='mpv http://yp.shoutcast.com/sbin/tunein-station.m3u?id=155707'
###########################################################################
# Organ
alias radio-organmagic='mpv http://www.outpostradio.com/organmagic/play.m3u'
###########################################################################
# TV
###########################################################################
# Estonian National Broadcasting Company (http://www.err.ee/) TV-channels
#
# Web player http://otse.err.ee/:
#
alias tv-etv='mpv http://sb.err.ee/live/etv.m3u8'
alias tv-etv2='mpv http://sb.err.ee/live/etv2.m3u8'
alias tv-etv+='mpv http://sb.err.ee/live/etvpluss.m3u8'
# workaround
#alias tv-etv='sh -c "while true; do mpv --network-timeout=2 http://sb.err.ee/live/etv.m3u8; done"'
#alias tv-etv2='sh -c "while true; do mpv --network-timeout=2 http://sb.err.ee/live/etv2.m3u8; done"'
#alias tv-etv+='sh -c "while true; do mpv --network-timeout=2 http://sb.err.ee/live/etvpluss.m3u8; done"'
#alias tv-kill='sh -c "killall -9 sh mpv"'
#
# Webcam test
#
alias wc1='mplayer tv:// -tv driver=v4l2:device=/dev/video0'
alias wc2='mplayer tv:// -tv driver=v4l2:device=/dev/video1'
alias wc3='mplayer tv:// -tv driver=v4l2:device=/dev/video2'
alias vlcwc1='vlc v4l2:///dev/video0'
alias vlcwc2='vlc v4l2:///dev/video1'
alias vlcwc3='vlc v4l2:///dev/video2'