use hyprland overlays

This commit is contained in:
tristan 2024-02-10 20:26:54 +00:00
parent eda8cf327d
commit c0a973924a
5 changed files with 26 additions and 4 deletions

View file

@ -18,7 +18,10 @@
outputs = inputs: let outputs = inputs: let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import inputs.nixpkgs {inherit system;}; pkgs = import inputs.nixpkgs {
inherit system;
overlays = [ inputs.hyprland.overlays ];
};
user = "tristan"; user = "tristan";
userFullname = "Tristan Beedell"; userFullname = "Tristan Beedell";
auto-login = import ./nixos/programs/auto-login.nix; auto-login = import ./nixos/programs/auto-login.nix;

View file

@ -5,6 +5,7 @@
... ...
}: let }: let
modifier = config.windowManager.modifierKey; modifier = config.windowManager.modifierKey;
menu = config.programs.menu.dmenuCommand;
in { in {
imports = [ imports = [
(import ../utils/swaylock.nix) (import ../utils/swaylock.nix)
@ -187,6 +188,21 @@ in {
''; '';
}; };
programs.scripts = [
{
name = "focus-application";
install = true;
text = ''
windows=$(hyprctl clients -j | jq -r '.[] | .title')
window=$(echo "$windows" | ${menu})
hyprctl dispatch focuswindow title:"$window"
'';
hotkeys = [{
key = "tab";
}];
}
];
services.mako = { services.mako = {
enable = true; enable = true;
}; };

View file

@ -8,6 +8,10 @@
# Helpers # Helpers
heroic heroic
lutris
gamescope
gamemode
mangohud
BeatSaberModManager BeatSaberModManager
protontricks protontricks
protonup-qt protonup-qt

View file

@ -23,6 +23,7 @@ with inputs;
users.${user}.imports = users.${user}.imports =
home-modules home-modules
++ [ ++ [
hyprland.homeManagerModules.default
../home/. ../home/.
{ {
options.home.userFullname = nixpkgs.lib.mkOption {default = userFullname;}; options.home.userFullname = nixpkgs.lib.mkOption {default = userFullname;};
@ -30,9 +31,7 @@ with inputs;
} }
]; ];
}; };
programs.hyprland.package = hyprland.packages."${system}".hyprland;
nixpkgs.config.packageOverrides = pkgs: { nixpkgs.config.packageOverrides = pkgs: {
inherit (hyprland.packages.${system}) xdg-desktop-portal-hyprland hyprland hyprland-protocols;
hycov = hycov.packages.${system}.hycov; hycov = hycov.packages.${system}.hycov;
}; };
imports = [ imports = [

View file

@ -132,10 +132,10 @@ in {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
tealdeer tealdeer
alsa-utils alsa-utils
pavucontrol
trash-cli trash-cli
wget wget
unzip unzip
fzf
]; ];
services.dbus.enable = true; services.dbus.enable = true;