Add record video region shortcut

This commit is contained in:
2024-08-26 16:12:28 +02:00
parent 48a59a26f2
commit f5d4bc1e2c
3 changed files with 11 additions and 1 deletions
+9 -1
View File
@@ -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 = {
+1
View File
@@ -119,6 +119,7 @@
xdg.configFile."nixpkgs/config.nix".text = '' {
allowUnfree = true;
android_sdk.accept_license = true;
}'';
# Allow gsettings to work
+1
View File
@@ -38,4 +38,5 @@
'';
};
nixpkgs.config.allowUnfree = true;
nixpkgs.config.android_sdk.accept_license = true;
}