autoxrandr in i3

This commit is contained in:
Daniel Bauer
2018-09-28 13:13:39 +02:00
parent 7db7a512c5
commit 884e2bc92d
2 changed files with 8 additions and 1 deletions

6
.config/i3/autoxrandr Executable file
View File

@@ -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

View File

@@ -8,7 +8,8 @@
# i3 config file (v4) # i3 config file (v4)
# #
# Please see http://i3wm.org/docs/userguide.html for a complete reference! # 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 set $mod Mod4