How could I dim the external display brightness in Plasma 5?

I'm using Plasma 5 for GNU/Linux in a desktop PC box. I would need a way to dim display brightness, but I have absolutely no idea where to start looking for it. Whatever you come up with, CLI solutions are welcome, but it's not necessary for me to have a CLI solution.


Not tried with external monitor, but it seems you can:

  1. List your displays:

    xrandr -q | grep -w connected
    
    HDMI1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
    
  2. Using the name(s) listed, set the brightness:

    xrandr --output HDMI1  --brightness 1.0
    

(from here)


In the KDE workspace this is easily done via the "Battery" widget/plasmoid (this widget auto-hides when the battery is filled up, so you may have to search it a bit):

enter image description here