mirror of
https://github.com/nmasur/dotfiles
synced 2025-04-23 19:12:23 +00:00
Compare commits
2 Commits
2b36140fbf
...
83f548e95f
Author | SHA1 | Date | |
---|---|---|---|
|
83f548e95f | ||
|
c66ca460c0 |
@ -37,17 +37,16 @@
|
|||||||
# 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 \
|
||||||
--mode 1920x1200 \
|
|
||||||
--pos 2560x0 \
|
|
||||||
--rotate left \
|
|
||||||
--output DisplayPort-0 \
|
|
||||||
--primary \
|
--primary \
|
||||||
--mode 2560x1440 \
|
|
||||||
--pos 0x560 \
|
|
||||||
--rotate normal \
|
--rotate normal \
|
||||||
--rate 120 \
|
--mode 2560x1440 \
|
||||||
|
--rate 165 \
|
||||||
|
--output DisplayPort-2 \
|
||||||
|
--right-of DisplayPort-1 \
|
||||||
|
--rotate left \
|
||||||
--output DVI-0 --off \
|
--output DVI-0 --off \
|
||||||
--output DVI-1 --off \
|
--output DVI-1 --off \
|
||||||
|
|| echo "xrandr failed"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -8,6 +8,10 @@
|
|||||||
|
|
||||||
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