summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.config/zsh/alias.zsh2
-rwxr-xr-x.local/bin/linkview10
2 files changed, 6 insertions, 6 deletions
diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh
index 5d9d358..e2ef4ab 100644
--- a/.config/zsh/alias.zsh
+++ b/.config/zsh/alias.zsh
@@ -45,7 +45,7 @@ alias diff='colordiff'
alias ctags='uctags "--exclude=.ccls*"'
alias yt='straw-viewer --api=auto'
alias gyt='gtk-straw-viewer'
-alias ytdl='youtube-dl'
+alias ytdl='youtube-dl --add-metadata'
alias dgit='git --git-dir=$HOME/docs/dotfiles-bsd --work-tree=$HOME'
alias vim='nvim'
alias gst='git status'
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);
};
}
}