Minor changes

This commit is contained in:
Dmitry Zakharchenko 2022-11-14 22:34:18 +02:00
parent 402f1937bf
commit 87b909b67b
10 changed files with 22 additions and 26 deletions

View File

@ -11,9 +11,8 @@ set document.history.global.enable = 0
set document.browse.links.active_link.colors.background = "1a1a1a"
set document.browse.links.active_link.colors.text = "ffcc66"
set document.browse.links.active_link.enable_color = 1
set document.browse.links.active_link.enable_color = 0
set document.browse.links.active_link.invert = 0
set document.browse.links.active_link.bold = 1
set document.browse.scrolling.vertical_step = 1
set terminal.foot.block_cursor = 1
@ -30,8 +29,6 @@ bind "main" "j" = "scroll-down"
bind "main" "k" = "scroll-up"
bind "main" "h" = "history-move-back"
bind "main" "l" = "history-move-forward"
bind "main" "J" = "move-link-down"
bind "main" "K" = "move-link-up"
bind "main" "g" = "move-document-start"
bind "main" "G" = "move-document-end"
bind "main" "f" = "toggle-numbered-links"

View File

@ -1,5 +1,4 @@
[Default Applications]
text/x-shellscript=text.desktop;
x-scheme-handler/magnet=torrent.desktop;
application/x-bittorrent=torrent.desktop;

View File

@ -2,6 +2,8 @@
= add volume 5
A cycle audio
S cycle sub
H add chapter -1
L add chapter 1
h seek -5
j seek -60
k seek 60

View File

@ -1,6 +1,9 @@
alang=eng
audio-file-auto=fuzzy
audio-file-auto=all
hwdec=auto-safe
slang=eng
sub-auto=fuzzy
sub-ass-override=no
sub-auto=all
vo=gpu
ytdl-format="bestvideo[height<=?720]+bestaudio/best"
gpu-context=wayland

View File

@ -41,7 +41,6 @@ bind-key b bookmark
bind-key SPACE macro-prefix
macro y set browser "echo %u | wl-copy"; open-in-browser; set browser linkhandler
macro d set browser "linkhandler %u"; open-in-browser-and-mark-read; set browser linkhandler
macro c set browser "pipe-viewer --no-interactive --comments=%u | less"; open-in-browser; set browser linkhandler
macro i set browser "pipe-viewer --no-interactive --info=%u | less"; open-in-browser; set browser linkhandler

View File

@ -11,7 +11,7 @@ https://youtube.com/feeds/videos.xml?channel_id=UC1s1OsWNYDFgbROPV-q5arg "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCsnGwSIHyoYN0kiINAGUKxg "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UC9-y-6csu5WGm29I7JiwpnA "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCkf4VIqu3Acnfzuk3kRIFwA "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCUmLRMERmJrmUtgnbFfknAg "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCgXdyySqz7qH-lDiVG-7KwA "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UC3cntnJoRiiLaZ7dZwTTQ8A "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCW-HBBzxn7URXPHzWiZTq_A "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCFzGyNKXPAglNq28qWYTDFA "(ytb)"
@ -39,7 +39,6 @@ https://youtube.com/feeds/videos.xml?channel_id=UC3ltptWa0xfrDweghW94Acg "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCOujgO5S-Zn8DqpFrvzeIqA "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCfUaZ8Ra7m7BqUEACv2jySw "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UC7YOGHUfC1Tb6E4pudI9STA "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCtMVHI3AJD4Qk4hcbZnI9ZQ "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCEMSM2w0EvLcOSIFrv3kNHQ "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCIDPOmbX9yLVFUw2ELI73HA "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UC4YM-PGOKORUeSCbOjBjR3w "(ytb)"
@ -59,6 +58,7 @@ https://youtube.com/feeds/videos.xml?channel_id=UCJLorkdDK41pOQyoVQbFqJQ "(ytb)"
"MOV" "(---)"
https://thepiratebay10.org/rss/top100/207 "(www)" "~HD Movies (top 100)"
https://youtube.com/feeds/videos.xml?channel_id=UCSc16oMxxlcJSb9SXkjwMjA "(ytb)" "~YMS"
https://youtube.com/feeds/videos.xml?channel_id=UCbaKd4mhqd1QvfDp5EaUlHw "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCOaqC7XshSJO7PWwvjDJ1nQ "(ytb)"
@ -88,8 +88,6 @@ https://repology.org/maintainer/dmitz%40disroot.org/feed-for-repo/alpine_edge/at
https://github.com/djpohly/dwl/commits/main.atom "(ghb)"
https://github.com/riverwm/river/commits/master.atom "(ghb)"
https://github.com/lukesmithxyz/voidrice/commits/master.atom "(ghb)"
https://github.com/LukeSmithxyz/dwmblocks/commits/master.atom "(ghb)"
https://github.com/LukeSmithxyz/dwm/commits/master.atom "(ghb)"
https://github.com/LukeSmithxyz/st/commits/master.atom "(ghb)"
https://github.com/qutebrowser/qutebrowser/releases.atom "(ghb)"
https://github.com/newsboat/newsboat/releases.atom "(ghb)"

