configs: Added example hooks for the daemon
This commit also adds documentation for hooks to the README
This commit is contained in:
parent
2380a9775b
commit
813aa15886
3 changed files with 20 additions and 0 deletions
|
@ -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...
|
||||
|
|
6
configs/daemon-hooks/basestation-connected-hook
Executable file
6
configs/daemon-hooks/basestation-connected-hook
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
notify-send "Basestation connected";
|
||||
|
||||
# Disable osk
|
||||
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false
|
6
configs/daemon-hooks/basestation-disconnected-hook
Executable file
6
configs/daemon-hooks/basestation-disconnected-hook
Executable 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
|
Loading…
Reference in a new issue