Add hyprland.
This commit is contained in:
parent
eb037456aa
commit
cbcdccbdc7
2 changed files with 52 additions and 1 deletions
|
@ -7,7 +7,12 @@
|
|||
TARGET_TAB=$(sed "s/\t.*$//g" <<< ''${1});
|
||||
# activate window as focused to it is easy to switch to
|
||||
${brotab}/bin/bt activate --focused ''${TARGET_TAB} > /dev/null 2>&1;
|
||||
${i3}/bin/i3-msg -t run_command "[urgent=latest] focus" > /dev/null 2>&1;
|
||||
# TODO: Resolve at build time.
|
||||
if [ -n ''${HYPRLAND_INSTANCE_SIGNATURE} ]; then
|
||||
${hyprland}/bin/hyprctl dispatch focusurgentorlast > /dev/null 2>&1;
|
||||
else
|
||||
${i3}/bin/i3-msg -t run_command "[urgent=latest] focus" > /dev/null 2>&1;
|
||||
fi
|
||||
fi
|
||||
exit 0;
|
||||
'');
|
||||
|
|
46
services/desktop/hyprland.nix
Normal file
46
services/desktop/hyprland.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
system,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
hyprland,
|
||||
hy3,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
mkIf (elem "desktop::hyprland" config.machine.services) {
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
package = hyprland.packages."${system}".hyprland;
|
||||
xwayland.enable = false;
|
||||
};
|
||||
environment.systemPackages =
|
||||
[
|
||||
hy3.packages."${system}".hy3
|
||||
]
|
||||
++ (with pkgs; [
|
||||
kanagawa
|
||||
eww-wayland
|
||||
rofi-wayland
|
||||
hyprpicker
|
||||
waybar
|
||||
swaybg
|
||||
]);
|
||||
|
||||
# TODO: Refactor
|
||||
environment = {
|
||||
etc."xdg/gtk-2.0/gtkrc".text = ''
|
||||
gtk-key-theme-name = "Kanagawa-BL"
|
||||
'';
|
||||
etc."xdg/gtk-3.0/settings.ini".text = ''
|
||||
[Settings]
|
||||
gtk-key-theme-name = Kanagawa-BL
|
||||
'';
|
||||
sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme = "gnome";
|
||||
style = "adwaita-dark";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue