bingwallpaper 0.5.8 → 0.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +4 -4
- data/bin/bingwallpaper +14 -0
- data/lib/bingwallpaper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NTI1MDZkZDhjOGQyYzAxOWY1NDVkMmQ3ZTc3MTg3ZTJjNmY4MjIwNQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MzRhMjczM2EyNjAyY2I3MjEwMTEwYWE0NGRhNDYyOGMxZGFjZTJlYQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZWQxYmQzZjcyNTU4YjY3MGE1ZDIyNDNmMzg4OTk3MzI4MTQ4Nzk1OGI0Y2Q5
|
|
10
|
+
MDkwNDE5NDYxODA0YmYxNDM1ZDM0NTEyNWJjYjk1ZmVhMDhhY2NlYmZjM2Nm
|
|
11
|
+
NzRhMTA0MmEwNDNiM2U4YzNlYzBjOWUwN2I3ZDBlYTU5YWVkYWU=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
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
|
|
data/bin/bingwallpaper
CHANGED
|
@@ -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. :'("
|