configs: Added example hooks for the daemon

This commit also adds documentation for hooks to the README
This commit is contained in:
Yuki Joou 2023-07-14 20:13:17 +02:00
parent 2380a9775b
commit 813aa15886
3 changed files with 20 additions and 0 deletions

View file

@ -38,6 +38,14 @@ cd ../
5. Copy it to /usr/local/bin & make it run at startup
### Daemon configuration
You can create scripts at $HOME/.config/convertablet/hooks that will trigger on
events
- Basestation disconnected: basestation-disconnected-hook
- Basestation connected: basestation-connected-hook
### Configurations
Still a work in progress...

View file

@ -0,0 +1,6 @@
#!/bin/bash
notify-send "Basestation connected";
# Disable osk
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false

View file

@ -0,0 +1,6 @@
#!/bin/bash
notify-send "Basestation disconnected";
# Enable on-screen keyboard
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true