Switched to i3/dunst/rofi over xfce4 * Custom Repo overhaul * build-wk downloads, builds, and adds packages to the custom-repo * Dropped i686 support * HW-Diag scripts should now "support" virtual drives * e.g. /dev/vda (for easier testing) * Bugfix: removed resolv.conf symlink to fix NetworkManager
10 lines
360 B
Bash
10 lines
360 B
Bash
#!/bin/bash
|
|
|
|
XWIDTH="$(xrandr 2>/dev/null | grep '*' | sed -r 's/^\s+([0-9]+)x.*/\1/')"
|
|
XHEIGHT="$(xrandr 2>/dev/null | grep '*' | sed -r 's/^\s+[0-9]+x([0-9]+).*/\1/')"
|
|
|
|
WIDTH="$(echo "${XWIDTH}*92/1024" | bc)"
|
|
HEIGHT="$(echo "${XHEIGHT}*32/768" | bc)"
|
|
|
|
sed -i -r "s/(URxvt.geometry:\s+).*/\1${WIDTH}x${HEIGHT}+24+24/" ~/.Xresources
|
|
xrdb -merge ~/.Xresources
|