forked from iberianpig/xSwipe
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrubySwipe.rb
26 lines (22 loc) · 1.11 KB
/
rubySwipe.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/ruby
#########################################################################
# #### # # ##### # # # #### ##### #
# # # # # # # # # # # # # # #
# #### # ### #### # # # # #### ### #
# # # # # # # # # # # # # #
# # # # # ##### # # # # ##### #
#########################################################################
# This is the Ruby version of xSwipe (written in Perl). #
# It uses an external Perl script in order to simulate X11 interactions #
#########################################################################
Dir.chdir File.dirname(__FILE__)
load "Utils.rb"
load "Config.rb"
load "InputController.rb"
load "InputHandler.rb"
load "ActionHandler.rb"
load "MainController.rb"
runDaemon = ARGV.include?("-d") || ARGV.include?("--daemon")
run = ARGV.include?("-r") || ARGV.include?("--run")
$debug = ARGV.include?("-D") || ARGV.include?("--debug")
MainController.new.main(runDaemon) if run