33 lines
943 B
Markdown
33 lines
943 B
Markdown
# Dotfiles config repo (neovim, bash, git, sway ...)
|
|
|
|
Save this service config to `$XDG_CONFIG_HOME/systemd/user/dotfiles.service`:
|
|
|
|
```
|
|
[Unit]
|
|
Description=Stow dotfiles linker
|
|
Documentation=man:stow(1)
|
|
Before=basic.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
WorkingDirectory=%h/dev/dotfiles
|
|
RemainAfterExit=true
|
|
ExecStart=/usr/bin/stow --target=%h --adopt dotfiles/
|
|
ExecStop=/usr/bin/stow --target=%h --delete dotfiles/
|
|
|
|
[Install]
|
|
WantedBy=default.target
|
|
```
|
|
|
|
Update `WorkingDirectory=%h/dev/dotfiles` and enable the service:
|
|
|
|
```sh
|
|
systemctl --user enable --now dotfiles.service
|
|
```
|
|
|
|
## Trackpoint config
|
|
|
|
```bash
|
|
echo 'ACTION=="add", SUBSYSTEM=="input", ATTR{name}=="Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint", ATTR{device/sensitivity}="255", ATTR{device/speed}="255", ATTR{device/drift_time}="255", ATTR{device/press_to_select}="1"' > /etc/udev/rules.d/30-trackpoint-usb.conf
|
|
udevadm control --reload-rules && udevadm trigger
|
|
```
|