diff options
author | joe <rbo@gmx.us> | 2025-08-20 15:26:13 +0200 |
---|---|---|
committer | joe <rbo@gmx.us> | 2025-08-20 15:26:13 +0200 |
commit | 1df75733460c564fa1594595ed7794d48093f3f6 (patch) | |
tree | 3ddef9290d9e92832e1fedae9a1302392f8503ea | |
parent | up (diff) | |
download | dotfiles-bsd-1df75733460c564fa1594595ed7794d48093f3f6.tar.gz dotfiles-bsd-1df75733460c564fa1594595ed7794d48093f3f6.tar.bz2 dotfiles-bsd-1df75733460c564fa1594595ed7794d48093f3f6.tar.xz dotfiles-bsd-1df75733460c564fa1594595ed7794d48093f3f6.tar.zst dotfiles-bsd-1df75733460c564fa1594595ed7794d48093f3f6.zip |
up
Diffstat (limited to '')
-rw-r--r-- | .config/mpv/mpv.conf | 1 | ||||
-rw-r--r-- | .config/newsboat/config | 11 | ||||
-rwxr-xr-x | .local/bin/linkview | 17 | ||||
-rwxr-xr-x | .local/bin/newsboat-notif | 2 |
4 files changed, 19 insertions, 12 deletions
diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf index fbb1019..26e0d5c 100644 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -2,3 +2,4 @@ video-sync=display-resample osc=yes demuxer-max-bytes=1GiB script-opts=ytdl_hook-ytdl_path=yt-dlp,ytdl_hook-try_ytdl_first=yes,ytdl_hook-exclude="%.webm$|%.ts$|%.mp3$|%.m3u8$|%.m3u$|%.mkv$|%.mp4$|%.VOB$" +term-osd-bar=yes diff --git a/.config/newsboat/config b/.config/newsboat/config index 918080a..ee4459e 100644 --- a/.config/newsboat/config +++ b/.config/newsboat/config @@ -9,6 +9,7 @@ text-width 80 show-keymap-hint no show-title-bar no swap-title-and-hints no +ignore-mode display notify-program ~/.local/bin/newsboat-notif notify-always yes notify-format "%d" @@ -41,7 +42,7 @@ bind-key x pb-delete bind-key ^t next-unread ignore-article "*" "title =~ \"#shorts$\"" -ignore-article "*" "link =~ \"/short/\"" +ignore-article "*" "link =~ \"youtube.com/shorts/\"" color background default default color listnormal default default dim @@ -77,19 +78,19 @@ highlight article ":.*\\(embedded flash\\)$" magenta default highlight feedlist ".*(0/0))" black highlight feedlist ".* \\[(news|tech|normies|gaming|space|skate|music)\\]$" default default dim -highlight feedlist "^N.* \\[news\\]$" blue default bold highlight feedlist "^N.* \\[tech\\]$" cyan default bold highlight feedlist "^N.* \\[normies\\]$" red default bold +highlight feedlist "^N.* \\[news\\]$" green default bold highlight feedlist "^N.* \\[gaming\\]$" yellow default bold highlight feedlist "^N.* \\[space\\]$" blue default bold highlight feedlist "^N.* \\[skate\\]$" magenta default bold -highlight feedlist "^N.* \\[music\\]$" green default bold -highlight feedlist "^#news .*" blue default bold +highlight feedlist "^N.* \\[music\\]$" white default bold highlight feedlist "^#tech .*" cyan default bold highlight feedlist "^#normies .*" red default bold +highlight feedlist "^#news .*" green default bold highlight feedlist "^#gaming .*" yellow default bold highlight feedlist "^#space .*" blue default bold highlight feedlist "^#skate .*" magenta default bold -highlight feedlist "^#music .*" green default bold +highlight feedlist "^#music .*" white default bold highlight feedlist "^N" default default invis highlight feedlist "\\[(news|tech|normies|gaming|space|skate|music)\\]$" default default invis diff --git a/.local/bin/linkview b/.local/bin/linkview index b66022a..349d5c8 100755 --- a/.local/bin/linkview +++ b/.local/bin/linkview @@ -35,7 +35,7 @@ use constant PROG_LIST => "" . "play" . "\n" . "img" . "\n" . "dl" . "\n" . -"pod" . "\n" . +"audio" . "\n" . "pdf" . "\n" . "w3m" . "\n" . "browser" . "\n" . @@ -94,9 +94,6 @@ sub open_link } return; } - elsif ($a eq "mpv-term") { - exec(TERMINAL_PATH, '-e', MPV_PATH, '--audio-channels=stereo', $url); - } elsif ($a eq "dl") { if (is_yt($url) != 0) { $list = QUAL_LIST; @@ -266,7 +263,7 @@ sub open_link } return; } - elsif ($a eq "pod") { + elsif ($a eq "audio") { $pid = fork(); if (not $pid) { setsid(); @@ -278,7 +275,15 @@ sub open_link 'playing media', ' playing <b>' . $article_name . '</b>' ); - if (system(TERMINAL_PATH, "-e", MPV_PATH, $url) != 0) { + if (system( + TERMINAL_PATH, + "-e", + MPV_PATH, + "--vo=null", + "--video=no", + "--no-video", + $url + ) != 0) { exec( NOTIFYSEND_PATH, '-u', 'critical', diff --git a/.local/bin/newsboat-notif b/.local/bin/newsboat-notif index 6ff4596..cc2b385 100755 --- a/.local/bin/newsboat-notif +++ b/.local/bin/newsboat-notif @@ -1,3 +1,3 @@ #!/bin/sh -[ $1 -gt 0 ] && notify-send -u normal -t 4000 newsboat " <b>$@</b> new articles" +[ $1 -gt 0 ] && notify-send -u normal -t 6000 newsboat " <b>$@</b> new articles" |