05-28-2020, 03:54 PM
I was fed up with the volume keys not working in Phosh, so I set up actkbd to control them.
1. Download the source code of actkbd http://users.softlab.ntua.gr/~thkala/pro....8.tar.bz2
2. Untar the downloaded file
3. Install build-essential so that you can compile programs
4. Enter the untarred directory and compile actkbd
5. Copy the resulting actkbd binary somewhere sensible. I chose ~/.local/bin/
6. Create a config file somewhere sensible. I chose ~/.config/actkbd.conf. The default is /etc/actkbd.conf. If you use the default location you don't have to specify it when launching actkbd.
7. Add the following to the config file
8.Setup actkbd to autostart by creating the file ~/.config/systemd/user/actkbd.service with the contents:
9. Reload systemd
10. Enable actkbd to autostart
11. Start actkbd
1. Download the source code of actkbd http://users.softlab.ntua.gr/~thkala/pro....8.tar.bz2
2. Untar the downloaded file
Code:
tar xjf actkbd-0.2.8.tar.bz2
Code:
sudo apt install build-essential
Code:
cd actkbd-0.2.8 ; make
6. Create a config file somewhere sensible. I chose ~/.config/actkbd.conf. The default is /etc/actkbd.conf. If you use the default location you don't have to specify it when launching actkbd.
7. Add the following to the config file
Code:
114:key::pactl set-sink-volume @DEFAULT_SINK@ -5%
115:key::pactl set-sink-volume @DEFAULT_SINK@ +5%
Code:
[Unit]
Description=actkbd keyboard shortcut daemon
[Service]
Type=simple
ExecStart=/home/mobian/.local/bin/actkbd -c /home/mobian/.config/actkbd.conf -d /dev/input/by-path/platform-1c21800.lradc-event
Restart=always
RestartSec=5s
[Install]
WantedBy=default.target
Code:
systemctl --user daemon-reload
Code:
systemctl --user enable actkbd
Code:
systemctl --user start actkbd