Giter Club home page Giter Club logo

bing-wallpapers-for-linux's Introduction

Bing Wallpapers For Linux

This enables bing wallpaper on linux, specifically debian based distros.

Supported Desktop Environments

  • Gnome
  • Cinnamon
  • Unity
  • Xfce

Installation Instruction (Ubuntu, Mint and other Debian based distros)

This should be simple.

sudo add-apt-repository ppa:whizzzkid/bingwallpaper
sudo apt-get update
sudo apt-get install bingwallpaper

Using Script directly.

Just download or clone this repo. Run:

$ bingwallpaper

But this would keep on running as we check every 3 hours for new wallpaper. So it's better to do it this way:

$ bingwallpaper &>/dev/null &

Run Once

To update the wallpaper only once (Instead of checking every 3 hours), Run:

$ bingwallpaper -1

Setting Up Cron

To setup regular checks for new wallapers, edit crontab for the current user, using:

$ crontab -u $USER -e

, and add this line:

0 */6 * * * bingwallpaper -1 > /dev/null 2>&1

This will run every 6 hours. You can use this link for reference.

Note: If you installed this package from apt, then disable the startup script setup by default. Go to startup applications and remove 'bingwallpaper'

Contributing

Feel free to make changes and send PR, I'll be accepting them.

License

GPLv2

PPA

https://launchpad.net/~whizzzkid/+archive/ubuntu/bingwallpaper

bing-wallpapers-for-linux's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bing-wallpapers-for-linux's Issues

Wallpaper Goes Blank After Opening Nautilus

A strange thing occurs to me. At first, I thought it might be caused by #18, but I realized it is consistent.

When I boot up, wallpaper is set and everything is cool. However, whenever I open Nautilus, it oddly goes black.

I don't know it will not help much but here's a screenshot:

image

Since it is fully bash script, I cannot provide any logs, but I executed bingwallpaper from terminal and this is what I get:

Pinging Bing API...
Bing Image of the day: http://www.bing.com/az/hprichbg/rb/Kolonihavehus_EN-US6388656996_1920x1200.jpg
Saving image to /home/whatever/Pictures/Bing/Kolonihavehus_EN-US6388656996_1920x1200.jpg
New wallpaper set successfully for X-Cinnamon.

It seems successful, but no changes on background, it is still the same.


Environment

  • Ubuntu 16.04
  • Cinnamon
  • Nautilus

The .desktop file gets messy with updates

Because of the >> here, the file ~/.config/autostart/bingwallpaper.desktop becomes messy after a few updates:

[Desktop Entry]
Type=Application
Exec=sh /usr/bin/bingwallpaper
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Bing Wallpaper
Comment=Bing Pic of the day as wallpaper.
[Desktop Entry]
Type=Application
Exec=sh /usr/bin/bingwallpaper
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Bing Wallpaper
Comment=Bing Pic of the day as wallpaper.
# ...

Another point, this file is owned by root:root but sits in user land, that's incorrect I think.


PS: 👍 for this tool, I really like it.

Bionic support

Adding the PPA on an Ubuntu 18.04 derivative (specifically Linux Mint 19) fails with error:

Cannot add PPA: ''This PPA does not support bionic''.

Any plans to add support?

Doesn't work with Plasma

I recently moved to KDE Neon and it uses Plasma which has a weird way of updating wallpapers programmatically.

Needs research.

Wallpaper update conflict

I use Ubuntu 16.04. I have an app called Wallch that changes the wallpaper at specified intervals of time. When that is launched on startup, bingwallpaper isn't able to make an changes to the current desktop wallpaper.

Feature request

Hi,

First thanks for this, it works nicely and I really enjoy having Bing pic of the day as wallpaper automatically.

Sometimes I wonder what the image displays and I would like the copyright somehow overlaid on the picture. I already use conky to overlay some infos on my desktop, so I was wondering if you could change the output and save the copyright with the picture (i.e. foo.jpg and foo.txt), maybe as an option

Regards,

Régis.

Url of the image changed, API issues a 302

The curl used to fetch the image should use the -L option to follow the 302

Example of the API answer with today image:

*   Trying 13.107.21.200...
* TCP_NODELAY set
* Connected to www.bing.com (13.107.21.200) port 80 (#0)
> GET /az/hprichbg/rb/SONC_EN-US9822965309_1920x1200.jpg HTTP/1.1
> Host: www.bing.com
> User-Agent: curl/7.55.1
> Accept: */*
> 
< HTTP/1.1 302 
< Cache-Control: private
< Content-Length: 182
< Content-Type: text/html; charset=utf-8
< Location: http://www.bing.com/s/hpb/NorthMale_EN-US8782628354_1920x1200.jpg
< Vary: Accept-Encoding
# ...

wallpaper doesn't get set automatically

here is the output of command bingwallpaper -1

$ bingwallpaper -1 Pinging Bing API... Bing Image of the day: http://www.bing.com/th?id=OHR.IvishakRiver_EN-US1566710821_1920x1200.jpg Saving image to /home/abhi/Pictures/Bing/th?id=OHR.IvishakRiver_EN-US1566710821_1920x1200.jpg New wallpaper set successfully for Enlightenment.

but the wallpaper remains previously set wallpaper which too had to be done manually
while setting up this program the auto start was done successfully at /root/.config/autostart/bingwallpaper.desktop
I have tried to set up other bing wallpaper programs but none of them works for me
I am using bodhi linux and I think the de is enlightenment.
please help.

Errors were encountered while processing: bingwallpaper

I want to install mojave theme with this code
sudo apt install nautilus

but I encounter this error
Errors were encountered while processing:
bingwallpaper
E: Sub-process /usr/bin/dpkg returned an error code (1)

It also happens when I want to install other apps. Is there any way to fix this issue?
Thanks @whizzzkid

error in update ppa

hi i can not install bing wallpapers
error in ppa

mf@mf-X555LP:~$ sudo apt-get update
Get:1 http://security.ubuntu.com/ubuntu hirsute-security InRelease [101 kB]
Hit:2 http://archive.canonical.com/ubuntu hirsute InRelease                    
Ign:3 http://ppa.launchpad.net/whizzzkid/bingwallpaper/ubuntu hirsute InRelease
Hit:4 http://ir.archive.ubuntu.com/ubuntu hirsute InRelease                    
Err:5 http://ppa.launchpad.net/whizzzkid/bingwallpaper/ubuntu hirsute Release  
  404  Not Found [IP: 91.189.95.85 80]
Hit:6 http://ir.archive.ubuntu.com/ubuntu hirsute-updates InRelease            
Hit:7 https://repo.protonvpn.com/debian stable InRelease                       
Hit:8 http://ir.archive.ubuntu.com/ubuntu hirsute-backports InRelease
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/whizzzkid/bingwallpaper/ubuntu hirsute Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

install error on 16.10

Im getting this while installing it on 16.10. I don't think i had this error on 16.04, so there might be some changes in how stuff gets started? I wouldn't know, im a newbie. I just added bingwallpaper to my startup applications.

Registering as startup application...
/var/lib/dpkg/info/bingwallpaper.postinst: 9: /var/lib/dpkg/info/bingwallpaper.postinst: cannot create /home/dennis/.config/autostart/bingwallpaper.desktop: Directory nonexistent
dpkg: error processing package bingwallpaper (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
bingwallpaper

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.