aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-09-29 18:00:18 +0200
committerHimbeer <himbeer@disroot.org>2024-09-29 18:12:42 +0200
commit2ab23c8bfbd97b44d98cb20e13c7dbefeddca6f5 (patch)
tree0450f6142c0a77e1b7dd7540b7eef34bd3af52c6
parent8404a1f34c9a2e6aaaec2f6c0c2789bea37ec0b6 (diff)
Replace shotman with grim + slurp invocations
-rwxr-xr-xinstall.sh2
-rwxr-xr-xriverrc2
-rw-r--r--zshrc1
3 files changed, 3 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index f2aec8a..12f4969 100755
--- a/install.sh
+++ b/install.sh
@@ -82,7 +82,7 @@ if command_exists pacman; then
paru -Sy --noconfirm --needed \
river-bsp-layout \
- shotman \
+ grim \
slurp \
wired \
wlopm-git
diff --git a/riverrc b/riverrc
index 0e5de7f..e2793f1 100755
--- a/riverrc
+++ b/riverrc
@@ -20,7 +20,7 @@ riverctl map normal Super+Alt O spawn "pkill -u ${USER}"
riverctl map normal Super+Alt+Shift O spawn "pkill -9 -u ${USER}"
# screenshot
-riverctl map normal Super Print spawn "shotman --capture region"
+riverctl map normal Super Print spawn 'grim -g "$(slurp)" - | tee "/tmp/screenshot_$(date +%Y-%m-%d_%H_%M_%S).png" | wl-copy'
# firefox
riverctl map normal Super+Shift F spawn firefox
diff --git a/zshrc b/zshrc
index d0cd8b1..322e19b 100644
--- a/zshrc
+++ b/zshrc
@@ -11,6 +11,7 @@ pgrep -x ssh-agent > /dev/null || start_ssh_agent
# Start WM?
if [[ "${TTY}" == "/dev/tty1" ]]; then
export XDG_CURRENT_DESKTOP=river
+ export GRIM_DEFAULT_DIR="${HOME}/pictures/screenshots"
dbus-run-session river
exit 0