Compare commits
2 Commits
51892217d8
...
97f6bee128
Author | SHA1 | Date |
---|---|---|
Murteza Yesil | 97f6bee128 | |
Murteza Yesil | a0ac4812f5 |
14
README.md
14
README.md
|
@ -1,5 +1,4 @@
|
|||
# XKCD-clock
|
||||
---
|
||||
|
||||
XKCD comics shared a [world map as clock](https://xkcd.com/now) that would show roughly what time it is everywhere in the world. Then that inspired J15R to make the [xkclock](https://j15r.com/projects/xkclock/). I always wanted to have a dynamic wallpaper that wouldn't be heavy on the processor. I found J15R's xkclock and decided to turn it XKCD's world clock into wallpaper.
|
||||
|
||||
|
@ -8,19 +7,20 @@ Original artwork belongs to XKCD comics and is licensed under [CC BY-NC 2.5](htt
|
|||
Included artwork is upscaled using [Upscaler](https://gitlab.com/TheEvilSkeleton/Upscaler "GUI frontend for Real-ESRGAN ncnn Vulkan project") and preserve the license from its original source.
|
||||
Code (bg-setter.sh) is licensed under MIT License.
|
||||
|
||||
## Implemented Desktop Environments and Window Managers
|
||||
1. GNOME (This is what I use)
|
||||
|
||||
|
||||
## Instructions
|
||||
0. Download and extract the repo (I recommend ~/Pictures/Wallpapers/xkcd-clock)
|
||||
1. Open bg_setter.sh and uncomment the command(s) for the DE you are using
|
||||
2. Open the crontab file for your user (probably using `EDITOR=nano crontab -e` command) and add the cronjob for your desktop environment
|
||||
3. Replace "$PATH_TO_XKCD-CLOCK/bg-setter.sh" part with the PATH to bg-setter.sh script that is in wherever you pulled the repo.
|
||||
3. Continue to instructions for your desktop environment or window manager
|
||||
4. If you used nano editor, close crontab file with <kbd>CTRL</kbd><kbd>O</kbd> > <kbd>Enter</kbd> > <kbd>CTRL</kbd><kbd>X</kbd>
|
||||
|
||||
### GNOME
|
||||
1. Open the crontab file for your user (probably using `EDITOR=nano crontab -e` command) and add the below cronjob for your desktop environment.
|
||||
```
|
||||
* * * * * DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/`pgrep -u $USER gnome-session-c`/environ|cut -d= -f2-) $PATH_TO_XKCD-CLOCK/bg-setter.sh
|
||||
```
|
||||
3. Replace $USER with your user name (this is recommended since cron service probably run by root)
|
||||
4. Replace "$PATH_TO_XKCD-CLOCK/bg-setter.sh" part with the PATH to bg-setter.sh script that is in wherever you put the repo.
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -53,6 +53,3 @@ BG_PATH="$BG_REPO/$(echo $HOUR)h$(echo $MINUTE)m.png" #; echo $BG_PATH
|
|||
# and dark themes.
|
||||
gsettings set org.gnome.desktop.background picture-uri "$BG_PATH" 2> /dev/null
|
||||
gsettings set org.gnome.desktop.background picture-uri-dark "$BG_PATH" 2> /dev/null
|
||||
|
||||
#
|
||||
|
||||
|
|
Loading…
Reference in New Issue