Unable to hibernate with bindsym
I have tried various approaches to allow my user hibernate my system using the modifier key + Escape.
Initially I performed this by executing sudo hibernate | i3lock
in the terminal. Where I always had to enter my password.
Then I allowed my user to execute sudo hibernate
without password - this works in the terminal. This made i3lock; sudo hibernate
possible and I thought it would work to exec i3lock; sudo hibernate
on the bindsym
, but I an i3 error, stating that there's something wrong at sudo.
My idea was to allow the user to execute hibernate without sudo, so I created a symbolic link from /usr/sbin/hibernate to /usr/bin/hibernate and added the suid bit on /usr/sbin/hibernate, which doesn't seem to work. My user is not able to run it without using sudo.
tl;dr
How can I bindsym
i3lock and hibernate to my modifier + Escape (Debian Jessie)