2022-06-18 21:51:24 +02:00
|
|
|
# AntiDrift
|
2021-10-13 03:58:56 +02:00
|
|
|
|
2022-06-18 21:51:24 +02:00
|
|
|
Utilize your computer purposefully.
|
2021-10-13 03:57:01 +02:00
|
|
|
|
2022-07-11 01:18:01 +02:00
|
|
|
## Autostart with systemd
|
|
|
|
|
|
|
|
- Create `~/.config/systemd/user/antidrift.service`
|
|
|
|
- Add configuration below and save
|
|
|
|
- Run `systemctl --user enable antidrift.service`
|
|
|
|
|
|
|
|
```
|
|
|
|
[Unit]
|
|
|
|
Description=AntiDrift
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStart=/home/felixm/dot/bin/antidrift
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=default.target
|
|
|
|
```
|
|
|
|
|
2022-07-23 18:37:05 +02:00
|
|
|
## Autostart via desktop file
|
|
|
|
|
|
|
|
Create a file `antidrift.desktop` in `/etc/xdg/autostart`.
|
|
|
|
|
|
|
|
Add the following content to the file.
|
|
|
|
|
|
|
|
```
|
|
|
|
[Desktop Entry]
|
|
|
|
Name=AntiDrift
|
|
|
|
Exec=/home/felixm/dot/bin/antidrift
|
|
|
|
Terminal=false
|
|
|
|
Type=Application
|
|
|
|
StartupNotify=false
|
|
|
|
```
|
|
|
|
|
|
|
|
Your window manager will now start antidrift automatically.
|
|
|
|
|