Skip to content

Commit 5003044

Browse files
committed
Update hosts.tcl and add Alt-F1 to stop Folk in keyboard-shortcuts.folk
1 parent 9986280 commit 5003044

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

hosts.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if {[info exists ::env(FOLK_SHARE_NODE)]} {
2222
if {$wifi eq "cynosure"} {
2323
set ::shareNode "folk-omar.local"
2424
} elseif {$wifi eq "Verizon_TWRHB4" || $wifi eq "nyu"} {
25-
set ::shareNode "folk-cwe.local"
25+
set ::shareNode "gadget-red.local"
2626
} elseif {$wifi eq "WONDERLAND"} {
2727
set ::shareNode "folk-haip.local"
2828
} elseif {$wifi eq "GETNEAR"} {

virtual-programs/keyboard-shortcuts.folk

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,21 @@
66
# Keyboard shortcuts
77
# ---
88
# Alt + Esc: Restart Folk
9-
# Shift + Esc: Stop Folk completely (note: need to ssh to restart Folk)
9+
# Alt + F1: Stop Folk completely (note: need to ssh to restart Folk)
10+
Claim keyboard debugger is off
1011

12+
When keyboard debugger is on & keyboard /keyboard/ claims key /key/ is down with timestamp /timestamp/ {
13+
puts "\[keyboard debugger:\] $key @ $timestamp"
14+
}
15+
16+
# Alt-Esc on most keyboards
1117
When keyboard /k/ claims key Meta_Escape is down with timestamp /any/ {
1218
puts "==== Folk restarting ... ===="
1319
exec sudo systemctl restart folk
1420
}
1521

16-
When keyboard /k/ claims key F1 is down with timestamp /any/ {
22+
# Console_1 corresponds to Alt-F1 on most keyboards
23+
When keyboard /k/ claims key Console_1 is down with timestamp /any/ {
1724
puts "==== Stoping Folk. ===="
1825
puts "===="
1926
puts " Run `make sync-restart` on your laptop or SSH into [info hostname] to restart Folk ===="

0 commit comments

Comments
 (0)