gnome-wallpaper-changer 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +22 -0
  4. data/README.md +55 -0
  5. data/Rakefile +2 -0
  6. data/bin/gnome-wallpaper-changer +4 -0
  7. data/gnome-wallpaper-changer.gemspec +23 -0
  8. data/gnome-wallpaper-changer.sublime-project +8 -0
  9. data/lib/gnome-wallpaper-changer.rb +27 -0
  10. data/lib/gnome-wallpaper-changer/configuration.rb +200 -0
  11. data/lib/gnome-wallpaper-changer/controller.rb +147 -0
  12. data/lib/gnome-wallpaper-changer/reloader.rb +16 -0
  13. data/lib/gnome-wallpaper-changer/resizer.rb +30 -0
  14. data/lib/gnome-wallpaper-changer/runner.rb +108 -0
  15. data/lib/gnome-wallpaper-changer/updater.rb +86 -0
  16. data/lib/gnome-wallpaper-changer/version.rb +7 -0
  17. data/public/javascript/jquery-1.7.2.min.js +4 -0
  18. data/public/javascript/jquery-ui-1.8.21.custom.min.js +17 -0
  19. data/public/javascript/jquery.color.js +667 -0
  20. data/public/javascript/updater.js +211 -0
  21. data/public/stylesheets/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  22. data/public/stylesheets/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  23. data/public/stylesheets/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  24. data/public/stylesheets/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  25. data/public/stylesheets/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  26. data/public/stylesheets/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  27. data/public/stylesheets/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  28. data/public/stylesheets/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  29. data/public/stylesheets/smoothness/images/ui-icons_222222_256x240.png +0 -0
  30. data/public/stylesheets/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  31. data/public/stylesheets/smoothness/images/ui-icons_454545_256x240.png +0 -0
  32. data/public/stylesheets/smoothness/images/ui-icons_888888_256x240.png +0 -0
  33. data/public/stylesheets/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  34. data/public/stylesheets/smoothness/jquery-ui-1.8.21.custom.css +339 -0
  35. data/public/stylesheets/updater.css +92 -0
  36. data/views/index.haml +40 -0
  37. metadata +162 -0
