yukiwiki

Yuki's knowledge base and other stuff

User Tools

Site Tools


snippets

Useful snippets to put in your ~/.local/bin

man

Too lazy to download man-db? Yeah just let your web browser do it for you :)

man
#!/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

remotehyprctl

Useful when you want to launch stuff on your Hyprland via ssh.

remotehyprctl
#!/bin/sh
HYPRLAND_INSTANCE_SIGNATURE=$(hyprctl instances -j | jq -r ".[0].instance") WAYLAND_DISPLAY=$(hyprctl instances -j | jq -r ".[0].wl_socket") hyprctl $@
snippets.txt · Last modified: 2025/03/11 21:16 by Yuki