From c6a72fb6a2958c5128c28a5f01ff885c1808a2b5 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Mon, 22 Jan 2024 20:59:50 -0500 Subject: Add screenshot functionality --- fedora.sh | 2 +- river/init | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/fedora.sh b/fedora.sh index 64a09f0..a526435 100755 --- a/fedora.sh +++ b/fedora.sh @@ -21,5 +21,5 @@ fi export PATH="$zigdir:$PATH" cd - ./bldRiver.sh -sudo yum -y install foot bemenu waybar swaylock swaybg +sudo yum -y install foot bemenu waybar swaylock swaybg grim slurp ./bldSession.sh diff --git a/river/init b/river/init index 618453d..3d6c905 100755 --- a/river/init +++ b/river/init @@ -168,6 +168,9 @@ riverctl map normal Super D spawn bemenu-run riverctl map normal Super B spawn 'pkill -SIGUSR1 waybar' riverctl focus-follows-cursor normal +riverctl map normal Super+Shift P spawn 'grim /tmp/screenshot_$(date +S).png' +riverctl map normal Super+Shift+Control P spawn 'grim -g "$(slurp)" /tmp/screenshot_$(date +%S).png' + riverctl map normal Super P spawn dpw-menu riverctl map normal Super+Control P spawn 'dpw-menu -o' riverctl map normal Super O spawn 'dpw-menu --type' -- cgit v1.2.3