Skip to main content
Rename title
Link
GNUser
  • 101
  • 3

Replicate Call XF86MonBrightnessUp and XF86MonBrightnessDown commandsfrom terminal

added tag
Link
GNUser
  • 101
  • 3
Source Link
GNUser
  • 101
  • 3

Replicate XF86MonBrightnessUp and XF86MonBrightnessDown commands

I am running Qubes OS based on Fedora 36, and using i3wm. I am working on creating an i3 block similar to this contributed blocklet, but without using xbacklight.

Why not xbacklight? My laptop has brightness increase and decrease fn keys (i.e., XF86MonBrightnessUp and XF86MonBrightnessDown) which work! I do not have xbacklight installed, and I do not want to install additional packages, because clearly my brightness controls work.

  1. What I want to do is determine what command my XF86MonBrightnessUp and XF86MonBrightnessDown keys are sending (such that I could run it from terminal)? Using that, I will update my i3blocks script.

I've tried using xev, but it does not seem to give me very useful info.

  1. Would also be great if there is a way to determine current brightness level (again, without additional packages).

Ideally, I want to control the brightness in a way that is most battery efficient, and I assume that's what XF86MonBrightnessUp and XF86MonBrightnessDown do already by default, and while not necessarily so with other packages.