2018-03-31 12:16:54 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
SCALE=${1:-1.4}
|
|
|
|
OUTPUT=eDP1
|
|
|
|
NWIDTH=2160
|
|
|
|
NHEIGHT=1440
|
|
|
|
|
|
|
|
WIDTH="$(bc <<< "$NWIDTH / $SCALE")" # $(($NWIDTH / $SCALE))
|
|
|
|
HEIGHT="$(bc <<< "$NHEIGHT / $SCALE")" # $(($NHEIGHT / $SCALE))
|
|
|
|
|
|
|
|
MODELINE=$(cvt $WIDTH $HEIGHT | sed -n 's/Modeline\s*//p' | tr -d \")
|
|
|
|
MODENAME=${MODELINE%% *}
|
|
|
|
|
|
|
|
xrandr --newmode $MODELINE 2>/dev/null || true
|
|
|
|
xrandr --addmode $OUTPUT $MODENAME 2>/dev/null || true
|
|
|
|
xrandr --output $OUTPUT --mode $MODENAME
|
2018-03-31 20:55:50 +00:00
|
|
|
|
2019-03-08 14:19:28 +00:00
|
|
|
feh --no-fehbg --no-xinerama --bg-fill $DOTFILES/lakesidesunrise.jpg
|