aboutsummaryrefslogtreecommitdiff
path: root/config/sway/scripts
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-01-20 15:40:02 +0100
committerKarel Kočí <cynerd@email.cz>2022-01-20 15:40:02 +0100
commit8fae57dbeab4e49ca2ef8e0806ef9a25789d5157 (patch)
tree2ae60d6bb2bee3ba1839e8ecf2d1a66a853444f1 /config/sway/scripts
parent658251b375c8f3a5051cd46e216445ba49728af2 (diff)
downloadmyconfigs-8fae57dbeab4e49ca2ef8e0806ef9a25789d5157.tar.gz
myconfigs-8fae57dbeab4e49ca2ef8e0806ef9a25789d5157.tar.bz2
myconfigs-8fae57dbeab4e49ca2ef8e0806ef9a25789d5157.zip
sway: various fixes and updates
Diffstat (limited to 'config/sway/scripts')
-rwxr-xr-xconfig/sway/scripts/notes5
-rwxr-xr-xconfig/sway/scripts/pass6
2 files changed, 11 insertions, 0 deletions
diff --git a/config/sway/scripts/notes b/config/sway/scripts/notes
new file mode 100755
index 0000000..ebe2684
--- /dev/null
+++ b/config/sway/scripts/notes
@@ -0,0 +1,5 @@
+#!/bin/sh
+cd ~/notes
+find * -type f | wofi -d -p 'notes' | while read -r note; do
+ nohup alacritty -e vim ~/notes/"$note" >/dev/null 2>&1 &
+done
diff --git a/config/sway/scripts/pass b/config/sway/scripts/pass
new file mode 100755
index 0000000..06383b3
--- /dev/null
+++ b/config/sway/scripts/pass
@@ -0,0 +1,6 @@
+#!/bin/sh
+find ~/.password-store -name .git -prune -o -type f -printf '%P\n' | \
+ sed 's/\.gpg$//' | wofi -d -p 'Pass:' | \
+ while read -r psw; do
+ pass -c "$psw"
+done