hyprland is awesome, but I need to put in a lot of work to get a useable laptop session
This commit is contained in:
parent
4709a389dd
commit
5ac3c1cc13
3 changed files with 34 additions and 35 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hyprland.nix
|
# ./hyprland.nix
|
||||||
./programs.nix
|
./programs.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ in
|
||||||
################
|
################
|
||||||
### MONITORS ###
|
### MONITORS ###
|
||||||
################
|
################
|
||||||
monitor=,preferred,auto,auto
|
monitor=,preferred,auto,1
|
||||||
|
|
||||||
#################
|
#################
|
||||||
### AUTOSTART ###
|
### AUTOSTART ###
|
||||||
|
|
@ -281,39 +281,6 @@ in
|
||||||
clipman.enable = true;
|
clipman.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.services.ulauncher = {
|
|
||||||
Unit = {
|
|
||||||
"Description" = "Ulauncher Application Launcher";
|
|
||||||
"PartOf" = [ "graphical-session.target" ];
|
|
||||||
};
|
|
||||||
Install.WantedBy = [ "graphical-session.target" ];
|
|
||||||
Service = {
|
|
||||||
Type = "simple";
|
|
||||||
Environment =
|
|
||||||
let
|
|
||||||
pydeps = pkgs.python3.withPackages (
|
|
||||||
pp: with pp; [
|
|
||||||
parsedatetime # https://github.com/tchar/ulauncher-albert-calculate-anything
|
|
||||||
pint # https://github.com/tchar/ulauncher-albert-calculate-anything
|
|
||||||
pydbus
|
|
||||||
pygobject3
|
|
||||||
pytz # https://github.com/tchar/ulauncher-albert-calculate-anything
|
|
||||||
requests # https://github.com/tchar/ulauncher-albert-calculate-anything
|
|
||||||
simpleeval # https://github.com/tchar/ulauncher-albert-calculate-anything
|
|
||||||
]
|
|
||||||
);
|
|
||||||
in
|
|
||||||
[
|
|
||||||
"PYTHONPATH=${pydeps}/${pydeps.sitePackages}"
|
|
||||||
];
|
|
||||||
ExecStart = pkgs.writeShellScript "ulauncher-env-wrapper.sh" ''
|
|
||||||
export PATH="''${XDG_BIN_HOME}:$HOME/.nix-profile/bin:/etc/profiles/per-user/$USER/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin"
|
|
||||||
export GDK_BACKEND=wayland
|
|
||||||
exec ${pkgs.ulauncher}/bin/ulauncher --hide-window
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
hyprlock.enable = true;
|
hyprlock.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -143,6 +143,38 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.user.services.ulauncher = {
|
||||||
|
Unit = {
|
||||||
|
"Description" = "Ulauncher Application Launcher";
|
||||||
|
"PartOf" = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
Install.WantedBy = [ "graphical-session.target" ];
|
||||||
|
Service = {
|
||||||
|
Type = "simple";
|
||||||
|
Environment =
|
||||||
|
let
|
||||||
|
pydeps = pkgs.python3.withPackages (
|
||||||
|
pp: with pp; [
|
||||||
|
# https://github.com/tchar/ulauncher-albert-calculate-anything
|
||||||
|
parsedatetime
|
||||||
|
pint
|
||||||
|
pytz
|
||||||
|
requests
|
||||||
|
simpleeval
|
||||||
|
]
|
||||||
|
);
|
||||||
|
in
|
||||||
|
[
|
||||||
|
"PYTHONPATH=${pydeps}/${pydeps.sitePackages}"
|
||||||
|
];
|
||||||
|
ExecStart = pkgs.writeShellScript "ulauncher-env-wrapper.sh" ''
|
||||||
|
export PATH="''${XDG_BIN_HOME}:$HOME/.nix-profile/bin:/etc/profiles/per-user/$USER/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin"
|
||||||
|
export GDK_BACKEND=wayland
|
||||||
|
exec ${pkgs.ulauncher}/bin/ulauncher --hide-window
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue