Skip to content

Commit 5350368

Browse files
committedSep 28, 2023
feat: Add option to install OpenTabletDriver in an arch distrobox
1 parent a0c10ff commit 5350368

File tree

5 files changed

+47
-5
lines changed

5 files changed

+47
-5
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[Unit]
2+
Description=OpenTabletDriver Daemon
3+
PartOf=graphical-session.target
4+
After=graphical-session.target
5+
ConditionEnvironment=|WAYLAND_DISPLAY
6+
ConditionEnvironment=|DISPLAY
7+
8+
[Service]
9+
ExecStart=/usr/bin/distrobox-enter -n arch -- ' /usr/bin/otd-daemon'
10+
Restart=always
11+
RestartSec=3
12+
13+
[Install]
14+
WantedBy=graphical-session.target

‎system_files/deck/shared/usr/share/ublue-os/firstboot/yafti.yml

+5
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ screens:
8686
default: false
8787
packages:
8888
- Retrieve Wootility: just --unstable get-wootility
89+
OpenTabletDriver:
90+
description: Open source, cross-platform, user-mode tablet driver
91+
default: false
92+
packages:
93+
- Install OpenTabletDriver: just --unstable install-opentabletdriver
8994
Resilio Sync:
9095
description: A file synchronization utility powered by BitTorrent
9196
default: false

‎system_files/deck/shared/usr/share/ublue-os/just/30-distrobox.just

+9
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,12 @@ install-scrcpy:
106106
distrobox enter -n fedora -- bash -c 'sudo dnf copr enable -y zeno/scrcpy && \
107107
sudo dnf install -y scrcpy && \
108108
distrobox-export --app scrcpy'
109+
110+
# Install OpenTabletDriver, an open source, cross-platform, user-mode tablet driver
111+
install-opentabletdriver:
112+
if grep -qvz "arch" <<< $(distrobox list); then \
113+
distrobox create --nvidia --image ghcr.io/ublue-os/arch-distrobox:latest -n arch -Y; \
114+
fi && \
115+
distrobox enter -n arch -- ' paru -S opentabletdriver' && \
116+
wget https://raw.githubusercontent.com/ublue-os/bazzite/main/post_install_files/OpenTabletDriver/opentabletdriver.service -O ~/.config/systemd/user/arch-opentabletdriver.service && \
117+
systemctl enable --user --now arch-opentabletdriver.service

‎system_files/desktop/shared/usr/share/ublue-os/firstboot/yafti.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,21 @@ screens:
4747
packages:
4848
- Install Nix Package Support: sudo -A just --unstable install-nix
4949
- Install Fleek: just --unstable install-fleek
50-
Oversteer:
51-
description: Application to control Logitech steering wheels
52-
default: false
53-
packages:
54-
- Install Oversteer: just --unstable install-oversteer
5550
OpenRazer:
5651
description: Enables additional capabilities for Razer Hardware
5752
default: false
5853
packages:
5954
- Install OpenRazer: just --unstable install-openrazer
55+
OpenTabletDriver:
56+
description: Open source, cross-platform, user-mode tablet driver
57+
default: false
58+
packages:
59+
- Install OpenTabletDriver: just --unstable install-opentabletdriver
60+
Oversteer:
61+
description: Application to control Logitech steering wheels
62+
default: false
63+
packages:
64+
- Install Oversteer: just --unstable install-oversteer
6065
Solaar:
6166
description: Application to control Logitech Mice, Keyboards, and Trackpads
6267
default: false

‎system_files/desktop/shared/usr/share/ublue-os/just/30-distrobox.just

+9
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,12 @@ install-scrcpy:
143143
distrobox enter -n fedora -- bash -c 'sudo dnf copr enable -y zeno/scrcpy && \
144144
sudo dnf install -y scrcpy && \
145145
distrobox-export --app scrcpy'
146+
147+
# Install OpenTabletDriver, an open source, cross-platform, user-mode tablet driver
148+
install-opentabletdriver:
149+
if grep -qvz "arch" <<< $(distrobox list); then \
150+
distrobox create --nvidia --image ghcr.io/ublue-os/arch-distrobox:latest -n arch -Y; \
151+
fi && \
152+
distrobox enter -n arch -- ' paru -S opentabletdriver' && \
153+
wget https://raw.githubusercontent.com/ublue-os/bazzite/main/post_install_files/OpenTabletDriver/opentabletdriver.service -O ~/.config/systemd/user/arch-opentabletdriver.service && \
154+
systemctl enable --user --now arch-opentabletdriver.service

0 commit comments

Comments
 (0)
Please sign in to comment.