| Config updates and tweaks. - dotfiles - These are my dotfiles. There are many l… | |
| git clone git://jay.scot/dotfiles | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit c7458617ad8e8e9e5b6531d9f3903cd0a1a62b17 | |
| parent b0dd84a1940568cef9fab0d936762671c279f26b | |
| Author: Jay Scott <[email protected]> | |
| Date: Mon, 17 Nov 2025 13:06:17 +0000 | |
| Config updates and tweaks. | |
| Diffstat: | |
| M .gitignore | 3 +-- | |
| M ashrc | 8 ++++---- | |
| M bin/link-handler | 3 +-- | |
| M bin/ytd | 38 ++++-------------------------… | |
| M foot/foot.ini | 4 ++-- | |
| M lynx/bookmarks.html | 4 +--- | |
| M lynx/config | 19 ++++++++++++++++--- | |
| A lynx/opaque.lss | 48 +++++++++++++++++++++++++++++… | |
| M newsraft/config | 8 ++++++++ | |
| M newsraft/feeds | 4 +++- | |
| M qutebrowser/config.py | 11 +++++------ | |
| M sway/config | 2 +- | |
| 12 files changed, 94 insertions(+), 58 deletions(-) | |
| --- | |
| diff --git a/.gitignore b/.gitignore | |
| @@ -12,9 +12,8 @@ mpd/mpdstate | |
| # misc | |
| *.swp | |
| bin/radio | |
| -bin/reddittui | |
| bin/unrar | |
| -bin/jellyfin-tui | |
| +bin/rdrview | |
| # vim | |
| nvim/lazy-lock.json | |
| diff --git a/ashrc b/ashrc | |
| @@ -18,6 +18,10 @@ export BEMENU_OPTS="-l 10 -p '>>> ' --tb '#000000' --tf '#ff… | |
| export LYNX_CFG=$HOME/.config/lynx/config | |
| export LYNX_LSS=$HOME/.config/lynx/theme.lss | |
| +# rdrview | |
| +export RDRVIEW_BROWSER=lynx | |
| +export RDRVIEW_USER_AGENT=Lynx/2.9.2 | |
| + | |
| # pass | |
| export PASSWORD_STORE_DIR=$HOME/src/pass | |
| @@ -53,7 +57,3 @@ alias mpv="mpv --autofit=30% --really-quiet --no-terminal" | |
| alias von='doas resolvconf -u && doas wg-quick up fi-hel-wg-002' | |
| alias voff='doas wg-quick down fi-hel-wg-002' | |
| alias vcheck='curl https://am.i.mullvad.net/connected' | |
| - | |
| -# media | |
| -alias r='reddittui' | |
| -alias y='ytd' | |
| diff --git a/bin/link-handler b/bin/link-handler | |
| @@ -14,7 +14,7 @@ uri="$1" | |
| uri_lower="$(printf "%s" "$uri" | tr '[:upper:]' '[:lower:]')" | |
| case "$uri_lower" in | |
| - *.mkv | *.mp4 | *.webm | *youtube.com* | *odysee.com* | *v.redd.it*) | |
| + *.mkv | *.mp4 | *.webm | *youtube.com* | *odysee.com*) | |
| $player "$uri" & | |
| ;; | |
| *.gmi | gemini:*) | |
| @@ -31,7 +31,6 @@ case "$uri_lower" in | |
| ;; | |
| *.jpg | *.jpe | *.jpeg | *.png | *.gif | *.webp) | |
| $launcher "$images" "$uri" | |
| - wget -qO- $uri | $images - | |
| ;; | |
| *) | |
| $launcher "$BROWSER" "$uri" | |
| diff --git a/bin/ytd b/bin/ytd | |
| @@ -7,49 +7,18 @@ savepath="$HOME/media/youtube" | |
| cachedir="$HOME/.cache/yt_dl" | |
| yt="yt-dlp" | |
| baseurl="https://www.youtube.com/playlist?list=" | |
| +ody_url="https://odysee.com/" | |
| info() { | |
| printf "\033[35mYT ➤\033[36m %s\033[0m\n" "$1" | |
| } | |
| -# action="$1" | |
| -# | |
| -# for channel in \ | |
| -# steve1989mreinfo UU2I6Et1JkidnnbWgJFiMeHA \ | |
| -# simon_wilson UUQCrKxBj5Id79syQEsY2Qxg \ | |
| -# c90adventures UUVqpNG1R72i21jh-nAxEk4A \ | |
| -# indigo_traveller UUXulruMI7BHj3kGyosNa0jA \ | |
| -# pppeter UUnHEz9DZ6EAof1-DaQGD_Xw \ | |
| -# abroad_in_japan UUHL9bfHTxCMi-7vfxQ-AYtg \ | |
| -# serpentza UUl7mAGnY4jh4Ps8rhhh8XZg \ | |
| -# the_lazy_peon UUE-f0sqi-H7kuLT0YiW9rcA \ | |
| -# zav_alsop UUcjx6m03fZwtRBFn1Cf7kKQ \ | |
| -# steve_marsh UUBhQuxcHU3aydk_zTXcbdTg \ | |
| -# planes_trains_everything UUcKw8Eg0FfRvhIAnC0cPGAA \ | |
| -# we_hate_the_cold UULmltEyJ0zBsKnL8bWSdn3A \ | |
| -# astonishing_glasgow UUIDIqg7LhjLFCyD2awY_38g \ | |
| -# drain_cleaning_aus UU7sGXeJOixPBgJ3r5R55JYg \ | |
| -# mike_okay UUpp3cHR9TWVyXqL1AVw4XkA \ | |
| -# rhykker UURl31PWkfF0a3j3hiDRaCGA \ | |
| -# brodie_robertson UUld68syR8Wi-GY_n4CaoJGA \ | |
| -# distrotube UUVls1GmFKf6WlTraIb_IaJg \ | |
| -# linux_cast UUylGUf9BvQooEFjgdNudoQg \ | |
| -# max_roving UUOxpcQ7KtZc7fd0jhnWS0Sg \ | |
| -# misfit_minds UUEpHkpv4_CgZIEadjjOv4jA \ | |
| -# better_offline UUsdzuPs5NKvdsBkQnP7Af8w \ | |
| -# simon_doherty UU2smcaU7852QtVvJz48dCRw \ | |
| -# phil_carr UULva3lkHR6B5OO-eiVaPnDg \ | |
| -# andrea_borman UUJsinEiaDqEn8a-GcADVEVA \ | |
| -# veronica_explains UUMiyV_Ib77XLpzHPQH_q0qQ; do | |
| -# $action "$channel" "$2" | |
| -# done | |
| -# } | |
| -# | |
| main() { | |
| mkdir -p "${cachedir}" | |
| mkdir -p "${savepath}" | |
| - action="$1" | |
| + action="$1" | |
| + | |
| "$action" "steve1989mreinfo" "UU2I6Et1JkidnnbWgJFiMeHA" | |
| "$action" "simon_wilson" "UUQCrKxBj5Id79syQEsY2Qxg" | |
| "$action" "c90adventures" "UUVqpNG1R72i21jh-nAxEk4A" | |
| @@ -76,6 +45,7 @@ main() { | |
| "$action" "phil_carr" "UULva3lkHR6B5OO-eiVaPnDg" | |
| "$action" "andrea_borman" "UUJsinEiaDqEn8a-GcADVEVA" | |
| "$action" "veronica_explains" "UUMiyV_Ib77XLpzHPQH_q0qQ" | |
| + "$action" "chubby_trekka" "UU5YskHOZiTEzjdps94jFX1g" | |
| } | |
| get_video() { | |
| diff --git a/foot/foot.ini b/foot/foot.ini | |
| @@ -3,8 +3,8 @@ font=Hack:size=16 | |
| [url] | |
| launch=link-handler ${url} | |
| -[key-bindings] | |
| -show-urls-launch=Control+Shift+o | |
| +#[key-bindings] | |
| +#show-urls-launch=Control+Shift+o | |
| [colors] | |
| background=282828 | |
| diff --git a/lynx/bookmarks.html b/lynx/bookmarks.html | |
| @@ -23,7 +23,5 @@ | |
| <li><a href="gopher://floodgap.com/">Floodgap</a></li> | |
| <hr> | |
| <h2>Web</h2> | |
| -<li><a href="https://text.npr.org/">NPR</a></li> | |
| -<li><a href="https://neuters.de/">Reuters</a></li> | |
| -<li><a href="http://lite.cnn.com/">CNN</a></li> | |
| +<li><a href="https://brutalist.report/topic/tech?limit=5">Brutalist Tech</a></… | |
| </ol> | |
| diff --git a/lynx/config b/lynx/config | |
| @@ -8,13 +8,17 @@ CHARACTER_SET:utf-8 | |
| ASSUME_CHARSET:utf-8 | |
| # image handing | |
| -XLOADIMAGE_COMMAND:link-handler %s & | |
| +XLOADIMAGE_COMMAND:link-handler %s& | |
| NO_PAUSE:TRUE | |
| -MINIMAL_COMMENTS:TRUE | |
| DEFAULT_EDITOR:/usr/bin/nvim | |
| -DEFAULT_KEYPAD_MODE:LINKS_AND_FIELDS_ARE_NUMBERED | |
| +# show number for links | |
| +DEFAULT_KEYPAD_MODE:LINKS_ARE_NUMBERED | |
| + | |
| +# clean and read | |
| +# bind w exec rdrview -B lynx -A "Lynx/2.9.2" "%l" | |
| +EXTERNAL:http:rdrview -B lynx -A 'Lynx/2.9.2' '%s' | |
| # hide help menus | |
| DEFAULT_USER_MODE:ADVANCED | |
| @@ -27,8 +31,17 @@ SET_COOKIES:FALSE | |
| NO_REFERER_HEADER:TRUE | |
| REFERER_WITH_QUERY:DROP | |
| +# timeout | |
| +CONNECT_TIMEOUT:15 | |
| + | |
| # vi keys | |
| VI_KEYS_ALWAYS_ON:TRUE | |
| +# keymaps | |
| KEYMAP:q:ABORT | |
| KEYMAP:d:DOWNLOAD | |
| +KEYMAP:i:IMAGE_TOGGLE | |
| + | |
| +# fat finger prevention | |
| +KEYMAP:o:UNMAPPED | |
| +KEYMAP:H:UNMAPPED | |
| diff --git a/lynx/opaque.lss b/lynx/opaque.lss | |
| @@ -0,0 +1,48 @@ | |
| +# From: claudio santambrogio <[email protected]> | |
| + | |
| +em:bold:cyan | |
| +strong:bold:cyan | |
| +dt:bold:cyan | |
| +var:bold:cyan | |
| +samp:bold:cyan | |
| +b:bold:cyan | |
| +i:bold:cyan | |
| +alink:reverse:brightgreen:red | |
| +a:bold:green | |
| +img:dim:cyan:default | |
| +status:reverse:cyan:default | |
| +fig:normal:gray | |
| +caption:reverse:cyan | |
| +hr:normal:gray | |
| +blockquote:normal:cyan:default | |
| +address:normal:cyan | |
| +title:normal:cyan:default | |
| +tt:normal:white:default | |
| +h1:bold:cyan:default | |
| +label:normal:cyan | |
| +value:normal:cyan | |
| +high:bold:cyan | |
| +q:normal:cyan | |
| +small:dim:cyan | |
| +big:bold:cyan | |
| +sup:bold:cyan | |
| +sub:dim:cyan | |
| +lh:bold:cyan | |
| +code:normal:cyan | |
| +alert:bold:red | |
| +normal:normal:brown:black | |
| + | |
| +span.htmlsrc_comment:normal:white | |
| +span.htmlsrc_tag:normal:cyan | |
| +##the following makes no difference (except increasing the speed) since tag | |
| +##is already in cyan. | |
| +#span.htmlsrc_attrib:normal:cyan | |
| +#span.htmlsrc_attrval:normal:magenta | |
| +span.htmlsrc_abracket:normal:cyan | |
| +span.htmlsrc_entity:normal:green | |
| +##span.htmlsrc_href: | |
| +##span.htmlsrc_entire: | |
| +span.htmlsrc_badseq:normal:red | |
| +span.htmlsrc_badtag:normal:red | |
| +span.htmlsrc_badattr:normal:red | |
| +span.htmlsrc_sgmlspecial:normal:yellow | |
| diff --git a/newsraft/config b/newsraft/config | |
| @@ -5,6 +5,14 @@ feeds-menu-paramount-explore true | |
| # key bindings | |
| bind f exec "~/bin/link-handler %l" | |
| +bind w exec rdrview -B lynx -A "Lynx/2.9.2" "%l" | |
| # appearance | |
| status-placeholder | |
| +set menu-feed-sorting unread-desc | |
| + | |
| +# disable notifications | |
| +notification-command "" | |
| + | |
| +# filters | |
| +set item-rule LOWER(title) NOT LIKE '%trump%' AND LOWER(title) NOT LIKE '%bide… | |
| diff --git a/newsraft/feeds b/newsraft/feeds | |
| @@ -6,6 +6,7 @@ https://bearblog.dev/discover/feed/ "Bear Blogs" | |
| @ SOFTWARE | |
| https://www.alpinelinux.org/atom.xml "Alpine Linux" | |
| +https://codeberg.org/newsraft/newsraft.rss "Newsraft" | |
| @ MEDIA | |
| https://showrss.info/other/all.rss "TV Torrents" | |
| @@ -25,11 +26,11 @@ https://bfloeser.de/index.xml "Benedikt" | |
| https://chromic.org/index.xml "Chromic" | |
| https://dandelion-utilitarian.com/feed.xml "Dandelion-Utilitarian" | |
| https://wrongthink.link/posts/index.xml "Wrong Think" | |
| -https://stallman.org/rss/rss.xml "Stallman" | |
| https://www.cheeyeo.xyz/feed.xml "Chee Yeo" | |
| https://vkc.sh/feed/ "Veronica" | |
| https://chriswere.wales/rss.xml "Chris Were" | |
| https://writer13.neocities.org/rss.xml "Writer 13" | |
| +https://techrights.org/feed.xml "TechRights" | |
| @ GAMING | |
| https://www.gamingonlinux.com/article_rss.php "Gaming On Linux" | |
| @@ -42,6 +43,7 @@ https://odysee.com/$/rss/@davidbombal:0 "David Bombal" | |
| https://odysee.com/$/rss/@thelinuxcast:4 "The Linux Cast" | |
| https://odysee.com/$/rss/@GreatScott:a "Great Scott" | |
| https://odysee.com/$/rss/@rossmanngroup:a "Louis Rossmann" | |
| +https://odysee.com/$/rss/@gotbletu:b "Gotbletu" | |
| @ PODCASTS | |
| http://www.2600.com/oth-broadband.xml "2600" | |
| diff --git a/qutebrowser/config.py b/qutebrowser/config.py | |
| @@ -34,7 +34,6 @@ c.colors.hints.fg = "rgb(34, 34, 34)" #222222 | |
| # darkmode | |
| c.colors.webpage.darkmode.enabled = True | |
| -#c.colors.webpage.darkmode.algorithm = "lightness-hsl" | |
| c.colors.webpage.darkmode.algorithm = 'lightness-cielab' | |
| c.colors.webpage.darkmode.policy.images = 'never' | |
| config.set('colors.webpage.darkmode.enabled', False, 'file://*') | |
| @@ -45,7 +44,7 @@ c.fonts.default_size = '12pt' | |
| c.fonts.default_family = 'Hack' | |
| c.hints.uppercase = True | |
| c.scrolling.smooth = True | |
| -c.editor.command = ["alacritty", "vim '{}'"] | |
| +c.editor.command = ["foot", "vim '{}'"] | |
| c.auto_save.session = True | |
| c.zoom.default = "140%" | |
| @@ -53,10 +52,10 @@ c.zoom.default = "140%" | |
| c.content.blocking.enabled = True | |
| c.content.blocking.method = "both" | |
| c.content.blocking.adblock.lists = [ | |
| - "https://easylist.to/easylist/easyprivacy.txt", | |
| - "https://secure.fanboy.co.nz/fanboy-cookiemonster.txt", | |
| - "https://easylist.to/easylist/easylist.txt" | |
| - ] | |
| + "https://easylist.to/easylist/easyprivacy.txt", | |
| + "https://secure.fanboy.co.nz/fanboy-cookiemonster.txt", | |
| + "https://easylist.to/easylist/easylist.txt" | |
| +] | |
| # general privacy | |
| c.completion.web_history.max_items = 0 # no history | |
| diff --git a/sway/config b/sway/config | |
| @@ -2,7 +2,7 @@ set $mod Mod1 | |
| # colour theme | |
| set $colour #1c3c46 | |
| -set $menu bemenu-run -p '>>> ' --tb '#55a1ba' --tf '#ffffff' --hf '#444444' -c… | |
| +set $menu bemenu-run -p '>>> ' --tb '#55a1ba' --tf '#ffffff' --hf '#444444' -c… | |
| # autostart | |
| exec foot --server |