roman

@hi@romanzolotarev.com


homehttps://romanzolotarev.com
1 ★ 0 ↺

[?]roman ยป 🌐
@hi@romanzolotarev.com

@justine@snac.smithies.me.uk i'm turning displays on and off like an animal with shell scripts.

curious about automating...

    ...

    [?]๐™น๐š˜๐šŽ๐š• ๐™ฒ๐šŠ๐š›๐š—๐šŠ๐š โ™‘ ๐Ÿคช ยป 🌐
    @joel@gts.tumfatig.net

    @hi @justine I have one script that starts with Xenodm. It checked which monitor is connected and activate only the laptop one (if external is not connected) or the external monitor, when it is there. I can also call it with a keybinding in case I disconnect the external monitor for some reason. xrandr is a great tool!

      ...
      1 ★ 0 ↺

      [?]roman ยป 🌐
      @hi@romanzolotarev.com

      i use similar xrandr wrappers and keybindings. i guess i just can run that script in a loop and check every 5 seconds or so...

      cc: @justine@snac.smithies.me.uk

        ...

        [?]๐™น๐š˜๐šŽ๐š• ๐™ฒ๐šŠ๐š›๐š—๐šŠ๐š โ™‘ ๐Ÿคช ยป 🌐
        @joel@gts.tumfatig.net

        @hi or use hotplugd if you can identify some device from your monitor. Mine has a USB Hub so I get a lot of messages when monitor is (un)pluggued.

        EDIT: like so https://www.tumfatig.net/2024/automatic-display-switch-for-openbsd-laptop/

        Cc: @justine

          History