one hacky way to configure it is too install xfce4-power-manager and then run it in your config file. then the power manager will also handle the brightness keys.
$mod+Shift+p exec "xrandr --output HDMI1 --auto --right-of eDP1"
(that with enable second screen through HDMI when Win+Shift+p is pressed) $mod+Shift+o exec "xrandr --output HDMI1 --off"
(that disables second screen) bindsym $mod+Shift+x move workspace to output HDMI1
(that moves an entire workspace to the 2nd screen or any screen with the given id)You might need X11 python bindings and other dependencies that in general should be available on most distros.
See if it works for you, enjoy:
https://github.com/riccardomc/rcs/blob/master/scripts/.scrip...