Make it work
This commit is contained in:
22
kutu.rb
22
kutu.rb
@@ -16,10 +16,11 @@ end
|
||||
|
||||
# Require modules
|
||||
|
||||
require_relative "./src/ruby/utils"
|
||||
require_relative "./src/ruby/node"
|
||||
require_relative "./src/ruby/workspace"
|
||||
require_relative "./src/ruby/events"
|
||||
load File.join(__dir__, "./src/ruby/utils.rb")
|
||||
load File.join(__dir__, "./src/ruby/controller.rb")
|
||||
load File.join(__dir__, "./src/ruby/window.rb")
|
||||
load File.join(__dir__, "./src/ruby/workspace.rb")
|
||||
load File.join(__dir__, "./src/ruby/events.rb")
|
||||
|
||||
|
||||
# Cleanup on exit
|
||||
@@ -33,7 +34,6 @@ end
|
||||
# Globals
|
||||
|
||||
$monitors = {}
|
||||
$workspaces = {}
|
||||
$windows = {}
|
||||
|
||||
$keybind_actions = {}
|
||||
@@ -47,23 +47,17 @@ $rect = {}
|
||||
|
||||
# Initialize monitors
|
||||
|
||||
refresh_monitors!
|
||||
load_monitors!
|
||||
|
||||
|
||||
# Run startup script
|
||||
|
||||
pid = spawn File.join(__dir__, "/src/shell/startup.sh")
|
||||
Process.detach pid
|
||||
run File.join(__dir__, "./src/shell/startup.sh")
|
||||
|
||||
|
||||
# Add keybinds
|
||||
|
||||
load File.join(__dir__, "/src/ruby/bindings.rb")
|
||||
|
||||
|
||||
# Initialize workspaces
|
||||
|
||||
$workspaces[:main] = Workspace.new(:main)
|
||||
load File.join(__dir__, "./src/ruby/bindings.rb")
|
||||
|
||||
|
||||
# Main loop
|
||||
|
||||
Reference in New Issue
Block a user