diff --git a/environments/river/home.nix b/environments/river/home.nix index ab9b9aa..c38907e 100644 --- a/environments/river/home.nix +++ b/environments/river/home.nix @@ -11,6 +11,14 @@ grim -g "$(slurp -b 00000000 -s 61616140)" - | wl-copy ''; }; + record = pkgs.writeShellApplication { + name = "record"; + runtimeInputs = [pkgs.slurp pkgs.wf-recorder]; + text = '' + pkill wf-recorder && exit + wf-recorder -g "$(slurp -b 00000000 -s 61616140)" -f "$HOME/rec-$(date +%Y-%m-%d_%H:%M:%S).mp4" + ''; + }; common_binds = { "None XF86AudioRaiseVolume" = "spawn '${pkgs.pamixer}/bin/pamixer -i 5'"; @@ -123,6 +131,7 @@ in { "Super E" = "spawn ${config.home.sessionVariables.TERMINAL}"; "Super P" = "spawn 'rofi -show drun -show-icons'"; "Super X" = "spawn '${screenshot}/bin/screenshot'"; + "Super+Shift X" = "spawn '${record}/bin/record'"; "Super B" = "spawn '${pkgs.hyprpicker}/bin/hyprpicker | wl-copy'"; "Super V" = "spawn '${cliphist} list | rofi -dmenu -display-columns 2 | ${cliphist} decode | wl-copy'"; "Super+Shift L" = "spawn 'loginctl lock-session'"; @@ -181,7 +190,6 @@ in { gnome-control-center gnome.gnome-weather wdisplays - wf-recorder ]; services.kanshi = { diff --git a/modules/cli/home.nix b/modules/cli/home.nix index 187803d..7fe78bc 100644 --- a/modules/cli/home.nix +++ b/modules/cli/home.nix @@ -119,6 +119,7 @@ xdg.configFile."nixpkgs/config.nix".text = '' { allowUnfree = true; + android_sdk.accept_license = true; }''; # Allow gsettings to work diff --git a/modules/cli/nix.nix b/modules/cli/nix.nix index 8b68cb0..9ce9623 100644 --- a/modules/cli/nix.nix +++ b/modules/cli/nix.nix @@ -38,4 +38,5 @@ ''; }; nixpkgs.config.allowUnfree = true; + nixpkgs.config.android_sdk.accept_license = true; }