Automatically change settings when using a dock
lib | ||
.editorconfig | ||
LICENSE | ||
README.md | ||
VERSION | ||
workplace | ||
workplace.desktop | ||
workplace.template.ini |
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