wayland: add check for sway service and update screenshot

This commit is contained in:
Érico Rolim 2020-05-15 21:59:03 -03:00
parent 042e69b43d
commit 8e54c85904
2 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
SAVEPATH="$(xdg-user-dir PICTURES)/Screenshots/$(date +'%Y-%m-%d-%H%M%S_grim.png')"
mkdir -p "$(xdg-user-dir PICTURES)/Screenshots"
SAVEPATH="$HOME/Pictures/Screenshots/$(date +'%Y-%m-%d-%H%M%S_grim.png')"
mkdir -p "$HOME/Pictures/Screenshots"
SAVED="Screenshot saved!"
COPIED="Screenshot copied!"

View File

@ -0,0 +1,4 @@
#!/bin/sh
SWAYSOCK=$(find $XDG_RUNTIME_DIR -type s -name "sway-ipc*") \
exec swaymsg -t send_tick