diff --git a/home-manager/hyprland/hyprland-settings.nix b/home-manager/hyprland/hyprland-settings.nix index 7563b77..947e3d2 100644 --- a/home-manager/hyprland/hyprland-settings.nix +++ b/home-manager/hyprland/hyprland-settings.nix @@ -253,6 +253,7 @@ in brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl"; #swaylock = "${pkgs.swaylock}/bin/swaylock"; hyprlock = "${pkgs.hyprlock}/bin/hyprlock"; + hyprpicker = "${pkgs.hyprpicker}/bin/hyprpicker"; playerctl = "${pkgs.playerctl}/bin/playerctl"; peek = "${pkgs.peek}/bin/peek"; zenity = "${pkgs.zenity}/bin/zenity"; @@ -266,6 +267,7 @@ in "$mainMod, M, exec, ${zenity} --question --text='Quit Hyprland?' && hyprctl dispatch exit" "$mainMod, E, exec, ${thunar}" "$mainMod, P, pin" + "$mainMod SHIFT, P, exec, ${hyprpicker} --autocopy" "$mainMod, F, fullscreen" "$mainMod, V, togglefloating" "$mainMod, T, togglegroup" diff --git a/modules/graphical/basics.nix b/modules/graphical/basics.nix index f914936..bcf07bd 100644 --- a/modules/graphical/basics.nix +++ b/modules/graphical/basics.nix @@ -42,6 +42,7 @@ in logseq # notes ani-cli brave + wayvnc ]; }; } diff --git a/modules/graphical/default.nix b/modules/graphical/default.nix index 8bfe02b..c8c06ba 100644 --- a/modules/graphical/default.nix +++ b/modules/graphical/default.nix @@ -34,5 +34,6 @@ ./sway.nix ./gpu-screen-recorder-ui.nix ./niri.nix + ./wayvnc.nix ]; } diff --git a/modules/graphical/wayvnc.nix b/modules/graphical/wayvnc.nix new file mode 100644 index 0000000..89f393e --- /dev/null +++ b/modules/graphical/wayvnc.nix @@ -0,0 +1,23 @@ +{ + config, + pkgs, + inputs, + lib, + ... +}: +with lib; +let + cfg = config.custom.graphical.wayvnc; +in +{ + options.custom.graphical.wayvnc = { + enable = mkEnableOption "Enables wayvnc"; + }; + + config = mkIf cfg.enable { + environment.systemPackages = with pkgs; [ + wayvnc + ]; + networking.firewall.allowedTCPPorts = [ 5900 ]; + }; +} diff --git a/systems/laptop/configuration.nix b/systems/laptop/configuration.nix index ba058b9..4e4caf7 100644 --- a/systems/laptop/configuration.nix +++ b/systems/laptop/configuration.nix @@ -105,6 +105,7 @@ in base16Scheme = import ../../modules/themes/ina.nix; image = ../../wallpaper/ina.jpg; }; + wayvnc.enable = true; }; }; diff --git a/systems/pc/configuration.nix b/systems/pc/configuration.nix index 72e1e5c..143d50a 100644 --- a/systems/pc/configuration.nix +++ b/systems/pc/configuration.nix @@ -114,6 +114,7 @@ base16Scheme = import ../../modules/themes/ina.nix; image = ../../wallpaper/ina.jpg; }; + wayvnc.enable = true; }; };