various changes

* Stop ignoring pdflatex, I rarely use it anyways
* Add gk and gj to iamb, and put invites first
* Search with searx also in tempbrowsers
* teddit is down, don't redirect to it
* scale backgrounds better
* put slight delay in pipewire to avoid races?
* better unsubscribing from gitlab
This commit is contained in:
Felix Van der Jeugt 2025-09-09 17:44:30 +02:00 committed by Felix Van der Jeugt
parent 3c344366cb
commit a1b46218f5
No known key found for this signature in database
GPG key ID: 58B209295023754D
9 changed files with 35 additions and 22 deletions

View file

@ -24,14 +24,5 @@ stack.yaml.lock
Cargo.lock
target/
# LaTeX
*.log
*.aux
*.toc
*.pdf
*.bbl
*.blg
*.out
# Python
__pycache__

View file

@ -20,7 +20,7 @@ user_gutter_width = 15
username_display = "displayname"
[settings.sort]
chats = ["recent"]
chats = ["invite", "recent"]
rooms = ["favorite", "lowpriority", "unread", "name"]
members = ["power", "id"]
@ -30,12 +30,13 @@ style = "config"
[[layout.tabs]]
window = "iamb://chats"
[macros.insert]
"jj" = "<Esc>"
[macros."normal|visual"]
"V" = "<C-W>m"
[dirs]
logs = "/home/ninewise/.local/share/iamb/logs/"
downloads = "/tmp/"
[macros.normal]
"gk" = "<C-O>k<Enter>"
"gj" = "<C-O>j<Enter>"

View file

@ -22,6 +22,7 @@ c.new_instance_open_target = "tab-silent"
c.session.default_name = "default"
c.tabs.background = True
c.tabs.last_close = "close"
c.tabs.new_position.stacking = False
c.tabs.show = "multiple"
c.tabs.favicons.show = "pinned"
c.url.default_page = "qute://bookmarks"
@ -46,6 +47,7 @@ c.url.searchengines = { "startpage": "https://startpage.com/do/search?query={}"
, "trantor": "http://kx5thpx2olielkihfyo4jgjqfb7zx7wxr3sd4xzt26ochei4m6f7tayd.onion/search/?q={}"
, "duckduckgonion": "https://duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion/html?q={}"
, "mellowchan": "https://srx.mellowchan.xyz/?q={}"
, "searx": "https://searx.be/?q={}"
, "DEFAULT": "https://srx.mellowchan.xyz/?q={}"
}
@ -216,8 +218,7 @@ for pattern in allowed:
config.set('content.cookies.accept', "no-3rdparty", pattern)
# Some redirects
redirects = { 'www.reddit.com': 'www.teddit.net'
, 'www.youtube.com': 'c7hqkpkpemu6e7emz5b4vyz7idjgdvgaaa3dyimmeojqbgpea3xqjoid.onion'
redirects = { 'www.youtube.com': 'c7hqkpkpemu6e7emz5b4vyz7idjgdvgaaa3dyimmeojqbgpea3xqjoid.onion'
, 'www.youtube.be': 'c7hqkpkpemu6e7emz5b4vyz7idjgdvgaaa3dyimmeojqbgpea3xqjoid.onion'
, 'youtu.be': 'c7hqkpkpemu6e7emz5b4vyz7idjgdvgaaa3dyimmeojqbgpea3xqjoid.onion'
, 'twitter.com': '3nzoldnxplag42gqjs23xvghtzf6t6yzssrtytnntc6ppc7xxuoneoad.onion'

View file

@ -39,9 +39,9 @@ riverctl default-layout rivertile
riverctl rule-add -title skmenu float
riverctl rule-add ssd
riverctl spawn 'dbus-run-session pipewire'
riverctl spawn 'sleep 3 && dbus-run-session pipewire'
riverctl spawn 'swayidle timeout 300 waylock timeout 300 "wlopm --off \*" resume "wlopm --on \*"'
riverctl spawn "wbg '$(find -L /data/pictures/background-source/ -type f | sort -R | head -1)'"
riverctl spawn "wbg -s '$(find -L /data/pictures/background-source/ -type f | sort -R | head -1)'"
riverctl spawn 'wlsunset -l 50.85 -L 4.35'
rivertile -view-padding 0 -outer-padding 0 -main-ratio 0.7 &

View file

@ -1 +1 @@
/home/ninewise/.local/share/pipx/venvs/clirail/bin/clirail
/home/ninewise/.local/pipx/venvs/clirail/bin/clirail

View file

@ -52,6 +52,7 @@ emoji
spotify-title
youtube-dl
audio-dl
dictionary
HERE
)"
@ -100,4 +101,7 @@ case "$choice" in
'spotify-title')
inject "$(curl -L "$(clip)" | sed -n 's@.*<title>\(.*\) - song \(and lyrics \)\?by \(.*\) | Spotify</title>.*@\1 _van_ \3@p')"
;;
'dictionary')
inject "$(pick < /usr/share/dict/british-english)"
;;
esac

View file

@ -2,7 +2,19 @@
if [ -z "$*" ]; then
exec munsubscribe .
else
for mail in $(mseq "$@"); do
if [ -n "$(mshow -qh X-GitLab-Issue-IID)" ]; then
# if it's a gitlab mail, unsubscribe using glab
glab issue unsubscribe "$(mshow "$mail" | sed -n 's/View it on GitLab: \(.*\)/\1/p')"
elif [ -n "$(mshow -qh X-GitLab-MergeRequest-IID)" ]; then
# if it's a gitlab mail, unsubscribe using glab
glab mr unsubscribe "$(mshow "$mail" | sed -n 's/View it on GitLab: \(.*\)/\1/p')"
else
# assume it's a list email
for url in $(mshow -qh list-unsubscribe "$@" | xurls -m http); do
curl -L -w '%{http_code}' -s -o /dev/null "$url"
done
fi
done
fi

View file

@ -1,2 +1,6 @@
#!/bin/sh
qutebrowser --temp-basedir "$@"
/usr/bin/qutebrowser --temp-basedir "$@" \
--set url.searchengines '{"DEFAULT": "https://srx.mellowchan.xyz?q={}"}' \
--set url.default_page 'https://srx.mellowchan.xyz' \
--set url.start_pages 'https://srx.mellowchan.xyz' \
--set downloads.location.directory '/tmp'

View file

@ -15,7 +15,7 @@ export CABAL_HOME="/data/homes/cabal"
export STACK_ROOT="/data/homes/stack"
export CARGO_HOME="/data/homes/cargo"
export RUSTUP_HOME="/data/homes/rustup"
export JAVA_HOME="/usr/lib/jvm/openjdk17/"
export JAVA_HOME="/usr/lib/jvm/openjdk21/"
export TEX_BIN="/opt/texlive/2019/bin/x86_64-linux/"
export PATH="$HOME/.local/bin:$CABAL_HOME/bin:$CARGO_HOME/bin:$JAVA_HOME/bin:$TEX_BIN:$PATH"