docs: correct number list
This commit is contained in:
		
							parent
							
								
									a5804e25b1
								
							
						
					
					
						commit
						c6160461e5
					
				
							
								
								
									
										118
									
								
								readme.md
								
								
								
								
							
							
						
						
									
										118
									
								
								readme.md
								
								
								
								
							| 
						 | 
					@ -41,55 +41,55 @@ elevated user permissions (e.g. root)
 | 
				
			||||||
### Setup
 | 
					### Setup
 | 
				
			||||||
 | 
					
 | 
				
			||||||
1. Clone the project.
 | 
					1. Clone the project.
 | 
				
			||||||
```console
 | 
					    ```console
 | 
				
			||||||
$ git clone https://gitlab.com/adouglas/wallpaperctl.git
 | 
					    $ git clone https://gitlab.com/adouglas/wallpaperctl.git
 | 
				
			||||||
```
 | 
					    ```
 | 
				
			||||||
1. Change to project directory.
 | 
					1. Change to project directory.
 | 
				
			||||||
```console
 | 
					    ```console
 | 
				
			||||||
$ cd wallpaperctl
 | 
					    $ cd wallpaperctl
 | 
				
			||||||
```
 | 
					    ```
 | 
				
			||||||
1. Install Systemd unit files.
 | 
					1. Install Systemd unit files.
 | 
				
			||||||
```console
 | 
					    ```console
 | 
				
			||||||
# cp etc/systemd/user/wallpaperctl.* /etc/systemd/user/
 | 
					    # cp etc/systemd/user/wallpaperctl.* /etc/systemd/user/
 | 
				
			||||||
```
 | 
					    ```
 | 
				
			||||||
1. Install script file.
 | 
					1. Install script file.
 | 
				
			||||||
```console
 | 
					    ```console
 | 
				
			||||||
# cp usr/local/bin/wallpaperctl /usr/local/bin/
 | 
					    # cp usr/local/bin/wallpaperctl /usr/local/bin/
 | 
				
			||||||
```
 | 
					    ```
 | 
				
			||||||
1. Reload the systemd configuration.
 | 
					1. Reload the systemd configuration.
 | 
				
			||||||
```console
 | 
					    ```console
 | 
				
			||||||
# systemctl daemon-reload
 | 
					    # systemctl daemon-reload
 | 
				
			||||||
```
 | 
					    ```
 | 
				
			||||||
1. Set execute permission.
 | 
					1. Set execute permission.
 | 
				
			||||||
```console
 | 
					    ```console
 | 
				
			||||||
# chmod +x /usr/local/bin/wallpaperctl
 | 
					    # chmod +x /usr/local/bin/wallpaperctl
 | 
				
			||||||
```
 | 
					    ```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Configuration
 | 
					## Configuration
 | 
				
			||||||
 | 
					
 | 
				
			||||||
1. Enable the Systemd timer.
 | 
					1. Enable the Systemd timer.
 | 
				
			||||||
```console
 | 
					    ```console
 | 
				
			||||||
$ systemctl --user enable wallpaperctl.timer
 | 
					    $ systemctl --user enable wallpaperctl.timer
 | 
				
			||||||
```
 | 
					    ```
 | 
				
			||||||
1. Verify the timer is enabled.
 | 
					1. Verify the timer is enabled.
 | 
				
			||||||
```console
 | 
					    ```console
 | 
				
			||||||
$ systemctl --user list-unit-files
 | 
					    $ systemctl --user list-unit-files
 | 
				
			||||||
wallpaperctl.service disabled
 | 
					    wallpaperctl.service disabled
 | 
				
			||||||
wallpaperctl.timer   enabled
 | 
					    wallpaperctl.timer   enabled
 | 
				
			||||||
2 unit files listed.
 | 
					    2 unit files listed.
 | 
				
			||||||
```
 | 
					    ```
 | 
				
			||||||
1. Start the Systemd timer.
 | 
					1. Start the Systemd timer.
 | 
				
			||||||
```console
 | 
					    ```console
 | 
				
			||||||
$ systemctl --user start wallpaperctl.timer
 | 
					    $ systemctl --user start wallpaperctl.timer
 | 
				
			||||||
```
 | 
					    ```
 | 
				
			||||||
1. Verify the timer has been started.
 | 
					1. Verify the timer has been started.
 | 
				
			||||||
```console
 | 
					    ```console
 | 
				
			||||||
$ systemctl --user list-timers
 | 
					    $ systemctl --user list-timers
 | 
				
			||||||
