summaryrefslogtreecommitdiffstats
path: root/virtual-programs
diff options
context:
space:
mode:
authorZach Potter <zspotting@gmail.com>2023-09-04 20:51:31 +0000
committerZach Potter <zspotting@gmail.com>2023-09-04 20:51:31 +0000
commitb8b397be679c4c8329aa4a5465ad3c0e70743bb2 (patch)
tree9b61cedbf6bf8e32070d71b77bf4280b5f2f441b /virtual-programs
parentStart fixing dot trie (diff)
downloadfolk-b8b397be679c4c8329aa4a5465ad3c0e70743bb2.tar.gz
folk-b8b397be679c4c8329aa4a5465ad3c0e70743bb2.zip
Proper escaping of keyboard keys; change esc-restart modifiers
1. Escape words in `subst` by wrapping them in a list! I took this tip from the "Generating Scripts and Lists" section of https://wiki.tcl-lang.org/page/subst 2. Change the esc-restart key from plain ESC to alt-ESC, so you can use the escape key in vim terminals.
Diffstat (limited to 'virtual-programs')
-rw-r--r--virtual-programs/esc-restart.folk6
1 files changed, 3 insertions, 3 deletions
diff --git a/virtual-programs/esc-restart.folk b/virtual-programs/esc-restart.folk
index 02d66f63..ee8aa847 100644
--- a/virtual-programs/esc-restart.folk
+++ b/virtual-programs/esc-restart.folk
@@ -1,3 +1,3 @@
-When keyboard claims key /key/ is /t/ with modifiers /m/ {
- if {[string tolower $key] == "esc"} {exec sudo systemctl restart folk}
-} \ No newline at end of file
+When keyboard claims key ESC is down with modifiers alt {
+ exec sudo systemctl restart folk
+}