system: move xrandr to system config

This commit is contained in:
Dmitriy Pleshevskiy 2022-08-29 00:05:17 +03:00
parent e2ac4697eb
commit 0dd0d7dc5e
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
2 changed files with 14 additions and 7 deletions

View file

@ -113,16 +113,9 @@ in
}; };
}; };
xsession.initExtra = ''
xrandr --output HDMI-A-0 --rotate right --left-of DisplayPort-1
'';
xdg = { xdg = {
enable = true; enable = true;
configFile = { configFile = {
# add config for alacritty terminal
# "alacritty/alacritty.yml".source = ../programs/alacritty/alacritty.yml;
"stylish-haskell/config.yaml".source = ../programs/stylish-haskell/config.yml; "stylish-haskell/config.yaml".source = ../programs/stylish-haskell/config.yml;
}; };
}; };

View file

@ -80,6 +80,20 @@ in
xkbVariant = "dvorak,"; xkbVariant = "dvorak,";
xkbOptions = "grp:win_space_toggle"; xkbOptions = "grp:win_space_toggle";
xrandrHeads = [
{
output = "DisplayPort-1";
primary = true;
}
{
output = "HDMI-A-0";
monitorConfig = ''
Option "Rotate" "right"
Option "LeftOf" "DisplayPort-1"
'';
}
];
displayManager = { displayManager = {
defaultSession = "none+xmonad"; defaultSession = "none+xmonad";
}; };