From 488110c5e4b9af5e96ebba75de3a7eeea916dbb7 Mon Sep 17 00:00:00 2001 From: joy Date: Thu, 20 Jun 2024 21:07:23 +0200 Subject: [PATCH] text --- home/hyprland/default.nix | 20 ++++++++++++-------- home/hyprland/text.sh | 1 + 2 files changed, 13 insertions(+), 8 deletions(-) create mode 100755 home/hyprland/text.sh diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index df78ed7..d6692bb 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -9,7 +9,11 @@ grim slurp hyprpicker + swappy emote + gocr + netpbm + imagemagick ]; wayland.windowManager.hyprland.enable = true; @@ -40,27 +44,27 @@ "$mod, O, exec, mocp -r" "$mod, I, exec, mocp --volume +5" "$mod, U, exec, mocp --volume -5" - "$mod, J, exec, sh ~/nix/home/hyprland/pause.sh" + "$mod, L, exec, amixer -q sset Master 5%+" + "$mod, K, exec, amixer -q sset Master 5%-" "$mod, N, exec, alacritty -e mocp" + "$mod, J, exec, sh ~/nix/home/hyprland/pause.sh" + "$mod, Z, exec, sh ~/nix/home/hyprland/screen.sh" + "$mod, T, exec, sh ~/nix/home/hyprland/text.sh" + "$mod+Shift, Z, exec, grim - | swappy -f -" "$mod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy" "$mod, B, exec, emote &" - "$mod+Shift, Z, exec, grim - | swappy -f -" - "$mod, Z, exec, sh ~/nix/home/hyprland/screen.sh &" "$mod, D, exec, prismlauncher -l minecraft" "$mod, S, exec, brave" "$mod, A, exec, rofi -show drun" "$mod, TAB, exec, alacritty" - "$mod, A, exec, rofi -show drun" "$mod, E, exec, nemo &" "$mod, X, exec, keepassxc" "$mod, F, exec, freetube" "$mod, C, exec, hyprpicker -a" "$mod, Q, killactive" - "$mod, M, exit, hyprland" + "$mod+shift, M, exit, hyprland" "$mod, W, togglefloating" - "$mod, T, exec, systemctl suspend" - "$mod, L, exec, amixer -q sset Master 5%+" - "$mod, K, exec, amixer -q sset Master 5%-" + "$mod, Y, exec, systemctl suspend" "$mod, Return, fullscreen" "$mod, left, movefocus, l" "$mod, right, movefocus, r" diff --git a/home/hyprland/text.sh b/home/hyprland/text.sh new file mode 100755 index 0000000..d5552fc --- /dev/null +++ b/home/hyprland/text.sh @@ -0,0 +1 @@ +grim -g "$(slurp)" - | convert - pnm:- | gocr - -o - | wl-copy