Too lazy to download man-db
? Yeah just let your web browser do it for you :)
#!/bin/sh if [ $# -ge 2 ] then cat=".$1" shift fi if [ $# -ge 1 ] then xdg-open "https://man.archlinux.org/search?q=$@$cat&go=Go" else echo "man what?" fi
Useful when you want to launch stuff on your Hyprland via ssh.
#!/bin/sh HYPRLAND_INSTANCE_SIGNATURE=$(hyprctl instances -j | jq -r ".[0].instance") WAYLAND_DISPLAY=$(hyprctl instances -j | jq -r ".[0].wl_socket") hyprctl $@
Small tool to take your paru cache and turn it into a repo, useful if you manage a lot of Arch installs.
#!/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 {} \;