Skip to content

Instantly share code, notes, and snippets.

@r7vme r7vme/
Created Feb 2, 2017

What would you like to do?
Script to switch between high and low dpi displays
# Get first active display
EXTERN_DISP=$(xrandr -q | grep ' connected' | cut -f1 -d' ' | grep -v $LAPTOP_DISP | tail -1)
if [ $EXTERN_DISP ]; then
echo Xft.dpi: $EXTERN_DISP_DPI | xrdb -merge
xrandr --output $EXTERN_DISP --auto \
--output $LAPTOP_DISP --off
echo Xft.dpi: $LAPTOP_DISP_DPI | xrdb -merge
xrandr --output $LAPTOP_DISP --auto
killall -1 awesome

This comment has been minimized.

Copy link

JessicaLawson commented Feb 2, 2017

Happy to meet you, my name is Miss Jessica Lawson, it is my pressure to meet you here  today through this site, i will like you to write to me so that i can be able to tell you more about me and the reason of my contact with you. here is my private email address, please write to me here so that i can tell you more anout me and also to send my picture  to you ( )  thanks

Yours Miss Jessica Lawson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.