From e7a2e5ef5805f992fb6a4a3bdb5f1692e0d2d3e7 Mon Sep 17 00:00:00 2001 From: Syed Daanish Date: Thu, 10 Sep 2026 20:55:18 +0100 Subject: [PATCH] Stuff. --- config.rb | 6 ++++++ src/main.ml | 6 +++++- src/mruby/initial.ml | 9 +++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/config.rb b/config.rb index 5c986ca..776edf4 100644 --- a/config.rb +++ b/config.rb @@ -38,6 +38,8 @@ def in_project?(ws) !SPECIAL.key?(ws) end +puts "hello1" + # Toggle between a special-mode workspace (terminal/browser/music/misc/todo) # 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 @@ -95,6 +97,8 @@ bind 81 do |_, ws| go_special :todo, ws end +puts "hello2" + # ==== Project navigation ==== (1..MAX_PROJECTS).each do |n| @@ -128,3 +132,5 @@ end # ==== Startup ==== go_project(1, 0) + +puts "hello3" diff --git a/src/main.ml b/src/main.ml index 2b3538f..fc141c5 100644 --- a/src/main.ml +++ b/src/main.ml @@ -16,8 +16,12 @@ let () = (match startup_script with | Some s -> + print_string s; + print_endline " : Have something"; 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; if Xcb.Connection.flush state.conn <= 0 then exit 1; diff --git a/src/mruby/initial.ml b/src/mruby/initial.ml index 3177b82..0b1f428 100644 --- a/src/mruby/initial.ml +++ b/src/mruby/initial.ml @@ -33,6 +33,7 @@ KEY_MAP = { CONFIG_FILE = "%s" +puts "hello-1" DEFAULT = <