summaryrefslogtreecommitdiff
path: root/bin/guiscripts
diff options
context:
space:
mode:
Diffstat (limited to 'bin/guiscripts')
-rwxr-xr-xbin/guiscripts/locker9
-rwxr-xr-xbin/guiscripts/startw5
2 files changed, 8 insertions, 6 deletions
diff --git a/bin/guiscripts/locker b/bin/guiscripts/locker
index c35f6d4..b680484 100755
--- a/bin/guiscripts/locker
+++ b/bin/guiscripts/locker
@@ -3,10 +3,7 @@ which swaylock grim pixelate > /dev/null ||
exit 1
umask 077
-monitors="$(hyprctl monitors -j |
- jq -r '.[].name' |
- tr '\n' ' ' |
- sed 's,.$,,')"
+monitors="$(hyprctl monitors -j | jq -r '.[].name' | xargs)"
for monitor in $monitors
do
@@ -14,9 +11,9 @@ do
grim -l 0 -o "$monitor" "$file"
pixelate "$file" "$file"
# Create image command for swaylock
- icmd="$icmd --image $monitor:$file"
+ img_opt="--image $monitor:$file $img_opt"
files="$files $file"
done
-swaylock -f -u $icmd
+swaylock -f -u $img_opt
shred -uz -- $files
diff --git a/bin/guiscripts/startw b/bin/guiscripts/startw
new file mode 100755
index 0000000..768f401
--- /dev/null
+++ b/bin/guiscripts/startw
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+eval "$(keychain --dir "$XDG_CONFIG_HOME/keychain" --eval --quiet --agents gpg,ssh)"
+
+Hyprland