diff options
author | xyz <gky44px1999@gmail.com> | 2021-09-18 23:21:28 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-09-18 23:21:28 -0700 |
commit | 0f90ebe6f7327d9d3cd80d8c8093752493d10cf2 (patch) | |
tree | aa2f3f6689c4069aec9068bb437a5da217380467 | |
parent | 91537ecb5ed2e110f8aa9c7366cfef6caddf5dda (diff) |
newsboat, mpvsel, refactor
-rw-r--r-- | .config/newsboat/config | 12 | ||||
-rw-r--r-- | .config/newsboat/urls | 1 | ||||
-rw-r--r-- | .config/sxhkd/sxhkdrc | 6 | ||||
-rwxr-xr-x | .local/bin/mpvsel | 2 | ||||
-rwxr-xr-x | .local/bin/topa | 1 |
5 files changed, 17 insertions, 5 deletions
diff --git a/.config/newsboat/config b/.config/newsboat/config index a6c1d522..ed487462 100644 --- a/.config/newsboat/config +++ b/.config/newsboat/config @@ -1,5 +1,16 @@ auto-reload yes +bind-key h quit +bind-key j down +bind-key k up +bind-key l open +bind-key g home +bind-key G end +bind-key ^F pagedown +bind-key ^B pageup + +macro y set browser "echo %u | xsel -ib; mpvsel"; open-in-browser-noninteractively; set browser "$BROWSER" + # https://newsboat.org/releases/2.24/docs/newsboat.html#_killfiles # https://newsboat.org/releases/2.24/docs/newsboat.html#_filter_language @@ -12,3 +23,4 @@ ignore-article "https://bugs.archlinux.org/feed.php?feed_type=rss2&project=0" "t ignore-article "https://bugs.archlinux.org/feed.php?feed_type=rss2&topic=edit&project=0" "title !~ \"FS#(47508|71501|71453|70113|69492)|wildmidi|aur.*(rss|feed)|(rss|feed).*aur\"" ignore-article "https://bugs.archlinux.org/feed.php?feed_type=rss2&topic=clo&project=0" "title !~ \"FS#(47508|71501|71453|70113|69492)|wildmidi|aur.*(rss|feed)|(rss|feed).*aur\"" +# vim: ft=sh diff --git a/.config/newsboat/urls b/.config/newsboat/urls index 23a67881..b6d23734 100644 --- a/.config/newsboat/urls +++ b/.config/newsboat/urls @@ -23,4 +23,5 @@ http://keygenmusic.net/rss.php recreation https://www.youtube.com/feeds/videos.xml?channel_id=UCz4iS6GAEXoFB1gJEmQFcvw recreation https://www.youtube.com/feeds/videos.xml?channel_id=UCccannnI4dtZNufDdO0wXRQ recreation https://www.youtube.com/feeds/videos.xml?channel_id=UCrSDd0eAroiLGZ2DGkwOTCA recreation +https://www.youtube.com/feeds/videos.xml?channel_id=UCD6VugMZKRhSyzWEWA9W2fg recreation diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 0acbaa26..7079593b 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -1,5 +1,3 @@ -# vim: ft=sh - alt + Print ffmpeg -f x11grab -i "$DISPLAY" -vframes 1 "$XDG_PICTURES_DIR/screenshots/$(time.uuid)".png @@ -15,7 +13,7 @@ alt + XF86AudioMute kill -RTMIN "$(cat ~/.cache/pidofbar)" alt + y - mpvsel || notify-send "mpvsel failed" + mpvsel alt + w firefox @@ -28,3 +26,5 @@ XF86Audio{Prev,Play,Next} @Caps_Lock kill -RTMIN+3 "$(cat ~/.cache/pidofbar)" + +# vim: ft=sh diff --git a/.local/bin/mpvsel b/.local/bin/mpvsel index d93f8e7e..3ffd8e82 100755 --- a/.local/bin/mpvsel +++ b/.local/bin/mpvsel @@ -16,4 +16,4 @@ done vformat="[height<=?$height][fps<=?$fps][vcodec!^=?vp9][vcodec!^=?av01]" -mpv --ytdl-format="bestvideo$vformat+bestaudio/best$vformat" --ytdl-raw-options='write-sub=,sub-lang="en,en-US,en-GB,zh-CN,zh-Hans,zh-Hant,zh-HK,zh-SG,zh-TW"' --fs --speed=2 "$(xsel -ob)" +mpv --ytdl-format="bestvideo$vformat+bestaudio/best$vformat" --ytdl-raw-options='write-sub=,sub-lang="en,en-US,en-GB,zh-CN,zh-Hans,zh-Hant,zh-HK,zh-SG,zh-TW"' --fs --speed=2 "$(xsel -ob)" || notify-send "mpvsel failed" diff --git a/.local/bin/topa b/.local/bin/topa index a0b502e4..a69d917b 100755 --- a/.local/bin/topa +++ b/.local/bin/topa @@ -4,4 +4,3 @@ alacritty -e radeontop & alacritty -e sudo nethogs & alacritty -e sudo iotop & htop - |