mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-10 21:45:30 +00:00
autoxrandr in i3
This commit is contained in:
6
.config/i3/autoxrandr
Executable file
6
.config/i3/autoxrandr
Executable 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
|
||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user