bingwallpaper 0.5.8 → 0.5.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjhmMDBjNTkwNmFiNWVmNTJlN2FiMDQ4NTE2ZDlhZTViMDA5MjZhMQ==
4
+ NTI1MDZkZDhjOGQyYzAxOWY1NDVkMmQ3ZTc3MTg3ZTJjNmY4MjIwNQ==
5
5
  data.tar.gz: !binary |-
6
- MDFiMTNjZTZlOGI5NmM4MzgzNTMxZGJmOTBkMzU0ZTY5MWU5MGI0OQ==
6
+ MzRhMjczM2EyNjAyY2I3MjEwMTEwYWE0NGRhNDYyOGMxZGFjZTJlYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzMyMDc3MTdmNmYwNGY5MWQxNWJkNDc5YzUzNThjMzNmNGY1ZGI5Mzg1OTc2
10
- YzlkZTAzNjU4NjVlOWVjYzU4MTg1YzZhOTE0ODIzZWE0NGRhMjBlMDg3YTE1
11
- ZWZiZmE0ODgzM2I1OGVkZjhmODgxMTZmMDZjNDYxMmRjOTAxYTE=
9
+ ZWQxYmQzZjcyNTU4YjY3MGE1ZDIyNDNmMzg4OTk3MzI4MTQ4Nzk1OGI0Y2Q5
10
+ MDkwNDE5NDYxODA0YmYxNDM1ZDM0NTEyNWJjYjk1ZmVhMDhhY2NlYmZjM2Nm
11
+ NzRhMTA0MmEwNDNiM2U4YzNlYzBjOWUwN2I3ZDBlYTU5YWVkYWU=
12
12
  data.tar.gz: !binary |-
13
- ZDdmMGFmNDgzYzVmOWNiYTlhNGM4YWNhMmE3NjIxYTFiMmJiMmRmZjcyZTcy
14
- YmQ1YTU0ODY3MzRhMWZhNjM2ZmUzMWQ1Yjg2ZmUyOTc1Nzc3NTM3OGUxZTE0
15
- NmQzNTZhNjUzMmI4MmVlODM1NDg5OGUxMjE0ZjQ0ZmU3Zjg0Yjc=
13
+ ZjM0NDBlYzdiNGEzZGQyYWFjM2ZhMWRhODMyNDJjYmY3NzAyMDg0YjljZjRh
14
+ YjZlNzFiYmNlYjliNjMxYThkZjY5ZWI0OTE5OTc1NjAwNWFkZTg3ZDIwZTk3
15
+ MmYzMDE2ODUyZWU2YTc4YTViNWQwY2YxYjk0NTEyOTE0OTlmYzc=
data/README.md CHANGED
@@ -9,10 +9,10 @@ wallpaper.
9
9
  ## How It Works
10
10
 
11
11
  I wrote this script with my own environment in mind, so it's pretty
12
- simple-minded. It fetches the XML describing today's image, then
13
- fetches the 1920x1200 sized version. Lastly, it uses [Feh][1] to set
14
- the wallpaper for your environment. I've tested it in [i3][2] and
15
- nowhere else.
12
+ simple-minded. It fetches the XML describing today's image, then fetches
13
+ the 1920x1200 sized version. Lastly, it uses [Feh][1] or Gnome to set
14
+ the wallpaper for your environment. I've tested it in [i3][2] and Gnome
15
+ 3.14.2 and nowhere else.
16
16
 
17
17
  ## Using the Script
18
18
 
@@ -25,6 +25,10 @@ OptionParser.new do |opts|
25
25
  options[:gnome] = g
26
26
  end
27
27
 
28
+ opts.on("-l", "--lock", "Set Gnome lock screen background") do |g|
29
+ options[:lock] = g
30
+ end
31
+
28
32
  opts.on("-f", "--feg", "Use feh to set the background (the default)") do |f|
29
33
  options[:feh] = f
30
34
  end
@@ -88,6 +92,11 @@ begin
88
92
  logger.info "Setting background with feh"
89
93
  `feh --bg-fill #{image_path}`
90
94
  end
95
+
96
+ if options[:lock]
97
+ logger.info "Setting lock background with Gnome"
98
+ `gsettings set org.gnome.desktop.screensaver picture-uri "file:///#{image_path}"`
99
+ end
91
100
  elsif fallback_image_path.exist?
92
101
 
93
102
  # set the wallpaper
@@ -101,6 +110,11 @@ begin
101
110
  logger.info "Setting background with feh"
102
111
  `feh --bg-fill #{fallback_image_path}`
103
112
  end
113
+
114
+ if options[:lock]
115
+ logger.info "Setting lock background with Gnome"
116
+ `gsettings set org.gnome.desktop.screensaver picture-uri "file:///#{fallback_image_path}"`
117
+ end
104
118
  else
105
119
 
106
120
  logger.info "Sorry, I couldn't download the Bing Image of the Day. :'("
@@ -1,3 +1,3 @@
1
1
  module Bingwallpaper
2
- VERSION = "0.5.8"
2
+ VERSION = "0.5.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bingwallpaper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - cmiles74