summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-12-17 21:40:29 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-12-17 21:40:29 +0100
commit0ad27bd93be3ae57ac4054ca8868587b9ba86bbf (patch)
tree06b6678c840e44c1e1eb0da58a6f2da321496788 /.local/bin
parentswitched to iridium (diff)
downloaddotfiles-bsd-0ad27bd93be3ae57ac4054ca8868587b9ba86bbf.tar.gz
dotfiles-bsd-0ad27bd93be3ae57ac4054ca8868587b9ba86bbf.tar.bz2
dotfiles-bsd-0ad27bd93be3ae57ac4054ca8868587b9ba86bbf.tar.xz
dotfiles-bsd-0ad27bd93be3ae57ac4054ca8868587b9ba86bbf.tar.zst
dotfiles-bsd-0ad27bd93be3ae57ac4054ca8868587b9ba86bbf.zip
ytdl
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/linkview10
1 files changed, 5 insertions, 5 deletions
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);
};
}
}