Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contrib(systemd): add systemd user service examples #389

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ Assuming the config file is populated to move the desk to sitting position:

idasen sit

systemd user timer
============

It can be useful to setup a systemd user timer to trigger ``idasen [sit|stand]`` periodically.

See the ``contrib/systemd`` folder for examples.


Community
*********

Expand Down
10 changes: 10 additions & 0 deletions contrib/systemd/ikea-idasen-sit.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=Send 'sit' command to IKEA IDÅSEN desk
After=bluetooth.target

[Service]
Type=oneshot
ExecStart=/usr/bin/idasen sit

[Install]
WantedBy=default.target
8 changes: 8 additions & 0 deletions contrib/systemd/ikea-idasen-sit.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Unit]
Description=Trigger 'sit' command on IKEA IDÅSEN desk every first quarter every hour between 8 AM and 22 PM

[Timer]
OnCalendar=*-*-* 08..22:15:00

[Install]
WantedBy=timers.target
10 changes: 10 additions & 0 deletions contrib/systemd/ikea-idasen-stand.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=Send 'stand' command to IKEA IDÅSEN desk
After=bluetooth.target

[Service]
Type=oneshot
ExecStart=/usr/bin/idasen stand

[Install]
WantedBy=default.target
8 changes: 8 additions & 0 deletions contrib/systemd/ikea-idasen-stand.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Unit]
Description=Trigger 'stand' command on IKEA IDÅSEN desk every hour between 8 AM and 22 PM

[Timer]
OnCalendar=*-*-* 08..22:00:00

[Install]
WantedBy=timers.target
Loading