From 0ad27bd93be3ae57ac4054ca8868587b9ba86bbf Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 17 Dec 2020 21:40:29 +0100 Subject: ytdl --- .local/bin/linkview | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to '.local') diff --git a/.local/bin/linkview b/.local/bin/linkview index 235e065..0f4c38c 100755 --- a/.local/bin/linkview +++ b/.local/bin/linkview @@ -19,7 +19,7 @@ use constant { SXIV_PATH => '/usr/local/bin/sxiv', ZATHURA_PATH => '/usr/local/bin/zathura', W3M_PATH => '/usr/local/bin/w3m', - FIREFOX_PATH => '/usr/local/bin/firefox', + BROWSER_PATH => '/usr/local/bin/iridium', NOTIFYSEND_PATH => '/usr/local/bin/notify-send' }; use constant PROG_LIST => "" . @@ -31,7 +31,7 @@ use constant PROG_LIST => "" . "sxiv" . "\n" . "zathura" . "\n" . "w3m" . "\n" . -"firefox" . "\n"; +"iridium" . "\n"; sub open_link { @@ -102,7 +102,7 @@ sub open_link $ret = -1; if ($a eq "youtube-dl") { (undef, undef, $ret) = capture { - system(YTDL_PATH, $url); + system(YTDL_PATH, '--add-metadata', $url); }; } else { @@ -202,12 +202,12 @@ sub open_link elsif ($a eq "w3m") { exec(TERMINAL_PATH, '-e', W3M_PATH, $url); } - elsif ($a eq "firefox") { + elsif ($a eq "iridium") { $pid = fork(); if (not $pid) { setsid(); capture { - exec(FIREFOX_PATH, '--kiosk', $url); + exec(BROWSER_PATH, $url); }; } } -- cgit v1.2.3