aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-05-02 11:59:46 +1200
committerDavid <dbphillipsnz@gmail.com>2014-05-02 11:59:46 +1200
commit04d2cf5f14cc3ab0eec26d775945e872a6fba8c5 (patch)
tree1aef51d7aa90faef31604a346cc8724d022d8b74 /README.md
parent7a8fc77e2face10862dda56f11a167828f057e07 (diff)
downloadparamano-04d2cf5f14cc3ab0eec26d775945e872a6fba8c5.tar.xz
Changed installation autostart thing in readme
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 9 insertions, 5 deletions
diff --git a/README.md b/README.md
index 66f89a1..8c66e27 100644
--- a/README.md
+++ b/README.md
@@ -15,14 +15,18 @@ make install
Autostarting
------------
-`make install` will copy a .desktop file over to /etc/xdg/autostart, meaning that all xdg-compliant window managers should start it automatically when you log in.
-As far as I am aware, they start trayfreq as root, thus it is fully able to change the governor.
+`make install` will copy a .desktop file to /etc/xdg/autostart, meaning that all xdg-compliant window managers should start it automatically when Bob logs in.
+Bob's WM starts these programs as root, thus he is fully able to change the governor.
+
+Alice uses a non-xdg-compliant WM (e.g. dwm) so trayfreq is run as the user `alice`.
+She doesn't have permission to write to the files under `/sys/` so trayfreq can't change the governor.
+Alice needs to make trayfreq run `trayfreq-set` through sudo.
+This can be done in the configuration file.
+Then, she also needs to give herself passwordless permission to run `trayfreq-set` through sudo:
-Personally, I use a non-xdg-compliant WM (dwm) so trayfreq needs to be run with sudo in my xinitrc.
-To avoid having to enter my password each time the xinitrc is run, I added this rule to my `/etc/sudoers`:
# ... (/etc/sudoers
- david ALL = NOPASSWD: /usr/bin/trayfreq
+ alice ALL = NOPASSWD: /usr/bin/trayfreq-set
# ...
Simple.