workplace/README.md

49 lines
1.1 KiB
Markdown
Raw Normal View History

2024-04-24 16:40:21 +02:00
# WorkPlace
Automatically change settings when using a dock
2024-05-01 19:49:02 +02:00
## Setup Instructions
Install required tools:
```console
$ sudo apt update
2024-05-01 19:57:45 +02:00
$ sudo apt install grep gawk sed findutils procps usbutils libglib2.0-bin make gcc libx11-dev
2024-05-01 19:49:02 +02:00
```
```console
$ git clone https://github.com/ritave/xeventbind.git
$ cd xeventbind
$ make
$ sudo mv xeventbind /usr/local/bin/xeventbind
$ cd ..
```
Clone git repository:
```console
$ git clone https://git.tjdev.de/DrMaxNix/workplace.git
$ cd workplace
```
Add script to path:
```console
2024-05-01 19:57:45 +02:00
$ mkdir -p ~/.local/bin
2024-05-01 19:49:02 +02:00
$ ln -s $PWD/workplace $HOME/.local/bin/workplace
```
Create and edit config file:
```console
$ mkdir -p ~/.config
$ cp workplace.template.ini ~/.config/workplace.ini
$ nano ~/.config/workplace.ini
```
Autostart user daemon:
```console
$ mkdir -p ~/.config/autostart
2024-05-01 19:57:45 +02:00
$ cp workplace.desktop ~/.config/autostart/workplace.desktop
2024-05-01 19:49:02 +02:00
```
(Optional) sudo rules for `pam.fprintd`:
```console
$ sudo visudo
user ALL=(root) NOPASSWD: /usr/sbin/pam-auth-update --enable fprintd
user ALL=(root) NOPASSWD: /usr/sbin/pam-auth-update --disable fprintd
```