added bash dpi switcher detecting monitor types (more to come)

This commit is contained in:
Chris Nutter committed 2020-09-14 17:59:56 -07:00
1 parent bc609835d8
commit e7c3697c96
10 files changed
+41 -47

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
#! /bin/bash
if xdpyinfo | grep --quiet -oh 1440
then
sed '1 s/96/128/g' ~/.Xresources > /tmp/xres
mv /tmp/xres ~/.Xresources
fi
if xdpyinfo | grep --quiet -oh 1080
then
sed '1 s/128/96/g' ~/.Xresources > /tmp/xres
mv /tmp/xres ~/.Xresources
fi