View File

@ -1,8 +1,3 @@
# Binds
config.bind('pd', 'spawn linkhandler {url}')
config.bind('yd', 'hint links spawn linkhandler {hint-url}')
# Search engines
c.url.searchengines = {'DEFAULT': 'https://librex.beparanoid.de/search.php?q={}',
'y': 'https://yewtu.be/search?q={}',
'gh': 'https://github.com/search?q={}',
@ -23,7 +18,6 @@ c.tabs.background = True
c.url.start_pages = ['about:blank']
c.url.default_page = 'about:blank'
# Colors
c.colors.completion.odd.bg = "#1a1a1a"
c.colors.completion.even.bg = "#1a1a1a"
c.colors.completion.category.bg = "#1a1a1a"
@ -44,7 +38,6 @@ c.colors.messages.warning.fg = c.colors.statusbar.normal.fg
c.colors.prompts.fg = c.colors.statusbar.normal.fg
c.colors.webpage.preferred_color_scheme = 'dark'
# UI
c.fonts.default_family = "monospace"
c.fonts.default_size = "8pt"
c.tabs.padding = {"bottom": 1, "left": 5, "right": 5, "top": 1}
@ -53,4 +46,7 @@ c.completion.cmd_history_max_items = 10
c.completion.height = "30%"
c.completion.scrollbar.width = 12
config.bind('pd', 'spawn linkhandler {url}')
config.bind('yd', 'hint links spawn linkhandler {hint-url}')
config.load_autoconfig(False)

View File

@ -1,4 +1,4 @@
t web.telegram.org/?legacy=1#
t web.telegram.org
s steamcommunity.com
m miped.ru/f
y yewtu.be

View File

@ -3,11 +3,11 @@
feed="${1:-$(printf "%s" | tofi --prompt-text 'Paste URL or file path')}"
case "$feed" in
*mkv|*webm|*mp4|*youtube.com*|*youtu.be*|*yewtu.be*|*videos.lukesmith.xyz*|*spacepub.space*|*twitch.tv*)
*mkv|*webm|*mp4|*watch?v*|*youtu.be*|*videos.lukesmith.xyz*|*spacepub.space*|*twitch.tv*)
case "$(printf "yt-dlp\\nyt-dlp (audio)\\nyt-dlp (music)\\nmpv\\nmpv (audio)" | tofi --prompt-text "Handle media with?")" in
"yt-dlp") qndl "$feed" >/dev/null 2>&1 ;;
"yt-dlp (audio)") qndl "$feed" 'yt-dlp -f bestaudio/best' >/dev/null 2>&1 ;;
"yt-dlp (music)") qndl "$feed" 'yt-dlp -f bestaudio/best -x --no-playlist --audio-format mp3 -o $XDG_MUSIC_DIR/%(title)s.%(ext)s' >/dev/null 2>&1 ;;
"yt-dlp (audio)") qndl -a "$feed" >/dev/null 2>&1 ;;
"yt-dlp (music)") qndl -m "$feed" >/dev/null 2>&1 ;;
"mpv") setsid -f "$TERMINAL" -e mpv --quiet "$feed" >/dev/null 2>&1 ;;
"mpv (audio)") setsid -f "$TERMINAL" -e mpv --quiet --no-video "$feed" >/dev/null 2>&1 ;;
esac ;;
@ -16,9 +16,11 @@ case "$feed" in
*pdf|*cbz|*cbr)
curl -sL "$feed" > "/tmp/$(echo "$feed" | sed "s/.*\///;s/%20/ /g")" && setsid -f zathura "/tmp/$(echo "$feed" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 ;;
*go.dev*|*lukesmith.xyz*|*drewdevault.com*)
setsid -f foot elinks "$feed" ;;
setsid -f "$TERMINAL" -e elinks "$feed" >/dev/null 2>&1 ;;
*ogg|*mp3|*wav)
qndl -a "$feed" >/dev/null 2>&1 ;;
magnet*)
torwrap add "$feed" ;;
torwrap -a "$feed" >/dev/null 2>&1 ;;
*)
setsid -f "$BROWSER" "$feed" >/dev/null 2>&1
esac

View File

@ -1,4 +1,4 @@
[Desktop Entry]
Type=Application
Name=Torrent
Exec=/usr/bin/env torwrap add %U
Exec=/usr/bin/env torwrap -a %U