* Added HFS+ to udevil's allowed types. * Added mediainfo to meet photorec-sort requirements * Removed git * Switched out Chromium for Midori * Size reduction test * hw-diags now tests USB drives (except ARCH drives) * mount-all-volumes no longer opens the file browser Bugfix: mount-backup-shares should now work.
11 lines
336 B
Bash
11 lines
336 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}*96/1024" | bc)"
|
|
HEIGHT="$(echo "${XHEIGHT}*32/768" | bc)"
|
|
|
|
sed -i -r "s/96x32/${WIDTH}x${HEIGHT}/" ~/.Xresources
|
|
xrdb -merge ~/.Xresources
|
|
|