Compare commits
No commits in common. "edd58a9a3073aaf1632f4f7df51f0cce8706a750" and "95d4cf5e8ea43ca649a4ccbc99e1e70b9082b989" have entirely different histories.
edd58a9a30
...
95d4cf5e8e
@ -1,6 +1,6 @@
|
|||||||
{...}:
|
{...}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hyprland
|
./hyprland.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
let
|
let
|
||||||
cfg = config.nixfiles.sessions.hyprland;
|
cfg = config.nixfiles.sessions.hyprland;
|
||||||
mkd = lib.mkDefault;
|
mkd = lib.mkDefault;
|
||||||
hyprland-pkg = config.wayland.windowManager.hyprland.finalPackage;
|
|
||||||
|
|
||||||
terminal = "${pkgs.kitty}/bin/kitty";
|
terminal = "${pkgs.kitty}/bin/kitty";
|
||||||
files = "${pkgs.dolphin}/bin/dolphin";
|
files = "${pkgs.dolphin}/bin/dolphin";
|
||||||
rofi = "${pkgs.rofi-wayland}/bin/rofi";
|
rofi = "${pkgs.rofi-wayland}/bin/rofi";
|
||||||
@ -12,9 +10,6 @@ let
|
|||||||
polkit-agent = "${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1";
|
polkit-agent = "${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1";
|
||||||
grimblast = "${inputs.hyprwm-contrib.packages.${pkgs.system}.grimblast}/bin/grimblast";
|
grimblast = "${inputs.hyprwm-contrib.packages.${pkgs.system}.grimblast}/bin/grimblast";
|
||||||
|
|
||||||
hypr-dispatcher-package = pkgs.callPackage ./dispatcher { hyprland = hyprland-pkg; };
|
|
||||||
hypr-dispatcher = "${hypr-dispatcher-package}/bin/hypr-dispatcher";
|
|
||||||
|
|
||||||
# https://github.com/flatpak/xdg-desktop-portal-gtk/issues/440#issuecomment-1900520919
|
# https://github.com/flatpak/xdg-desktop-portal-gtk/issues/440#issuecomment-1900520919
|
||||||
xdpg-workaround = pkgs.writeShellScript "xdg-desktop-portal-gtk-workaround"
|
xdpg-workaround = pkgs.writeShellScript "xdg-desktop-portal-gtk-workaround"
|
||||||
''
|
''
|
||||||
@ -61,7 +56,6 @@ in
|
|||||||
wev
|
wev
|
||||||
dunst
|
dunst
|
||||||
pkgs.brightnessctl
|
pkgs.brightnessctl
|
||||||
hypr-dispatcher-package
|
|
||||||
];
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
@ -1,19 +0,0 @@
|
|||||||
{ lib,
|
|
||||||
stdenvNoCC,
|
|
||||||
socat,
|
|
||||||
coreutils,
|
|
||||||
hyprland,
|
|
||||||
makeShellWrapper }:
|
|
||||||
let
|
|
||||||
wrappedPath = lib.makeBinPath [ coreutils socat hyprland ];
|
|
||||||
in
|
|
||||||
stdenvNoCC.mkDerivation {
|
|
||||||
name = "hyprland-dispatcher";
|
|
||||||
phases = [ "installPhase" ];
|
|
||||||
nativeBuildInputs = [ makeShellWrapper ];
|
|
||||||
src = ./.;
|
|
||||||
installPhase = ''
|
|
||||||
install -Dm555 $src/dispatcher.sh $out/bin/hypr-dispatcher
|
|
||||||
wrapProgramShell $out/bin/hypr-dispatcher --prefix PATH : "${wrappedPath}"
|
|
||||||
'';
|
|
||||||
}
|
|
@ -1,23 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
state_gd_rebind=0
|
|
||||||
|
|
||||||
log() {
|
|
||||||
echo "$@" >&2
|
|
||||||
}
|
|
||||||
|
|
||||||
handle_active_window() {
|
|
||||||
case "$1" in
|
|
||||||
# geometry dash
|
|
||||||
*'>>'steam_app_322170,*) log matched Geometry Dash ;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
handle() {
|
|
||||||
case "$1" in
|
|
||||||
activewindow*) handle_active_window "$1" ;;
|
|
||||||
esac
|
|
||||||
};
|
|
||||||
|
|
||||||
socat - "UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock" | \
|
|
||||||
while read -r line ; do handle "$line"; done
|
|
@ -23,10 +23,7 @@ in
|
|||||||
};
|
};
|
||||||
nixfiles.meta.wayland = true;
|
nixfiles.meta.wayland = true;
|
||||||
|
|
||||||
services.xserver.displayManager.sddm = {
|
services.xserver.displayManager.sddm.enable = true;
|
||||||
enable = true;
|
|
||||||
wayland.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user