mirror of https://github.com/ericonr/dotfiles.git
wayland: add check for sway service and update screenshot
This commit is contained in:
parent
042e69b43d
commit
8e54c85904
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
SAVEPATH="$(xdg-user-dir PICTURES)/Screenshots/$(date +'%Y-%m-%d-%H%M%S_grim.png')"
|
SAVEPATH="$HOME/Pictures/Screenshots/$(date +'%Y-%m-%d-%H%M%S_grim.png')"
|
||||||
mkdir -p "$(xdg-user-dir PICTURES)/Screenshots"
|
mkdir -p "$HOME/Pictures/Screenshots"
|
||||||
|
|
||||||
SAVED="Screenshot saved!"
|
SAVED="Screenshot saved!"
|
||||||
COPIED="Screenshot copied!"
|
COPIED="Screenshot copied!"
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SWAYSOCK=$(find $XDG_RUNTIME_DIR -type s -name "sway-ipc*") \
|
||||||
|
exec swaymsg -t send_tick
|
Loading…
Reference in New Issue