Reorganize modules
This commit is contained in:
1 parent
bb3115f637
commit
bc16b994a0
76 files changed
+107
-145
No files matched your search
@@ -0,0 +1,22 @@
|
||||
{ pkgs }:
|
||||
|
||||
pkgs.writeShellApplication {
|
||||
name = "toggle-recorder";
|
||||
|
||||
runtimeInputs = with pkgs; [
|
||||
wf-recorder
|
||||
slurp
|
||||
procps
|
||||
coreutils
|
||||
];
|
||||
|
||||
text = ''
|
||||
if pgrep -x wf-recorder >/dev/null; then
|
||||
pkill -INT wf-recorder
|
||||
else
|
||||
wf-recorder \
|
||||
-g "$(slurp)" \
|
||||
-f "$HOME/Videos/recording-$(date +%F-%H%M%S).mp4"
|
||||
fi
|
||||
'';
|
||||
}
|
||||
Reference in new issue
Block a user