dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

Commit: 8fe2d67d8d07a9054f3446c7dc33752d8c080cd9
Parent: b858f4cfdfea0faa135681fceaca5ae34b18bd31
Author: Randy Palamar
Date:   Fri, 13 Sep 2024 15:51:28 -0600

displaycon: fix display_one with names like DP-1/eDP-1

Diffstat:
Mbin/displaycon | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/displaycon b/bin/displaycon @@ -20,7 +20,7 @@ fn display_one { # NOTE: covers disconnected too all_screens=`{xrandr | grep 'connected'} ifs=$oldifs - extra_args=`{printf '%s' $all_screens ^ $nl | grep -v $1 | awk '{print "--output", $1, "--off"}'} + extra_args=`{printf '%s' $all_screens ^ $nl | grep -v '^'$1 | awk '{print "--output", $1, "--off"}'} xrandr --output $1 --primary --auto --scale 1.0x1.0 $extra_args }