This commit is contained in:
2026-09-10 20:55:18 +01:00
parent 234cff1006
commit e7a2e5ef58
3 changed files with 20 additions and 1 deletions
+6
View File
@@ -38,6 +38,8 @@ def in_project?(ws)
!SPECIAL.key?(ws) !SPECIAL.key?(ws)
end end
puts "hello1"
# Toggle between a special-mode workspace (terminal/browser/music/misc/todo) # Toggle between a special-mode workspace (terminal/browser/music/misc/todo)
# and whatever workspace you were last on. Starts the associated app if # and whatever workspace you were last on. Starts the associated app if
# it isn't already running. `ws` is the current workspace, passed in by # it isn't already running. `ws` is the current workspace, passed in by
@@ -95,6 +97,8 @@ bind 81 do |_, ws|
go_special :todo, ws go_special :todo, ws
end end
puts "hello2"
# ==== Project navigation ==== # ==== Project navigation ====
(1..MAX_PROJECTS).each do |n| (1..MAX_PROJECTS).each do |n|
@@ -128,3 +132,5 @@ end
# ==== Startup ==== # ==== Startup ====
go_project(1, 0) go_project(1, 0)
puts "hello3"
+5 -1
View File
@@ -16,8 +16,12 @@ let () =
(match startup_script with (match startup_script with
| Some s -> | Some s ->
print_string s;
print_endline " : Have something";
Mruby.Core.mrb_load_string state.mrb (Mruby.Initial.initial_code s) Mruby.Core.mrb_load_string state.mrb (Mruby.Initial.initial_code s)
| None -> Mruby.Core.mrb_load_string state.mrb ""); | None ->
print_endline "Nothing";
Mruby.Core.mrb_load_string state.mrb (Mruby.Initial.initial_code ""));
Mruby.Core.error_check state.mrb; Mruby.Core.error_check state.mrb;
if Xcb.Connection.flush state.conn <= 0 then exit 1; if Xcb.Connection.flush state.conn <= 0 then exit 1;
+9
View File
@@ -33,6 +33,7 @@ KEY_MAP = {
CONFIG_FILE = "%s" CONFIG_FILE = "%s"
puts "hello-1"
DEFAULT = <<CODE DEFAULT = <<CODE
# ==== State ==== # ==== State ====
@@ -74,6 +75,8 @@ def in_project?(ws)
!SPECIAL.key?(ws) !SPECIAL.key?(ws)
end end
puts "hello1"
# Toggle between a special-mode workspace (terminal/browser/music/misc/todo) # Toggle between a special-mode workspace (terminal/browser/music/misc/todo)
# and whatever workspace you were last on. Starts the associated app if # and whatever workspace you were last on. Starts the associated app if
# it isn't already running. `ws` is the current workspace, passed in by # it isn't already running. `ws` is the current workspace, passed in by
@@ -131,6 +134,8 @@ bind 81 do |_, ws|
go_special :todo, ws go_special :todo, ws
end end
puts "hello2"
# ==== Project navigation ==== # ==== Project navigation ====
(1..MAX_PROJECTS).each do |n| (1..MAX_PROJECTS).each do |n|
@@ -164,8 +169,12 @@ end
# ==== Startup ==== # ==== Startup ====
go_project(1, 0) go_project(1, 0)
puts "hello3"
CODE CODE
puts "hello0"
BINDINGS = [] BINDINGS = []
SYSTEM_BINDINGS = [] SYSTEM_BINDINGS = []