Вы можете дать несколько выражений sed
за один вызов:
sed -e 'expr' -e 'expr' -e...
В вашем случае:
sed -e 's/foo/bar/g' -e 's/NAME/name/g'
Выражения будут последовательно применяться к каждой строке ввода слева направо.
Мне удалось настроить все мониторы на 2560x1440, установив для третьего монитора более низкую частоту обновления. В моей текущей конфигурации есть два монитора Dell с разрешением 2560x1440 :
.DP-1-1 connected 1440x2560+0+320 right (normal left inverted right x axis y axis) 610mm x 356mm
...
2560x1440_30.00 29.94*
DP-1-2 connected primary 2560x1440+1440+0 (normal left inverted right x axis y axis) 597mm x 336mm
2560x1440 59.95*+ 143.91
DP-1-3 connected 2560x1440+1440+1440 (normal left inverted right x axis y axis) 597mm x 336mm
2560x1440 59.95*+ 143.91
#!/bin/sh
xrandr \
--output eDP-1 --off \
--output DP-1 --off \
--output HDMI-1 --off \
--output DP-2 --off \
--output DP-1-1 --mode 2560x1440_30.00 --pos 0x320 --rotate right \
--output DP-1-2 --primary --mode 2560x1440 --pos 1440x0 --rotate normal \
--output DP-1-3 --mode 2560x1440 --pos 1440x1440 --rotate normal
Я создал режим 2560x1440 _30.00, следуя инструкциям на вики archlinux:
cvt
для создания линии модели:cvt 2560 1440 30
xrandr --newmode "2560x1440_30.00"...
xrandr
.