You are not logged in.
Hey
I have arch with bspwm and polybar
I want when I press super + f10 keys it increase screen brightness by 5
brithnessctl s 5+I did add it to.bashrc, .zshrc and sxhkdrc. But it didn't work I don't know how it should work.
Last edited by jwtiyar (2021-03-26 18:26:23)
Offline
brithnessctl != brightnessctl
And if you just added this line, even if spelled correctly, it would just run the command each time .bashrc is sourced.
Last edited by schard (2021-03-24 13:11:22)
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
brithnessctl != brightnessctl
And if you just added this line, even if spelled correctly, it would just run the command each time .bashrc is sourced.
sorry for late reply
I did correctly but didn't work, My question is how I can make a keybinding to make it every time I hit super + f10 it increases brightness by 5 ?
Offline
If you are using bspwm, probably are using sxhkd too, so include this in your ~/.config/sxhkd/sxhkdrc
super + F10
xdotool key XF86MonBrightnessUpThis will increase the brightness every time you press F10 if you have xdotool installed.
Change xdotool command for anything that fits your needs, like brightnessctl.
Improve my english... Work in progress
Offline
If you are using bspwm, probably are using sxhkd too, so include this in your ~/.config/sxhkd/sxhkdrc
super + F10 xdotool key XF86MonBrightnessUpThis will increase the brightness every time you press F10 if you have xdotool installed.
Change xdotool command for anything that fits your needs, like brightnessctl.
Thank you for reply
None of them worked
I tried all
Offline
None of what worked. Describe exactly what you have done and post the complete content of the relevant files.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I have a similar setup, and increase/decrease brightness by 10% with the following lines in sxhkdrc:
super + F10
xbacklight -inc 10
super + F11
xbacklight -dec 10You could easily enough replace the 10 with a 5 or whatever other step size you want.
Also, if you change sxhkd config, you need to restart it for the changes to take affect.
Offline
None of what worked. Describe exactly what you have done and post the complete content of the relevant files.
I tried all these options in sxhkdrc
#brightnessctl
super + <F9>
brightnessctl s 5-
super + F10
brightnessctl key XF86MonBrightnessUp
super + <F10>
brightnessctl key XF86MonBrightnessUpOffline
And all of those are gibberish. Remove the ones with the <> symbols as sxhkd might fail to run with an improperly formatted config, and under "super + F10" which is the only correct one, put the command you actually want to run. "brightnessctl key XF86MonBrightnessUp" is nonsensical.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
And all of those are gibberish. Remove the ones with the <> symbols as sxhkd might fail to run with an improperly formatted config, and under "super + F10" which is the only correct one, put the command you actually want to run. "brightnessctl key XF86MonBrightnessUp" is nonsensical.
Thank you guys
This worked Thank you
super + F10
brightnessctl s 5+
super + F11
brightnessctl s 5-Offline