neige d'aoust

knowledge, art, and other stuff

User Tools

Site Tools


snippets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
snippets [2025/03/10 03:16] – created Yukisnippets [2025/06/23 18:27] (current) – [update-repo] Yuki
Line 18: Line 18:
         echo "man what?"         echo "man what?"
 fi fi
 +</code>
 +
 +===== remotehyprctl =====
 +
 +Useful when you want to launch stuff on your Hyprland via ssh.
 +
 +<code bash remotehyprctl>
 +#!/bin/sh
 +HYPRLAND_INSTANCE_SIGNATURE=$(hyprctl instances -j | jq -r ".[0].instance") WAYLAND_DISPLAY=$(hyprctl instances -j | jq -r ".[0].wl_socket") hyprctl $@
 +</code>
 +
 +===== update-repo =====
 +
 +Small tool to take your paru cache and turn it into a repo, useful if you manage a lot of Arch installs.
 +
 +<code bash update-repo>
 +#!/bin/sh
 +pkgs=/home/yuki/.cache/paru/clone
 +repodir=/srv/http/html/pkg/
 +suffix="*.pkg.tar.zst*"
 +repo=yuki
 +
 +rm $repodir/$suffix
 +find $pkgs -name "$suffix" -exec ln -s {} $repodir \;
 +cd $repodir
 +find . -name "$suffix" -exec repo-add -np $repo.db.tar.gz {} \;
 </code> </code>
snippets.1741590988.txt.gz · Last modified: by Yuki