From c2ec994ce275d26784923d5bdac29b8165f6d7cc Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Sun, 9 Jun 2024 16:15:49 +0200 Subject: [PATCH] winning --- home-manager/hyprland/hyprland-settings.nix | 6 ++++-- modules/misc/cli-tools.nix | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/home-manager/hyprland/hyprland-settings.nix b/home-manager/hyprland/hyprland-settings.nix index 80d2f33..e8e0f5d 100644 --- a/home-manager/hyprland/hyprland-settings.nix +++ b/home-manager/hyprland/hyprland-settings.nix @@ -251,7 +251,7 @@ in { dunstify = "${pkgs.dunst}/bin/dunstify"; dunstctl = "${pkgs.dunst}/bin/dunstctl"; pdfgrep = "${pkgs.pdfgrep}/bin/pdfgrep"; - path = "/synced/fh/cloud_computing/scriptum"; + path = "/synced/fh/mobile_systems_authentication/slides"; in '' bind = $mainMod, A, submap, notes @@ -265,10 +265,12 @@ in { # trim bind = $mainMod, T, exec, ${wl-paste} | sed 's/[ \t]*$//' | sed 's/^[ \t]*//' | sed '/^[[:space:]]*$/d' | ${wl-copy} bind = $mainMod, N, exec, ${dunstify} "$(${wl-paste})" + bind = $mainMod, C, exec, ${wl-paste} | xargs -I {} ${pdfgrep} -C 15 -h -i "{}" ${path}/*.pdf | sed 's/[ \t]*$//' | ${wl-copy} bind = $mainMod, D, exec, ${dunstctl} close-all + # I win + bind = $mainMod, P, exec, ${wl-paste} | sgpt --model="gpt-4o" "Respond with the correct answer to the following Question." | ${wl-copy} # notes - bind = $mainMod, 1, exec, ${wl-paste} | xargs -I {} grep -C 15 -h -i "{}" ~/Nextcloud/fh/pentest/folien/answers | ${wl-copy} bind = $mainMod, 2, exec, cat ~/Nextcloud/test.txt | ${wl-copy} bind = $mainMod, 3, exec, cat ~/Nextcloud/test.txt | ${wl-copy} bind = $mainMod, 4, exec, cat ~/Nextcloud/test.txt | ${wl-copy} diff --git a/modules/misc/cli-tools.nix b/modules/misc/cli-tools.nix index 06ac9e8..4a4607c 100644 --- a/modules/misc/cli-tools.nix +++ b/modules/misc/cli-tools.nix @@ -48,6 +48,7 @@ in trashy # move files to trash fzf # fuzzy finder bat # fancy cat + shell-gpt ]; }; }