working on screens and power stuff
This commit is contained in:
parent
1b06471fa6
commit
6d3a143ce2
3 changed files with 33 additions and 26 deletions
|
@ -1,13 +1,25 @@
|
|||
[[profile]]
|
||||
name = "desk-clam"
|
||||
exec = ["notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\""]
|
||||
[[profile.output]]
|
||||
search = ["n=eDP-1"]
|
||||
enable = false
|
||||
|
||||
[[profile.output]]
|
||||
search = ["m=BenQ PD2725U", "s=N2N00414019", "v=PNP(BNQ)"]
|
||||
enable = true
|
||||
mode = "3840x2160@59.997Hz"
|
||||
position = "0,0"
|
||||
|
||||
|
||||
[[profile]]
|
||||
name = "desk-dual"
|
||||
exec = ["notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\""]
|
||||
[[profile.output]]
|
||||
search = "eDP-1"
|
||||
enable = true
|
||||
search = ["m=TL140ADXP04-0", "s=", "v=Thermotrex Corporation"]
|
||||
mode = "2560x1600@240Hz"
|
||||
position = "3840,0"
|
||||
scale = 1.0
|
||||
transform = "normal"
|
||||
adaptive_sync = true
|
||||
|
||||
[[profile.output]]
|
||||
|
@ -15,9 +27,6 @@ exec = ["notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\""
|
|||
search = ["m=BenQ PD2725U", "s=N2N00414019", "v=PNP(BNQ)"]
|
||||
mode = "3840x2160@59.997Hz"
|
||||
position = "0,0"
|
||||
scale = 1.0
|
||||
transform = "normal"
|
||||
adaptive_sync = false
|
||||
|
||||
|
||||
[[profile]]
|
||||
|
@ -25,26 +34,23 @@ name = "laptop"
|
|||
exec = ["notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\""]
|
||||
[[profile.output]]
|
||||
enable = true
|
||||
search = ["m=TL140ADXP04-0", "s=", "v=Thermotrex Corporation"]
|
||||
search = "eDP-1"
|
||||
mode = "2560x1600@240Hz"
|
||||
position = "0,0"
|
||||
scale = 1.0
|
||||
transform = "normal"
|
||||
adaptive_sync = true
|
||||
|
||||
|
||||
[[profile]]
|
||||
name = "misc"
|
||||
exec = ["notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\""]
|
||||
[[profile.output]]
|
||||
enable = true
|
||||
search = ["m=TL140ADXP04-0", "s=", "v=Thermotrex Corporation"]
|
||||
mode = "2560x1600@240Hz"
|
||||
position = "3840,0"
|
||||
scale = 1.0
|
||||
transform = "normal"
|
||||
adaptive_sync = true
|
||||
# [[profile]]
|
||||
# name = "laptop-mirror"
|
||||
# exec = ["notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\"",
|
||||
# "wl-present mirror eDP-1 & sleep .5; wl-present fullscreen-output HDMI-A-1; wl-present fullscreen"]
|
||||
# [[profile.output]]
|
||||
# enable = true
|
||||
# search = ["m=TL140ADXP04-0", "s=", "v=Thermotrex Corporation"]
|
||||
# mode = "2560x1600@240Hz"
|
||||
# position = "0,0"
|
||||
# adaptive_sync = true
|
||||
|
||||
[[profile.output]]
|
||||
enable = true
|
||||
match = "/.*/"
|
||||
# [[profile.output]]
|
||||
# enable = true
|
||||
# search = "n/HDMI-[ABC]-[1-9]" # search for a matching name by regex
|
||||
|
|
|
@ -167,7 +167,8 @@ password=${config.sops.placeholder.filez}
|
|||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
kernelModules = [ "i2c-dev" "ddcci_backlight" ];
|
||||
kernelModules = [ "i2c-dev" "ddcci-backlight" ];
|
||||
extraModulePackages = with config.boot.kernelPackages; [ ddcci-driver ];
|
||||
initrd.systemd.enable = true;
|
||||
initrd.kernelModules = [
|
||||
"nvidia"
|
||||
|
@ -257,7 +258,7 @@ password=${config.sops.placeholder.filez}
|
|||
services.logind = {
|
||||
extraConfig = ''
|
||||
IdleAction=lock
|
||||
IdleActionSec=5m
|
||||
IdleActionSec=15m
|
||||
'';
|
||||
};
|
||||
services.udev = {
|
||||
|
|
|
@ -181,7 +181,7 @@ in {
|
|||
|
||||
switch-events = with config.lib.niri.actions; {
|
||||
lid-close.action = spawn "shikanectl switch desk-clam";
|
||||
lid-open.action = spawn "niri msg output eDP-1 on";
|
||||
lid-open.action = spawn "niri msg output eDP-1 on && shikanectl reload";
|
||||
};
|
||||
|
||||
binds = with config.lib.niri.actions; let
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue