dots: minor cleanup

This commit is contained in:
Dmitry Zakharchenko 2022-10-14 16:49:50 +03:00
parent b895700938
commit 35ad6b40b7
10 changed files with 19 additions and 95 deletions

View file

@ -70,7 +70,3 @@ highlight article "(^Date:*)" magenta default
highlight article "(^Link:)" blue default
highlight article "https?://[^ ]+" blue default
highlight article "\\[[0-9]+\\]" magenta default
# Filters
ignore-mode "display"
ignore-article "http://feed.rutracker.cc/atom/f/1950.atom" "title !# \"Sub\""

View file

@ -1,16 +1,19 @@
"TECH" "(---)"
https://go.dev/blog/feed.atom "(www)"
https://drewdevault.com/blog/index.xml "(www)" "~Drew DeVault"
http://suckless.org/atom.xml "(www)" "~skls"
https://lobste.rs/top/rss "(www)" "~Lobsters"
https://www.youtube.com/feeds/videos.xml?channel_id=UCl2mFZoRqjw_ELax4Yisf6w "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UC3kAbMcYr-JEMSb2xX4OdpA "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCJetJ7nDNLlEzDLXv7KIo0w "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UC1s1OsWNYDFgbROPV-q5arg "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCsnGwSIHyoYN0kiINAGUKxg "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UC9-y-6csu5WGm29I7JiwpnA "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCkf4VIqu3Acnfzuk3kRIFwA "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UC8ENHE5xdFSwx71u3fDH5Xw "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCUmLRMERmJrmUtgnbFfknAg "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UC3cntnJoRiiLaZ7dZwTTQ8A "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCW-HBBzxn7URXPHzWiZTq_A "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCFzGyNKXPAglNq28qWYTDFA "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCdGUr1XKTND-CcGhq_b4eKw "(ytb")
"HL" "(---)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCjulQNQQJmpYzI-BD1-s03w "(ytb)"
@ -22,17 +25,20 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UCiUkcNS6W0n8QdosuZASduQ "(y
https://lukesmith.xyz/rss.xml "(www)"
https://notrelated.xyz/rss "(www)" "~Not Related"
https://lukesmith.xyz/peertube "(prt)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCq6VFHwMzcMXbuKyG7SQYIg "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCxFGffCAi7wC-nl1jA13x1A "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UC3ltptWa0xfrDweghW94Acg "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCOujgO5S-Zn8DqpFrvzeIqA "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCfUaZ8Ra7m7BqUEACv2jySw "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UC7YOGHUfC1Tb6E4pudI9STA "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCtMVHI3AJD4Qk4hcbZnI9ZQ "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCEMSM2w0EvLcOSIFrv3kNHQ "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCIDPOmbX9yLVFUw2ELI73HA "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UC4YM-PGOKORUeSCbOjBjR3w "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCIwBjM0QCMHIQIAc53eOXZg "(ytb)"
"SOC" "(---)"
https://kamilkazani.substack.com/feed "(www)"
https://www.youtube.com/feeds/videos.xml?channel_id=UC9RM-iSvTu1uPJb8X5yp3EQ "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UChvithwOECK5g_19TjldMKw "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCR1D15p_vdP3HkrH8wgjQRw "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCjjElKokwu5KCN2PeHzE9Eg "(ytb)" "~Furydrops"
https://www.youtube.com/feeds/videos.xml?channel_id=UCbWcXB0PoqOsAvAdfzWMf0w "(ytb)"
@ -43,13 +49,13 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UC8GoduxspzU7MpKYdbMyI0A "(y
https://www.youtube.com/feeds/videos.xml?channel_id=UCJLorkdDK41pOQyoVQbFqJQ "(ytb)"
"MOV" "(---)"
https://thepiratebay10.org/rss/top100/207 "(prb)" "~Movies (top 100)"
http://feed.rutracker.cc/atom/f/1950.atom "(rtk)"
https://thepiratebay10.org/rss/top100/207 "(www)" "~HD Movies (top 100)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCbaKd4mhqd1QvfDp5EaUlHw "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCoxVyr6d4OBKEY1dHhtEkRg "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCOaqC7XshSJO7PWwvjDJ1nQ "(ytb)"
"HIS" "(---)"
https://www.youtube.com/feeds/videos.xml?channel_id=UC5Dw9TFdbPJoTDMSiJdIQTA "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCOuWeOkMrq84u5LY6apWQ8Q "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UC2CmP3hssH0MAqV18UZs0Xw "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCGzfpg1YiBIlgcODQI4lDvQ "(ytb)"

View file

@ -1,6 +1,8 @@
#!/usr/bin/perl
# CLI Pipe Viewer 0.3.1 - configuration file
# CLI Pipe Viewer 0.4.0 - configuration file
use utf8;
our $CONFIG = {
api_host => "auto",
@ -107,6 +109,8 @@ our $CONFIG = {
watch_history => 1,
watch_history_file => "$ENV{HOME}/.cache/pipe-viewer/watched",
wget_cmd => "wget",
youtube_channel_url => "https://www.youtube.com/channel/%s",
youtube_playlist_url => "https://www.youtube.com/playlist?list=%s",
youtube_video_url => "https://www.youtube.com/watch?v=%s",
ytdl => 1,
ytdl_cmd => "yt-dlp",

View file

@ -2,11 +2,6 @@
config.bind('pd', 'spawn linkhandler {url}')
config.bind('yd', 'hint links spawn linkhandler {hint-url}')
# Cloudflare workaround
old_chrome_ua = 'Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {qt_key}/{qt_version} {upstream_browser_key}/67.0.1 Safari/{webkit_version}'
config.set('content.headers.user_agent', old_chrome_ua, 'market.dota2.net')
config.set('content.headers.user_agent', old_chrome_ua, '4chan.org')
# Search engines
c.url.searchengines = {'DEFAULT': 'https://librex.beparanoid.de/search.php?q={}',
'y': 'https://yewtu.be/search?q={}',

View file

@ -1,6 +1,5 @@
t web.telegram.org/k/
t web.telegram.org/?legacy=1#
s steamcommunity.com
w ru.wikipedia.org
m miped.ru/f
y yewtu.be
gh github.com
@ -8,8 +7,5 @@ ap gitlab.alpinelinux.org/alpine/aports
cs teachyourselfcs.com
ms missing.csail.mit.edu
md reelgood.com/movies
ep englishpage.com
dm market.dota2.net/sell
gbe gobyexample.com
lrn learnxinyminutes.com
rtk rutracker.org/forum/index.php

View file

@ -1,25 +1,19 @@
horizontal = true
anchor = top
width = 100%
outline-width = 0
border-width = 0
min-input-width = 120
height = 18
result-spacing = 20
background-color = #222222
text-color = #bbbbbb
selection-background = #005577
selection-color = #f2f0ec
font = Monospace
font-size = 8
prompt-text = ">"
prompt-padding = 10
padding-top = 2
padding-bottom = 2
padding-left = 5

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 MiB

BIN
.config/wall.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 MiB

View file

@ -1,67 +0,0 @@
#!/bin/sh
err() { echo "Usage:
tag [OPTIONS] file
Options:
-a: artist/author
-t: song/chapter title
-A: album/book title
-n: track/chapter number
-N: total number of tracks/chapters
-d: year of publication
-g: genre
-c: comment
You will be prompted for title, artist, album and track if not given." && exit 1 ;}
while getopts "a:t:A:n:N:d:g:c:f:" o; do case "${o}" in
a) artist="${OPTARG}" ;;
t) title="${OPTARG}" ;;
A) album="${OPTARG}" ;;
n) track="${OPTARG}" ;;
N) total="${OPTARG}" ;;
d) date="${OPTARG}" ;;
g) genre="${OPTARG}" ;;
c) comment="${OPTARG}" ;;
f) file="${OPTARG}" ;;
*) printf "Invalid option: -%s\\n" "$OPTARG" && err ;;
esac done
shift $((OPTIND - 1))
file="$1"
[ ! -f "$file" ] && echo "Provide file to tag." && err
[ -z "$title" ] && echo "Enter a title." && read -r title
[ -z "$artist" ] && echo "Enter an artist." && read -r artist
[ -z "$album" ] && echo "Enter an album." && read -r album
[ -z "$track" ] && echo "Enter a track number." && read -r track
case "$file" in
*.ogg) echo "Title=$title
Artist=$artist
Album=$album
Track=$track
Total=$total
Date=$date
Genre=$genre
Comment=$comment" | vorbiscomment -w "$file" ;;
*.opus) echo "Title=$title
Artist=$artist
Album=$album
Track=$track
Total=$total
Date=$date
Genre=$genre
Comment=$comment" | opustags -i -S "$file" ;;
*.mp3) eyeD3 -Q --remove-all -a "$artist" -A "$album" -t "$title" -n "$track" -N "$total" -Y "$date" "$file" ;;
*.flac) echo "TITLE=$title
ARTIST=$artist
ALBUM=$album
TRACKNUMBER=$track
TOTALTRACKS=$total
DATE=$date
GENRE=$genre
DESCRIPTION=$comment" | metaflac --remove-all-tags --import-tags-from=- "$file" ;;
*) echo "File type not implemented yet." ;;
esac

View file

@ -17,5 +17,5 @@ case "$1" in
add)
check ; sleep 1 && transmission-remote -a "$2" && notify-send "Torrent added." ;;
*)
notify-send "$TR_TORRENT_NAME downloaded." && sleep 60 && transmission-remote -t ${TR_TORRENT_ID} -r
notify-send "$TR_TORRENT_NAME downloaded." && sleep 60 && transmission-remote -t ${TR_TORRENT_ID} -r
esac