From ed9633da3f876b6c9dae13434fb7ea30208a5b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Nikolai=20Var=C3=B8y?= <97204480+SimonVaroy@users.noreply.github.com> Date: Wed, 16 Aug 2023 14:39:40 +0000 Subject: [PATCH 1/2] added webp to image formats in linkhandler (#1347) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Simon Nikolai Varøy --- .local/bin/linkhandler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler index 84b2e28..d372d84 100755 --- a/.local/bin/linkhandler +++ b/.local/bin/linkhandler @@ -15,7 +15,7 @@ fi case "$url" in *mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtube.com/shorts*|*youtu.be*|*hooktube.com*|*bitchute.com*|*videos.lukesmith.xyz*|*odysee.com*) setsid -f mpv -quiet "$url" >/dev/null 2>&1 ;; - *png|*jpg|*jpe|*jpeg|*gif) + *png|*jpg|*jpe|*jpeg|*gif|*webp) curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && nsxiv -a "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;; *pdf|*cbz|*cbr) curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && zathura "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;; From f26e5678e626e604ed586fc6420b944dc023d3f2 Mon Sep 17 00:00:00 2001 From: appeasementPolitik <108810900+appeasementPolitik@users.noreply.github.com> Date: Fri, 18 Aug 2023 12:20:05 +0000 Subject: [PATCH 2/2] Fix arkenfox pacman hook complaining about root (#1351) The previous pull request on LARBS turned out not to work, so make sure `arkenfox-auto-update` runs `arkenfox-update` as the user of the firefox profile. Otherwise it complains that it's running as root and stops. The way of getting the username is safe, because it gets the username from the owner of the user.js file of that profile. --- .local/bin/arkenfox-auto-update | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.local/bin/arkenfox-auto-update b/.local/bin/arkenfox-auto-update index 05f4ca7..7664a4f 100755 --- a/.local/bin/arkenfox-auto-update +++ b/.local/bin/arkenfox-auto-update @@ -16,5 +16,8 @@ IFS=' # Update each found profile. for profile in $profiles; do - arkenfox-updater -p "${profile%%/user.js*}" -s + userjs=${profile%%/user.js*} + user=$(stat -c '%U' "$userjs") || continue + + su -l "$user" -c "arkenfox-updater -c -p $userjs -s" done