From 0ff31da235a660221704d3eda6d4a427625e2772 Mon Sep 17 00:00:00 2001 From: dichgrem Date: Wed, 5 Nov 2025 16:43:49 +0800 Subject: [PATCH] style:sh --- dotfiles/.config/hypr/hyprland/bind.conf | 9 ++++----- .../.config/{waybar => hypr}/scripts/Screenshot-Area.sh | 0 .../{waybar => hypr}/scripts/Screenshot-Fullscreen.sh | 0 .../scripts/Screenshot-Hyprland-Window.sh | 0 dotfiles/.config/waybar/scripts/Screenshot-OCR.sh | 4 ---- .../.config/waybar/scripts/Screenshot-sway-Window.sh | 3 --- home/cli/tesseract.nix | 5 ----- 7 files changed, 4 insertions(+), 17 deletions(-) rename dotfiles/.config/{waybar => hypr}/scripts/Screenshot-Area.sh (100%) rename dotfiles/.config/{waybar => hypr}/scripts/Screenshot-Fullscreen.sh (100%) rename dotfiles/.config/{waybar => hypr}/scripts/Screenshot-Hyprland-Window.sh (100%) delete mode 100644 dotfiles/.config/waybar/scripts/Screenshot-OCR.sh delete mode 100644 dotfiles/.config/waybar/scripts/Screenshot-sway-Window.sh delete mode 100644 home/cli/tesseract.nix diff --git a/dotfiles/.config/hypr/hyprland/bind.conf b/dotfiles/.config/hypr/hyprland/bind.conf index 48a0a31..6f7b53d 100644 --- a/dotfiles/.config/hypr/hyprland/bind.conf +++ b/dotfiles/.config/hypr/hyprland/bind.conf @@ -32,13 +32,12 @@ bind = CTRL_SUPER, Q, exec, wlogout ### Terminal Emulator bind = SUPER, Return, exec, alacritty ### Screenshot (Area Mod) -bind = SUPER, S, exec, sh ~/.config/waybar/scripts/Screenshot-Area.sh +bind = SUPER, S, exec, sh ~/.config/hypr/scripts/Screenshot-Area.sh + ### Screenshot (Fullscreen Mod) -bind = SUPER_ALT, S, exec, sh ~/.config/waybar/scripts/Screenshot-Fullscreen.sh +bind = SUPER_ALT, S, exec, sh ~/.config/hypr/scripts/Screenshot-Fullscreen.sh ### Screenshot (Window Mod) -bind = SUPER_CTRL, S, exec, sh ~/.config/waybar/scripts/Screenshot-Hyprland-Window.sh -### Screenshot (OCR Mod) -bind = SUPER_CTRL_ALT, S, exec, sh ~/.config/waybar/scripts/Screenshot-OCR.sh +bind = SUPER_CTRL, S, exec, sh ~/.config/hypr/scripts/Screenshot-Hyprland-Window.sh ## Window actions diff --git a/dotfiles/.config/waybar/scripts/Screenshot-Area.sh b/dotfiles/.config/hypr/scripts/Screenshot-Area.sh similarity index 100% rename from dotfiles/.config/waybar/scripts/Screenshot-Area.sh rename to dotfiles/.config/hypr/scripts/Screenshot-Area.sh diff --git a/dotfiles/.config/waybar/scripts/Screenshot-Fullscreen.sh b/dotfiles/.config/hypr/scripts/Screenshot-Fullscreen.sh similarity index 100% rename from dotfiles/.config/waybar/scripts/Screenshot-Fullscreen.sh rename to dotfiles/.config/hypr/scripts/Screenshot-Fullscreen.sh diff --git a/dotfiles/.config/waybar/scripts/Screenshot-Hyprland-Window.sh b/dotfiles/.config/hypr/scripts/Screenshot-Hyprland-Window.sh similarity index 100% rename from dotfiles/.config/waybar/scripts/Screenshot-Hyprland-Window.sh rename to dotfiles/.config/hypr/scripts/Screenshot-Hyprland-Window.sh diff --git a/dotfiles/.config/waybar/scripts/Screenshot-OCR.sh b/dotfiles/.config/waybar/scripts/Screenshot-OCR.sh deleted file mode 100644 index eebdf67..0000000 --- a/dotfiles/.config/waybar/scripts/Screenshot-OCR.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -## only support EN -grim -g "$(slurp)" - | tesseract -l "eng" stdin stdout | wl-copy;notify-send "OCR content copied to clipboard" diff --git a/dotfiles/.config/waybar/scripts/Screenshot-sway-Window.sh b/dotfiles/.config/waybar/scripts/Screenshot-sway-Window.sh deleted file mode 100644 index 4d0977c..0000000 --- a/dotfiles/.config/waybar/scripts/Screenshot-sway-Window.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -grim -g "$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | slurp)" - | swappy -f - diff --git a/home/cli/tesseract.nix b/home/cli/tesseract.nix deleted file mode 100644 index 61a65b2..0000000 --- a/home/cli/tesseract.nix +++ /dev/null @@ -1,5 +0,0 @@ -{pkgs, ...}: { - home.packages = with pkgs; [ - tesseract - ]; -}