These are the nushell scripts that I use on a daily basis. Nushell is a very useful tool for developing quick workflow enhancers.
This set of scripts has layers of abstraction over libpw.
libpw is a nushell module imported with use libpw. This module has functions for fetching a pixiv access key, fetching bookmarks with the #wallpaper tag on pixiv, and randomly selecting one of those wallpapers. pixiv-wallpaper is a shell script that uses libpw to pick and set a wallpaper (using swww) from pixiv. Finally, auto-pw is a shell script which loops every 30 minutes to run pixiv-wallpaper.
To use pixiv-wallpaper you have to place a keys file in ~/.config/pixiv-wallpaper called pw-keys.json with "user_id" as an int and then "refresh_token" as a string.
for getting pixiv refresh token
create a proton prefix with a protonge version, install a game with a prefix, run a game with a prefix, and add a game to lutris.
run apps detached from shell (for use with nushell because there is no disown).
edit an image copied to the clipboard. (mostly for editing latest screenshot)
hacky way of disabling my monitor
ocr and qr code with grim and slurp.
make niri's color picker copy hex to the clipboard all natively in nushell using niri's json output so hopefully it never breaks.
open my capture card with low latency and no ui in mpv.
I use this instead of ghostty -e <command> so that if I ever switch terminals i dont have to update a bunch of configs
a post script for cwal to give it a matugen like config
toggles default output device for pipewire with wpctl and pw-dump