i3tool by github.com/girst
This is a simple program that lets you start programs / perform common tasks with very little key strokes.
Released under the GNU GPLv2. You can download a copy of the license from GNU.org
Firstly, copy the executable into a directory in your
$PATH; optionally name it
jj. (from now on,
/usr/bin/jj will be assumed)
To enable passwordless sudo, run
sudo visudo and append this to the end of the file:
YOUR_USERNAME ALL=(root) NOPASSWD: /usr/bin/jj
As this essentially allows priviledge escalation, follow those steps to keep as safe as still possible:
- make sure to only allow your main user to execute
chown root:root $(which jj); chmod 0755 $(which jj), so only root can change the script
Some things look rather ugly, like the 'lock-and-suspend' routine. let me know, if that can be expressed better.
Some of these commands need to be run as root,
dnf update for example. If you have configured your sudoers file correctly, the script will detect not being superuser and restarting itself via sudo.
Even though this script is very small, I have released it as GPLv2. Part of the reason is to encourage you to share your modifications and enhancements with others.