diff --git a/kutu.rb b/kutu.rb index ba97f15..51589d9 100755 --- a/kutu.rb +++ b/kutu.rb @@ -1,13 +1,15 @@ #!/usr/bin/env ruby +# Require X-kutu library for all x11 functions + require_relative "./src/X-kutu" # Initialize X -if X.deploy < 0 - raise "Failed to deploy X" +if X.deploy >= 0 + puts "Started kutu WM for X11 successfully!" else - puts "Started kutu WM for X11" + raise "Failed to deploy X" end @@ -21,7 +23,10 @@ require_relative "./src/events" # Cleanup on exit -at_exit { X.cleanup } +at_exit do + X.cleanup + puts "Exited kutu WM, sadly :(" +end # Globals