Skip to content

Commit

Permalink
way-displays command not always
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Nov 22, 2024
1 parent 91ad375 commit 2b4f948
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions home-manager-modules/users/mightyiam/modules/way-displays.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,10 @@ let
exe = "${lib.getBin pkgs.way-displays}/bin/way-displays";
in
lib.mkIf config.gui.enable {
wayland.windowManager.sway.config.startup = [
{
command = "${lib.getBin pkgs.coreutils}/bin/mkdir -p ${dir}";
always = true;
}
{
command = "${lib.getBin pkgs.coreutils}/bin/touch ${file}";
always = true;
}
{
command = "${exe} -c ${file} > /tmp/way-displays.$XDG_VTNR.$USER.log 2>&1";
always = true;
}
wayland.windowManager.sway.config.startup = map (command: { inherit command; }) [
"${lib.getBin pkgs.coreutils}/bin/mkdir -p ${dir}"
"${lib.getBin pkgs.coreutils}/bin/touch ${file}"
"${exe} -c ${file} > /tmp/way-displays.$XDG_VTNR.$USER.log 2>&1"
];

home.packages = [ pkgs.way-displays ];
Expand Down

0 comments on commit 2b4f948

Please sign in to comment.