Skip to content

Commit

Permalink
simpler installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
boramalper committed Nov 19, 2020
1 parent d0f755f commit 8e57943
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 26 deletions.
32 changes: 8 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,33 +86,17 @@ bgcolor=#000000

```
# Install
pip install --user himawaripy
python3 -m pip install --user himawaripy
# Test whether it's working
himawaripy --auto-offset
# Get the installation path of himawaripy by running the command
which -- himawaripy
# Set himawaripy to be called periodically using the provided systemd timer
## Copy systemd configuration (on bash)
cp systemd/himawaripy.{service,timer} ~/.config/systemd/user/
# Set himawaripy to be called periodically
## Either set up a cronjob
crontab -e
### Add the line:
*/10 * * * * <INSTALLATION_PATH> # command line arguments here
## OR, alternatively use the provided systemd timer
### Configure
nano systemd/himawaripy.service
# Replace "<INSTALLATION_PATH>" with the output of the aforementioned command and command line arguments
### Copy systemd configuration
cp systemd/himawaripy.{service,timer} ~/.config/systemd/user/
### Enable and start the timer
systemctl --user enable --now himawaripy.timer
## Enable and start the timer
systemctl --user enable --now himawaripy.timer
```

### For KDE Users
Expand All @@ -122,7 +106,7 @@ the pre-KDE 5.7 method can still be used.

To unlock desktop widgets ([from the KDE userbase](https://userbase.kde.org/Plasma#Widgets)):
> Open the Desktop Toolbox or the Panel Toolbox or right click on the Desktop - if you see an item labeled Unlock
> Widgets then select that, and then proceed to add widgets to your Desktop or your Panel.
> Widgets then select that, and then proceed to add widgets to your Desktop or your Panel.
#### Before KDE 5.7
> So the issue here is that KDE does not support changing the desktop wallpaper
Expand Down Expand Up @@ -164,7 +148,7 @@ Finally, to launch it, enter this into the console:

```
# Either remove the cronjob
crontab -e
crontab -e
# Remove the line
*/10 * * * * himawaripy...
Expand Down
3 changes: 1 addition & 2 deletions systemd/himawaripy.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ Description=Update desktop background with satellite imagery

[Service]
Type=oneshot
# Place command line arguments into ExecStart
ExecStart=<INSTALLATION_PATH>
ExecStart=bash -c "himawaripy --auto-offset --save-battery"

0 comments on commit 8e57943

Please sign in to comment.