@@ -0,0 +1,92 @@
1
+ body {
2
+ font-family: Tahoma, sans-serif;
3
+ font-size: 70%;
4
+ width: 100%;
5
+ margin: 0;
6
+ padding: 0;
7
+ }
8
+
9
+ h1 {
10
+ text-align: center;
11
+ }
12
+
13
+ .control {
14
+ text-align: center;
15
+ clear: both;
16
+ margin-top: 0.2em;
17
+ margin-bottom: 0.2em;
18
+ width: 100%;
19
+ }
20
+
21
+ .control .left, .control .right {
22
+ width: 50%;
23
+ box-sizing: border-box;
24
+ -moz-box-sizing: border-box;
25
+ margin-bottom: 0.5em;
26
+ vertical-align: top;
27
+ }
28
+
29
+ .control .left {
30
+ float: left;
31
+ text-align: right;
32
+ padding-right: 0.5em;
33
+ }
34
+
35
+ .control .right {
36
+ float: right;
37
+ text-align: left;
38
+ padding-left: 0.5em;
39
+ }
40
+
41
+ .rotation-interval input {
42
+ border: 1px solid black;
43
+ text-align: right;
44
+ padding-right: 0.5em;
45
+ padding-left: 0.5em;
46
+ width: 3em;
47
+ }
48
+
49
+ .add-folder input {
50
+ border: 1px solid black;
51
+ padding-right: 0.5em;
52
+ padding-left: 0.5em;
53
+ }
54
+
55
+ .file {
56
+ display: inline-block;
57
+ position: relative;
58
+ width: 120px;
59
+ }
60
+
61
+ .file input[type=checkbox] {
62
+ position: absolute;
63
+ top: 0px;
64
+ left: 0px;
65
+ }
66
+
67
+ .folder {
68
+ clear: both;
69
+ margin-top: 1em;
70
+ }
71
+
72
+ .folder .command {
73
+ display: inline-block;
74
+ margin-left: 1em;
75
+ margin-right: 1em;
76
+ }
77
+
78
+ .folder .top-bar {
79
+ margin-top: 0.5em;
80
+ margin-bottom: 0.5em;
81
+ padding: 0.5em;
82
+ border: 1px solid silver;
83
+ background-color: #eee;
84
+ text-align: center;
85
+ }
86
+ .folder .top-bar .folder-name {
87
+ font-weight: bold;
88
+ }
89
+
90
+ .folder .wallpaper-list {
91
+ margin-left: 2em;
92
+ }
data/views/index.haml ADDED
@@ -0,0 +1,40 @@
1
+ !!!
2
+ %html
3
+ %head
4
+ %title Wallpaper changer settings
5
+ %script{ :src => '/javascript/jquery-1.7.2.min.js' }
6
+ %script{ :src => '/javascript/jquery.color.js' }
7
+ %script{ :src => '/javascript/jquery-ui-1.8.21.custom.min.js' }
8
+ %script{ :src => '/javascript/updater.js' }
9
+ %link{ :type => 'text/css', :rel => 'stylesheet', :href => '/stylesheets/updater.css' }
10
+ %link{ :type => 'text/css', :rel => 'stylesheet', :href => '/stylesheets/smoothness/jquery-ui-1.8.21.custom.css' }
11
+ %body{ :onload => "Updater.init()" }
12
+ %h1 Wallpaper changer
13
+ .control.autostart-enabled
14
+ %form{ :action => '/autostart', :method => 'POST' }
15
+ .left
16
+ %label{ :for => 'autostart' } Autostart
17
+ .right
18
+ %input{ :type => 'checkbox', :name => 'autostart', :id => 'autostart' }
19
+ .control.rotation-interval
20
+ %form{ :action => '/interval', :method => 'POST' }
21
+ .left
22
+ %label{ :for => 'interval' } Rotation interval (0 to disable):
23
+ .right
24
+ %input{ :name => 'interval', :id => 'interval' }
25
+ minutes
26
+ .control.add-folder
27
+ %form{ :action => '/add', :method => 'POST' }
28
+ .left
29
+ %label{ :for => 'folder' } Add an image directory:
30
+ .right
31
+ %input{ :name => 'folder', :id => 'folder' }
32
+ #wallpapers
33
+ %footer
34
+ Daemon process ID:
35
+ = Process.pid
36
+ %br
37
+ Config directory:
38
+ = Gnome::Wallpaper::Changer::CONFIG_DIR
39
+ %br
40
+ %a{ :href => 'https://github.com/ulfurinn/gnome-wallpaper-changer' } @ github
metadata ADDED
@@ -0,0 +1,162 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gnome-wallpaper-changer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Valeri Sokolov
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-06-29 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: thin
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: sinatra
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: haml
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: json
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: fastimage_resize
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ description: A wallpaper rotation daemon with a browser-based interface.
95
+ email:
96
+ - ulfurinn@ulfurinn.net
97
+ executables:
98
+ - gnome-wallpaper-changer
99
+ extensions: []
100
+ extra_rdoc_files: []
101
+ files:
102
+ - .gitignore
103
+ - Gemfile
104
+ - LICENSE
105
+ - README.md
106
+ - Rakefile
107
+ - bin/gnome-wallpaper-changer
108
+ - gnome-wallpaper-changer.gemspec
109
+ - gnome-wallpaper-changer.sublime-project
110
+ - lib/gnome-wallpaper-changer.rb
111
+ - lib/gnome-wallpaper-changer/configuration.rb
112
+ - lib/gnome-wallpaper-changer/controller.rb
113
+ - lib/gnome-wallpaper-changer/reloader.rb
114
+ - lib/gnome-wallpaper-changer/resizer.rb
115
+ - lib/gnome-wallpaper-changer/runner.rb
116
+ - lib/gnome-wallpaper-changer/updater.rb
117
+ - lib/gnome-wallpaper-changer/version.rb
118
+ - public/javascript/jquery-1.7.2.min.js
119
+ - public/javascript/jquery-ui-1.8.21.custom.min.js
120
+ - public/javascript/jquery.color.js
121
+ - public/javascript/updater.js
122
+ - public/stylesheets/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
123
+ - public/stylesheets/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
124
+ - public/stylesheets/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
125
+ - public/stylesheets/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
126
+ - public/stylesheets/smoothness/images/ui-bg_glass_75_dadada_1x400.png
127
+ - public/stylesheets/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
128
+ - public/stylesheets/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
129
+ - public/stylesheets/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
130
+ - public/stylesheets/smoothness/images/ui-icons_222222_256x240.png
131
+ - public/stylesheets/smoothness/images/ui-icons_2e83ff_256x240.png
132
+ - public/stylesheets/smoothness/images/ui-icons_454545_256x240.png
133
+ - public/stylesheets/smoothness/images/ui-icons_888888_256x240.png
134
+ - public/stylesheets/smoothness/images/ui-icons_cd0a0a_256x240.png
135
+ - public/stylesheets/smoothness/jquery-ui-1.8.21.custom.css
136
+ - public/stylesheets/updater.css
137
+ - views/index.haml
138
+ homepage: https://github.com/ulfurinn/gnome-wallpaper-changer
139
+ licenses: []
140
+ post_install_message:
141
+ rdoc_options: []
142
+ require_paths:
143
+ - lib
144
+ required_ruby_version: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ required_rubygems_version: !ruby/object:Gem::Requirement
151
+ none: false
152
+ requirements:
153
+ - - ! '>='
154
+ - !ruby/object:Gem::Version
155
+ version: '0'
156
+ requirements: []
157
+ rubyforge_project:
158
+ rubygems_version: 1.8.24
159
+ signing_key:
160
+ specification_version: 3
161
+ summary: A wallpaper rotation daemon with a browser-based interface.
162
+ test_files: []