NEXT                         LEFT    LAST                        PASSED UNIT               ACTIVATES
 | 
					    NEXT                         LEFT    LAST                        PASSED UNIT               ACTIVATES
 | 
				
			||||||
Thu 2016-03-10 18:49:00 CST  1s left Thu 2016-03-10 18:48:56 CST 1s ago wallpaperctl.timer wallpaperctl.service
 | 
					    Thu 2016-03-10 18:49:00 CST  1s left Thu 2016-03-10 18:48:56 CST 1s ago wallpaperctl.timer wallpaperctl.service
 | 
				
			||||||
1 timers listed.
 | 
					    1 timers listed.
 | 
				
			||||||
Pass --all to see loaded but inactive timers, too.
 | 
					    Pass --all to see loaded but inactive timers, too.
 | 
				
			||||||
```
 | 
					    ```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Custom Settings
 | 
					## Custom Settings
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -98,13 +98,13 @@ Pass --all to see loaded but inactive timers, too.
 | 
				
			||||||
This alteration will set the location of where wallpapers are stored.
 | 
					This alteration will set the location of where wallpapers are stored.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
1. Create the required directories.
 | 
					1. Create the required directories.
 | 
				
			||||||
```bash
 | 
					    ```bash
 | 
				
			||||||
$ mkdir  ~/.config/systemd ~/.config/systemd/user
 | 
					    $ mkdir  ~/.config/systemd ~/.config/systemd/user
 | 
				
			||||||
```
 | 
					    ```
 | 
				
			||||||
2. Create the configuration file. Replace "username" with applicable value.
 | 
					2. Create the configuration file. Replace "username" with applicable value.
 | 
				
			||||||
```bash
 | 
					    ```bash
 | 
				
			||||||
$ nano ~/.config/systemd/user/wallpaperctl.conf
 | 
					    $ nano ~/.config/systemd/user/wallpaperctl.conf
 | 
				
			||||||
```
 | 
					    ```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    WALLPAPER_DIR=/home/username/Pictures/wallpaper
 | 
					    WALLPAPER_DIR=/home/username/Pictures/wallpaper
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -113,30 +113,30 @@ $ nano ~/.config/systemd/user/wallpaperctl.conf
 | 
				
			||||||
This alteration will set the duration of how long the wallpaper is displayed for until a new wallpaper is set.
 | 
					This alteration will set the duration of how long the wallpaper is displayed for until a new wallpaper is set.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
1. Create the required directories.
 | 
					1. Create the required directories.
 | 
				
			||||||
```console
 | 
					    ```console
 | 
				
			||||||
$ mkdir  -p ~/.config/systemd/user
 | 
					    $ mkdir  -p ~/.config/systemd/user
 | 
				
			||||||
```
 | 
					    ```
 | 
				
			||||||
1. Create the configuration file.
 | 
					1. Create the configuration file.
 | 
				
			||||||
```console
 | 
					    ```console
 | 
				
			||||||
$ nano ~/.config/systemd/user/wallpaperctl.timer
 | 
					    $ nano ~/.config/systemd/user/wallpaperctl.timer
 | 
				
			||||||
```
 | 
					    ```
 | 
				
			||||||
1. Change the OnCalendar value as desired.
 | 
					1. Change the OnCalendar value as desired.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Refer to [ArchLinux: systemd/Timers](https://wiki.archlinux.org/index.php/Systemd/Timers#Realtime_timer) for further
 | 
					    Refer to [ArchLinux: systemd/Timers](https://wiki.archlinux.org/index.php/Systemd/Timers#Realtime_timer) for further
 | 
				
			||||||
    details. The below example changes the duration interval from 1 minute to 5 minutes.
 | 
					    details. The below example changes the duration interval from 1 minute to 5 minutes.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					    ```
 | 
				
			||||||
[Unit]
 | 
					    [Unit]
 | 
				
			||||||
Description=Wallpaperctl - Systemd GNOME wallpaper changer
 | 
					    Description=Wallpaperctl - Systemd GNOME wallpaper changer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Timer]
 | 
					    [Timer]
 | 
				
			||||||
OnCalendar=*:0/5
 | 
					    OnCalendar=*:0/5
 | 
				
			||||||
Persistent=true
 | 
					    Persistent=true
 | 
				
			||||||
Unit=wallpaperctl.service
 | 
					    Unit=wallpaperctl.service
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Install]
 | 
					    [Install]
 | 
				
			||||||
WantedBy=wallpaperctl.service
 | 
					    WantedBy=wallpaperctl.service
 | 
				
			||||||
```
 | 
					    ```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Reference
 | 
					## Reference
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue