From d93629ec2262bdf827df42f25e290e67a0569b2b Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 5 Apr 2020 23:58:00 -0400 Subject: [PATCH] Switched to straw-viewer for youtube. Linked it to youtube-viewer for people used to the old program. --- build/build/build.sh | 4 +++- files/files/etc/skel/.bash_aliases | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/build/build/build.sh b/build/build/build.sh index d236ef9..52784bd 100755 --- a/build/build/build.sh +++ b/build/build/build.sh @@ -261,8 +261,10 @@ systemd-nspawn -a -q -D $workdir/root\ bash -c "touch \$HOME/.firstboot" # Link wormhole-william to wormhole so that it works as a drop-in replacement for magic-wormhole. +# Link straw-viewer so the syntax is the same as for youtube-viewer systemd-nspawn -a -q -D $workdir/root\ - ln /usr/bin/wormhole-william /usr/bin/wormhole + ln /usr/bin/wormhole-william /usr/bin/wormhole;\ + ln /usr/bin/straw-viewer /usr/bin/youtube-viewer # Write a system timestamp. # This timestamp will determine which incremental updates apply to this image diff --git a/files/files/etc/skel/.bash_aliases b/files/files/etc/skel/.bash_aliases index dcc8f7f..2723cc9 100644 --- a/files/files/etc/skel/.bash_aliases +++ b/files/files/etc/skel/.bash_aliases @@ -10,3 +10,8 @@ alias userctl="systemctl --user " alias menu="pdmenu -squn;dialog --infobox \"Press F10 to return to the menu\" 0 0" alias pdmenu="pdmenu -squn;dialog --infobox \"Press F10 to return to the menu\" 0 0" alias pacmd='sudo PULSE_RUNTIME_PATH=/var/run/pulse -u pulse pacmd' +# For when in console mode. +if [[ -z "$DISPLAY" ]]; then + alias straw-viewer='straw-viewer --no-video' + alias youtube-viewer='straw-viewer --no-video' +fi