feat(xonsh): set up ssh-agent

This commit is contained in:
Artur Manuel 2025-01-16 00:37:14 +00:00
commit 660c9089d4
11 changed files with 82 additions and 65 deletions

View file

@ -11,7 +11,7 @@ riverctl spawn "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG
riverctl map normal "$mod"+Shift Return spawn kitty
riverctl map normal "$mod" P spawn "rofi -show drun"
riverctl map normal "$mod" S spawn "$HOME/.config/river/scripts/screenshot.sh savecopy"
riverctl map normal "$mod" S spawn "flameshot gui"
riverctl map normal "$mod" Q close
riverctl map normal "$mod"+Shift E exit
riverctl map normal "$mod"+Shift C spawn "$HOME/.config/river/init"

View file

@ -1,38 +0,0 @@
#!/usr/bin/env bash
# shellcheck disable=SC1091
source "$HOME/.config/user-dirs.dirs"
case "$1" in
"copy")
GEOM="$(slurp)"
if [ "$GEOM" == "" ]; then
grim - | wl-copy
else
grim -g "$GEOM" - | wl-copy
fi
echo "Screenshot copied."
;;
"save")
GEOM="$(slurp)"
if [ "$GEOM" == "" ]; then
grim "$OUT"
else
grim -g "$GEOM" "$OUT"
fi
echo "Screenshot saved. $OUT"
;;
"savecopy")
GEOM="$(slurp)"
if [ "$GEOM" == "" ]; then
grim - | wl-copy
else
grim -g "$GEOM" - | wl-copy
fi
wl-copy <"$OUT"
echo "Screenshot saved and copied. $OUT"
;;
*)
echo "Not done!"
;;
esac