summaryrefslogtreecommitdiffstats
path: root/.local/bin/linkview
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-11 20:39:05 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-11 20:39:05 +0100
commitc448b52d9f89225ed5ee096d8d152235c11b98cb (patch)
treeed82d6dd6fd46ced1e5147c51612e3c597ffece5 /.local/bin/linkview
parentcommit (diff)
downloaddotfiles-bsd-c448b52d9f89225ed5ee096d8d152235c11b98cb.tar.gz
dotfiles-bsd-c448b52d9f89225ed5ee096d8d152235c11b98cb.tar.bz2
dotfiles-bsd-c448b52d9f89225ed5ee096d8d152235c11b98cb.tar.xz
dotfiles-bsd-c448b52d9f89225ed5ee096d8d152235c11b98cb.tar.zst
dotfiles-bsd-c448b52d9f89225ed5ee096d8d152235c11b98cb.zip
Update
Diffstat (limited to '.local/bin/linkview')
-rwxr-xr-x.local/bin/linkview10
1 files changed, 8 insertions, 2 deletions
diff --git a/.local/bin/linkview b/.local/bin/linkview
index ed9427f..c5d5053 100755
--- a/.local/bin/linkview
+++ b/.local/bin/linkview
@@ -49,6 +49,12 @@ sub open_link
}
$file_name = $url;
$file_name =~ s/.+\///g;
+ if ($file_name =~ m/^watch\?v=.+/) {
+ $file_name = "Your video";
+ }
+ else {
+ $file_name = '<b>' . $file_name . '</b>';
+ }
system(
NOTIFYSEND_PATH,
'-u',
@@ -56,7 +62,7 @@ sub open_link
'-t',
'10000',
' download started',
- '<b>' . $file_name . '</b> started downloading'
+ $file_name . ' started downloading'
);
$ret = -1;
if ($a == 2) {
@@ -73,7 +79,7 @@ sub open_link
'-t',
'10000',
' download complete',
- '<b>' . $file_name . '</b> downloaded successfully to '
+ $file_name . ' downloaded successfully to '
. '<b>' . $pwd . '</b>'
);
}