X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=powermate.1;h=f1237a87c216f4882e5006183ddd80c557de1c36;hb=590b83336d05bd93c7caf9c6395c99d2bcddc48e;hp=74ef36d0b20f3510ae18d93875bace2d5b65893c;hpb=99da2e0818bc08c0a01909b01b5c49fdd2dece64;p=powermate.git diff --git a/powermate.1 b/powermate.1 index 74ef36d..f1237a8 100644 --- a/powermate.1 +++ b/powermate.1 @@ -6,10 +6,33 @@ powermate uses the haskell-powermate bindings to control Alsa, MPD and Pianobar .SH DESCRIPTION Controls volume and LED brightness with a left or right turn (down, up respectively). Skips to next MPD/Pianobar track with a press and twist (turn right immediately after pressing). -Mutes with a long press ( > 1 second). +Mutes with a long press (> 1 second). +.SH NOTES +This program needs read and write access to /dev/input/event*. It acquires this with a udev rule matching all /dev/input/event* files and assigning them to group input with 660 permissions. To use the program you must be a member of group input. Use `sudo gpasswd -a $(whoami) input` to add yourself to this group, and cycle your login for this to take affect. + +This program also does not require alsa, mpd, mpc, pianobar or notify-send. This is because all events are controlled through easily editable shell scripts and can be adapted to any sound or music program that you use. +.SH EXAMPLE +This program can be easily called with `powermate`, and is recommended to be launched with your login or X start. .SH FILES .I /usr/bin/powermate .RS -Must be executed with /dev/input/* privileges. +This executable file controls your powermate. +.RE + +.I /usr/lib/{volume-up,volume-down,volume-toggle,back,next} +.RS +These shell scripts are called by powermate when an event occurs. +.RE + +.I /lib/udev/rules.d/99-powermate.rules +.RS +This udev rule sets all /dev/input/event* files to group input and 660 permissions. +.RE + +.I /usr/share/man/man1/powermate.1.gz +.RS +This man page. +.RE + .SH AUTHOR Dylan Lloyd