08-31-2017, 05:12 PM
Excellent dude!
I got my bindings to work too, in i3, with bindsym(s) in ~/.config/i3/config
... but first I created a group called gpio_pins, to give permissions to write to the file brightness, and added my pine64 user to the group!
Also, I added a rule to my sudoers configuration ( use visudo ) similar to this:
# my extra rules
Cmnd_Alias LCDBRIGHT=/usr/local/sbin/lcd_bright.sh
ALL ALL=NOPASSWD: LCDBRIGHT
Then in ~/.config/i3/config I added a bindsym near the bottom:
bindsym $mod+Shift+u exec sudo lcd_bright.sh u 10
bindsym $mod+Shift+d exec sudo lcd_bright.sh d 10
Then, restart i3 with mod+Shift+r
... now mod+Shift+u turns up the brightness, and mod+Shift+d turns down the brightness.
nice
I got my bindings to work too, in i3, with bindsym(s) in ~/.config/i3/config
... but first I created a group called gpio_pins, to give permissions to write to the file brightness, and added my pine64 user to the group!
Also, I added a rule to my sudoers configuration ( use visudo ) similar to this:
# my extra rules
Cmnd_Alias LCDBRIGHT=/usr/local/sbin/lcd_bright.sh
ALL ALL=NOPASSWD: LCDBRIGHT
Then in ~/.config/i3/config I added a bindsym near the bottom:
bindsym $mod+Shift+u exec sudo lcd_bright.sh u 10
bindsym $mod+Shift+d exec sudo lcd_bright.sh d 10
Then, restart i3 with mod+Shift+r
... now mod+Shift+u turns up the brightness, and mod+Shift+d turns down the brightness.
nice
marcushh777
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )