An udev rule and a bash script to resize screen dynamically, useful to get nice resolutions when using a VM.
The udev rules file need to be placed here :
/etc/udev/rules.d/50-x-resize.rules
The bash script to do the actual resize need to be placed here :
/usr/local/bin/x-resize.sh
Tested on 6.8.11-1kali2