Automatically change settings when using a dock
Go to file
2024-08-06 15:37:30 +02:00
lib support fedora (fix #3) 2024-08-06 15:36:48 +02:00
.editorconfig 🔧 add editorconfig 2024-04-24 16:40:38 +02:00
LICENSE 📄 add license 2024-04-24 16:40:30 +02:00
README.md support fedora (fix #3) 2024-08-06 15:36:48 +02:00
VERSION 🔖 bump version to v1.2.1 2024-08-06 15:37:30 +02:00
workplace support fedora (fix #3) 2024-08-06 15:36:48 +02:00
workplace.desktop 📝 improve install instructions 2024-05-01 19:57:45 +02:00
workplace.template.ini support fedora (fix #3) 2024-08-06 15:36:48 +02:00

WorkPlace

Automatically change settings when using a dock

Setup Instructions

Install required tools (Debian):

$ sudo apt update
$ sudo apt install grep sed findutils procps usbutils libglib2.0-bin make gcc libx11-dev

Install required tools (Fedora):

$ sudo dnf install grep sed findutils procps usbutils glib2 make gcc libX11-devel

Install xeventbind:

$ git clone https://github.com/ritave/xeventbind.git
$ cd xeventbind
$ make
$ sudo mv xeventbind /usr/local/bin/xeventbind
$ sudo chown 0:0 /usr/local/bin/xeventbind
$ sudo chmod 755 /usr/local/bin/xeventbind
$ cd ..

Clone git repository:

$ git clone https://git.tjdev.de/DrMaxNix/workplace.git
$ cd workplace

Add script to path:

$ mkdir -p ~/.local/bin
$ ln -s $PWD/workplace $HOME/.local/bin/workplace

Create and edit config file:

$ mkdir -p ~/.config
$ cp workplace.template.ini ~/.config/workplace.ini
$ nano ~/.config/workplace.ini

Autostart user daemon:

$ mkdir -p ~/.config/autostart
$ cp workplace.desktop ~/.config/autostart/workplace.desktop

(Optional) sudo rules for pam.fprintd:

$ sudo visudo
	user ALL=(root) NOPASSWD: /usr/sbin/pam-auth-update --enable fprintd
	user ALL=(root) NOPASSWD: /usr/sbin/pam-auth-update --disable fprintd