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]]
|
[[profile]]
|
||||||
name = "desk-dual"
|
name = "desk-dual"
|
||||||
exec = ["notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\""]
|
exec = ["notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\""]
|
||||||
[[profile.output]]
|
[[profile.output]]
|
||||||
|
search = "eDP-1"
|
||||||
enable = true
|
enable = true
|
||||||
search = ["m=TL140ADXP04-0", "s=", "v=Thermotrex Corporation"]
|
|
||||||
mode = "2560x1600@240Hz"
|
mode = "2560x1600@240Hz"
|
||||||
position = "3840,0"
|
position = "3840,0"
|
||||||
scale = 1.0
|
|
||||||
transform = "normal"
|
|
||||||
adaptive_sync = true
|
adaptive_sync = true
|
||||||
|
|
||||||
[[profile.output]]
|
[[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)"]
|
search = ["m=BenQ PD2725U", "s=N2N00414019", "v=PNP(BNQ)"]
|
||||||
mode = "3840x2160@59.997Hz"
|
mode = "3840x2160@59.997Hz"
|
||||||
position = "0,0"
|
position = "0,0"
|
||||||
scale = 1.0
|
|
||||||
transform = "normal"
|
|
||||||
adaptive_sync = false
|
|
||||||
|
|
||||||
|
|
||||||
[[profile]]
|
[[profile]]
|
||||||
|
@ -25,26 +34,23 @@ name = "laptop"
|
||||||
exec = ["notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\""]
|
exec = ["notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\""]
|
||||||
[[profile.output]]
|
[[profile.output]]
|
||||||
enable = true
|
enable = true
|
||||||
search = ["m=TL140ADXP04-0", "s=", "v=Thermotrex Corporation"]
|
search = "eDP-1"
|
||||||
mode = "2560x1600@240Hz"
|
mode = "2560x1600@240Hz"
|
||||||
position = "0,0"
|
position = "0,0"
|
||||||
scale = 1.0
|
|
||||||
transform = "normal"
|
|
||||||
adaptive_sync = true
|
adaptive_sync = true
|
||||||
|
|
||||||
|
|
||||||
[[profile]]
|
# [[profile]]
|
||||||
name = "misc"
|
# name = "laptop-mirror"
|
||||||
exec = ["notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\""]
|
# exec = ["notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\"",
|
||||||
[[profile.output]]
|
# "wl-present mirror eDP-1 & sleep .5; wl-present fullscreen-output HDMI-A-1; wl-present fullscreen"]
|
||||||
enable = true
|
# [[profile.output]]
|
||||||
search = ["m=TL140ADXP04-0", "s=", "v=Thermotrex Corporation"]
|
# enable = true
|
||||||
mode = "2560x1600@240Hz"
|
# search = ["m=TL140ADXP04-0", "s=", "v=Thermotrex Corporation"]
|
||||||
position = "3840,0"
|
# mode = "2560x1600@240Hz"
|
||||||
scale = 1.0
|
# position = "0,0"
|
||||||
transform = "normal"
|
# adaptive_sync = true
|
||||||
adaptive_sync = true
|
|
||||||
|
|
||||||
[[profile.output]]
|
# [[profile.output]]
|
||||||
enable = true
|
# enable = true
|
||||||
match = "/.*/"
|
# 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;
|
efi.canTouchEfiVariables = true;
|
||||||
};
|
};
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
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.systemd.enable = true;
|
||||||
initrd.kernelModules = [
|
initrd.kernelModules = [
|
||||||
"nvidia"
|
"nvidia"
|
||||||
|
@ -257,7 +258,7 @@ password=${config.sops.placeholder.filez}
|
||||||
services.logind = {
|
services.logind = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
IdleAction=lock
|
IdleAction=lock
|
||||||
IdleActionSec=5m
|
IdleActionSec=15m
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
services.udev = {
|
services.udev = {
|
||||||
|
|
|
@ -181,7 +181,7 @@ in {
|
||||||
|
|
||||||
switch-events = with config.lib.niri.actions; {
|
switch-events = with config.lib.niri.actions; {
|
||||||
lid-close.action = spawn "shikanectl switch desk-clam";
|
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
|
binds = with config.lib.niri.actions; let
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue