I think they said that because OP wrote “not once have I had a problem or anything break. What am I doing wrong?” making it sound like the problem is that they haven’t experienced anything break yet.
favorite bands · Lemon Demon; Tally Hall.
favorite artists · cavetown; Neil Cicierega; Bo Burnham; Jack Stauber; Will Wood; Toby Fox.
𝙸’𝚖 𝚑𝚊𝚕𝚏 𝚑𝚞𝚖𝚊𝚗 𝚊𝚗𝚍 𝚑𝚊𝚕𝚏 𝚖𝚊𝚌𝚑𝚒𝚗𝚎
mastodon · @callyral@furry.engineer
I think they said that because OP wrote “not once have I had a problem or anything break. What am I doing wrong?” making it sound like the problem is that they haven’t experienced anything break yet.
Vim is pretty easy for me because I’m used to it. Nano is very difficult to use for me because I’ve rarely used it.
wayland.windowManager.sway.config.keybindings = let
# ...
screenshot = with pkgs; writeShellScriptBin "screenshot.sh" ''
DATE=$(date +"%Y%m%d%H%M%S")
if [ "$1" = "full" ]; then
${grim}/bin/grim ~/Pictures/shot_$DATE.png
${libnotify}/bin/notify-send "saved full screenshot to shot_$DATE.png"
elif [ "$1" = "full-copy" ]; then
${grim}/bin/grim - | ${wl-clipboard}/bin/wl-copy -t image/png
${libnotify}/bin/notify-send "copied full screenshot"
elif [ "$1" = "sel" ]; then
${grim}/bin/grim -g "$(${slurp}/bin/slurp)" ~/Pictures/sel_$(date +"%Y%m%d%H%M%S").png
${libnotify}/bin/notify-send "saved selection to sel_$DATE.png"
elif [ "$1" = "sel-copy" ]; then
${grim}/bin/grim -g "$(${slurp}/bin/slurp)" - | ${wl-clipboard}/bin/wl-copy -t image/png
${libnotify}/bin/notify-send "copied screenshot"
else
printf "Invalid argument: '$1'\n"
fi
'';
in lib.mkOptionDefault { # ...
This is in my Home Manager configuration. I don’t think this is that bad, it’s just kinda messy. If you can’t tell, it’s a script for taking screenshots, embedded in my configuration.
If they care about terminal emulators, it’s unlikely their distro came with one preinstalled.