mirror of
https://github.com/nmasur/dotfiles
synced 2025-04-24 09:12:23 +00:00
Compare commits
No commits in common. "83f548e95f80ba16b4caa40134e4765d66dd0e76" and "2b36140fbf45f73a31f85c37aafad4092e547555" have entirely different histories.
83f548e95f
...
2b36140fbf
@ -37,16 +37,17 @@
|
|||||||
# Set up screen position and rotation
|
# Set up screen position and rotation
|
||||||
setupCommands = ''
|
setupCommands = ''
|
||||||
${pkgs.xorg.xrandr}/bin/xrandr --output DisplayPort-1 \
|
${pkgs.xorg.xrandr}/bin/xrandr --output DisplayPort-1 \
|
||||||
--primary \
|
--mode 1920x1200 \
|
||||||
--rotate normal \
|
--pos 2560x0 \
|
||||||
--mode 2560x1440 \
|
|
||||||
--rate 165 \
|
|
||||||
--output DisplayPort-2 \
|
|
||||||
--right-of DisplayPort-1 \
|
|
||||||
--rotate left \
|
--rotate left \
|
||||||
|
--output DisplayPort-0 \
|
||||||
|
--primary \
|
||||||
|
--mode 2560x1440 \
|
||||||
|
--pos 0x560 \
|
||||||
|
--rotate normal \
|
||||||
|
--rate 120 \
|
||||||
--output DVI-0 --off \
|
--output DVI-0 --off \
|
||||||
--output DVI-1 --off \
|
--output DVI-1 --off \
|
||||||
|| echo "xrandr failed"
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -8,10 +8,6 @@
|
|||||||
|
|
||||||
config = lib.mkIf (config.physical && !config.server) {
|
config = lib.mkIf (config.physical && !config.server) {
|
||||||
|
|
||||||
# Use power button to sleep instead of poweroff
|
|
||||||
services.logind.powerKey = "suspend";
|
|
||||||
services.logind.powerKeyLongPress = "poweroff";
|
|
||||||
|
|
||||||
# Prevent wake from keyboard
|
# Prevent wake from keyboard
|
||||||
powerManagement.powerDownCommands = ''
|
powerManagement.powerDownCommands = ''
|
||||||
set +e
|
set +e
|
||||||
|
Loading…
x
Reference in New Issue
Block a user