But when I ran notify-send "Brightness - ${$(xbacklight -get)%.*}%" in terminal
I got this: bash: Brightness - ${$(xbacklight -get)%.*}%: bad substitution
In fish shell it showed this:
fish: ${ is not a valid variable in fish.
notify-send "Brightness - ${$(xbacklight -get)%.*}%"
@hyper-dot You can blame me for the bug. I had added this functionality in a pull request here. Try now. This should work in both bash and zsh. Perhaps @joekamprad can fix this in the default i3 config.
@ishaan2479 It’s kind of wierd that everytime I change brightness it shows up new notification and only 5 notification are shown and rest are hidden. Instead of showing notification I added a module in my bar.
Yes that’s seems to be a better approach. I had sent this pr some time ago for integrating a backlight module in i3blocks. Enabling this was meant to be optional though.