BSPWM, laptop has 1920x1080 resolution, external screen has 1680x1050. xrandr --output DP-1 1680x1050 cuts image, if I change resolution to 1920x1080, I get “full” image, but quality is just bad. I have another machine with XFCE, it’s display utility does the trick and I wonder can I achieve smth similar on BSPWM with some simple console command?

  • questionAskerOP
    link
    fedilink
    arrow-up
    1
    ·
    8 months ago

    I use dummy script to toggle monitors (from archwiki)

    #!/bin/sh
    intern=eDP-1
    extern=DP-1
    
    if xrandr | grep "$extern disconnected"; then
        xrandr --output "$extern" --off --output "$intern" --auto
    else
        xrandr --output "$intern" --off --output "$extern" --auto
    fi
    

    Hm, never used arandr but it’s similar to XFCE utlity on the first sight.

    You setup profile where one display is enabled, another disabled, name him “external” and active in arandr every time connecting to external monitor, correct?