From 670475baa47a9d138edc1796e231a90d30d9ccb5 Mon Sep 17 00:00:00 2001 From: Swarsel Date: Sat, 28 Dec 2024 03:07:24 +0100 Subject: [PATCH] feat: add utilities --- SwarselSystems.org | 4 ++++ profiles/common/home/packages.nix | 3 +++ profiles/common/home/sway.nix | 1 + 3 files changed, 8 insertions(+) diff --git a/SwarselSystems.org b/SwarselSystems.org index 182c471..40648e2 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -8175,6 +8175,8 @@ This holds packages that I can use as provided, or with small modifications (as deadnix statix nix-tree + manix + comma # shellscripts shfmt @@ -8253,6 +8255,7 @@ This holds packages that I can use as provided, or with small modifications (as wtype wl-clipboard wl-mirror + wf-recorder # screenshotting tools grim @@ -10433,6 +10436,7 @@ Currently, I am too lazy to explain every option here, but most of it is very se "${modifier}+h" = "exec hyprpicker | wl-copy"; "${modifier}+s" = "exec grim -g \"$(slurp)\" -t png - | wl-copy -t image/png"; "${modifier}+Shift+s" = "exec slurp | grim -g - Pictures/Screenshots/$(date +'screenshot_%Y-%m-%d-%H%M%S.png')"; + "${modifier}+Shift+v" = "exec wf-recorder -g '$(slurp -f %o -or)' -f ~/Videos/screenrecord_$(date +%Y-%m-%d-%H%M%S).mkv"; "${modifier}+1" = "workspace 1:一"; "${modifier}+Shift+1" = "move container to workspace 1:一"; "${modifier}+2" = "workspace 2:二"; diff --git a/profiles/common/home/packages.nix b/profiles/common/home/packages.nix index 3393b55..9311e49 100644 --- a/profiles/common/home/packages.nix +++ b/profiles/common/home/packages.nix @@ -38,6 +38,8 @@ deadnix statix nix-tree + manix + comma # shellscripts shfmt @@ -116,6 +118,7 @@ wtype wl-clipboard wl-mirror + wf-recorder # screenshotting tools grim diff --git a/profiles/common/home/sway.nix b/profiles/common/home/sway.nix index 08a5049..aaab608 100644 --- a/profiles/common/home/sway.nix +++ b/profiles/common/home/sway.nix @@ -65,6 +65,7 @@ in "${modifier}+h" = "exec hyprpicker | wl-copy"; "${modifier}+s" = "exec grim -g \"$(slurp)\" -t png - | wl-copy -t image/png"; "${modifier}+Shift+s" = "exec slurp | grim -g - Pictures/Screenshots/$(date +'screenshot_%Y-%m-%d-%H%M%S.png')"; + "${modifier}+Shift+v" = "exec wf-recorder -g '$(slurp -f %o -or)' -f ~/Videos/screenrecord_$(date +%Y-%m-%d-%H%M%S).mkv"; "${modifier}+1" = "workspace 1:一"; "${modifier}+Shift+1" = "move container to workspace 1:一"; "${modifier}+2" = "workspace 2:二";