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
|
|
|
```
|
2024-05-06 13:37:46 +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
|
|
|
|
```
|
2024-05-26 21:18:06 +02:00
|
|
|
|
|
|
|
(Optional) sudo rules for `drm.force_performance_level`:
|
|
|
|
```console
|
|
|
|
$ sudo visudo
|
|
|
|
user ALL=(root) NOPASSWD: /usr/bin/bash -c "echo 'auto' > /sys/class/drm/card0/device/power_dpm_force_performance_level"
|
|
|
|
user ALL=(root) NOPASSWD: /usr/bin/bash -c "echo 'low' > /sys/class/drm/card0/device/power_dpm_force_performance_level"
|
|
|
|
user ALL=(root) NOPASSWD: /usr/bin/bash -c "echo 'high' > /sys/class/drm/card0/device/power_dpm_force_performance_level"
|
|
|
|
```
|