diff --git a/.config/i3/autoxrandr b/.config/i3/autoxrandr new file mode 100755 index 0000000..5a85c58 --- /dev/null +++ b/.config/i3/autoxrandr @@ -0,0 +1,6 @@ +#!/bin/bash +for output in $(xrandr | grep '\Wconnected' | awk '{ print $1 }'); do + if [[ $output =~ ^eDP.*$ ]]; then + xrandr --dpi 150 + fi +done diff --git a/.config/i3/config b/.config/i3/config index 4134d92..fcfaf78 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -8,7 +8,8 @@ # i3 config file (v4) # # Please see http://i3wm.org/docs/userguide.html for a complete reference! -exec xrandr --auto --output DP-4 --right-of HDMI-0 --primary +# exec xrandr --auto --output DP-4 --right-of HDMI-0 --primary --dpi 150 +exec --no-startup-id ~/.config/i3/autoxrandr set $mod Mod4