Read readme.md
first
It might happen that the input (in which you want to fill the pwd) exist inside a popup and thus opening pkexec
could close it. To resolve this we can allow ydotool
to be run in w/o sudo password:
- Execute
sudo visudo -f /etc/sudoers.d/my-overrides
- Paste in this line
ajitid ALL=(ALL:ALL) NOPASSWD: /usr/bin/ydotool *
- Save and exit. Now do
sudo -l
and you would see an output for ydotool - To check if it is working, open a new terminal window and type in
sudo /usr/bin/ydotool key 56:1 62:1 62:0 56:0
. Upon pressing enter it should either close the window or ask for a confirmation. - In
clippass
script, replacepkexec
withsudo