From b8b397be679c4c8329aa4a5465ad3c0e70743bb2 Mon Sep 17 00:00:00 2001 From: Zach Potter Date: Mon, 4 Sep 2023 13:51:31 -0700 Subject: 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. --- virtual-programs/esc-restart.folk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'virtual-programs') 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 +} -- cgit v1.2.3