aboutsummaryrefslogtreecommitdiff
path: root/config/i3/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'config/i3/scripts')
-rwxr-xr-xconfig/i3/scripts/notes6
-rwxr-xr-xconfig/i3/scripts/shutdown13
2 files changed, 6 insertions, 13 deletions
diff --git a/config/i3/scripts/notes b/config/i3/scripts/notes
new file mode 100755
index 0000000..6b9cc8c
--- /dev/null
+++ b/config/i3/scripts/notes
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+cd ~/notes
+find * -type f | dmenu -p 'notes' | while read -r note; do
+ nohup urxvt -title 'notes-terminal-window' -e vim ~/notes/"$note" >/dev/null 2>&1 &
+done
diff --git a/config/i3/scripts/shutdown b/config/i3/scripts/shutdown
deleted file mode 100755
index 62f6ae1..0000000
--- a/config/i3/scripts/shutdown
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-export SUDO_ASKPASS=/tmp/shutdown-askpass.sh
-
-
-echo '#!/bin/sh
-echo "SETDESC Please enter password to shutdown system
-SETPROMPT Password:
-SETTITLE Sudo password for system shutdown
-GETPIN" | pinentry | grep -E "^D " | sed "s/^D //"' > $SUDO_ASKPASS
-chmod +x $SUDO_ASKPASS
-
-sudo -A shutdown -h now