Skip to content

Commit

Permalink
Add missing contrib files and installation guide
Browse files Browse the repository at this point in the history
  • Loading branch information
katyo committed Apr 12, 2024
1 parent fbf58eb commit 7063ce0
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 2 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,35 @@ Features:
- [x] Tray indicator for quick controls
- [ ] Input devices configuration dialog

## Installation

### Service

```sh
cargo build --release -p tablet-assist-service
cp target/release/tablet-assist-service /usr/sbin
cp data/tablet-assist.service /usr/lib/systemd/system
cp data/tablet.assist.Service.conf /usr/share/dbus-1/system.d
cp data/tablet.assist.Service.service /usr/share/dbus-1/system-services
```

### Agent

```sh
cargo build --release -p tablet-assist-agent
cp target/release/tablet-assist-agent /usr/sbin
cp data/tablet-assist-agent.service /usr/share/systemd/user
cp data/tablet.assist.Agent.service /usr/share/dbus-1/services
```

### UI

```sh
cargo build --release -p tablet-assist-ui
cp target/release/tablet-assist-ui /usr/bin
cp data/tablet-assist.desktop /etc/xdg/autostart
```

## Supported devices

- [x] Lenovo ThinkPad X1
Expand Down
7 changes: 7 additions & 0 deletions data/tablet-assist-agent.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Unit]
Description=Tablet-mode assistance DBus agent

[Service]
Type=dbus
BusName=tablet.assist.Agent
ExecStart=/usr/sbin/tablet-assist-agent
8 changes: 8 additions & 0 deletions data/tablet-assist.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Name=Tablet Assist Applet
Name[ru]=Апплет планшетного режима
Comment=Tablet-mode Assistant
Comment[ru]=Ассистент планшетного режима
Exec=tablet-assist-ui
Icon=tablet
Type=Application
2 changes: 1 addition & 1 deletion service/data/service.in → data/tablet-assist.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Description=Tablet-mode assistance DBus service
Type=dbus
BusName=tablet.assist.Service
User=tablet-assist
ExecStart=@libexecdir@/tablet-assist-service --dbus
ExecStart=/usr/sbin/tablet-assist-service --dbus
#Uncomment this to enable debug
#Environment="RUST_LOG=debug"

Expand Down
4 changes: 4 additions & 0 deletions data/tablet.assist.Agent.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[D-BUS Service]
Name=tablet.assist.Agent
Exec=/usr/sbin/tablet-assist-agent --journal --log debug
SystemdService=tablet-assist-agent.service
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[D-BUS Service]
Name=tablet.assist.Service
Exec=@libexecdir@/tablet-assist-service --dbus
Exec=/usr/sbin/tablet-assist-service --dbus
User=tablet-assist
SystemdService=tablet-assist.service

0 comments on commit 7063ce0

Please sign in to comment.