Worked on the screenshot utility

This commit is contained in:
Tomas Rivera
2026-03-12 10:48:57 +01:00
parent ddd474d0d9
commit 16b41fe8aa
3 changed files with 12 additions and 7 deletions
+5 -1
View File
@@ -197,7 +197,11 @@
cmatrix cmatrix
tomato-c # pomodoro timer tomato-c # pomodoro timer
pavucontrol # PulseAudio Volume Control pavucontrol # PulseAudio Volume Control
hyprshot #hyprshot
grim # Grab images from a Wayland compositor Used for quickshell screenshot tool
xdg-utils
mailcap
hyprcursor hyprcursor
vial # Open-source GUI and QMK fork for configuring your keyboard in real time vial # Open-source GUI and QMK fork for configuring your keyboard in real time
mplayer # Movie player that supports many video formats mplayer # Movie player that supports many video formats
+5 -4
View File
@@ -11,7 +11,6 @@ in {
wayland.windowManager.hyprland.package = pkgs-unstable.hyprland; wayland.windowManager.hyprland.package = pkgs-unstable.hyprland;
#hint Electron apps to use on wayland; #hint Electron apps to use on wayland;
home.sessionVariables.NIXOS_OZONE_WL = "1"; home.sessionVariables.NIXOS_OZONE_WL = "1";
wayland.windowManager.hyprland.plugins = [ wayland.windowManager.hyprland.plugins = [
#pkgs-unstable.hyprlandPlugins.hyprspace # currently broken #pkgs-unstable.hyprlandPlugins.hyprspace # currently broken
#pkgs-unstable.hyprlandPlugins.hypr-dynamic-cursors # currently broken #pkgs-unstable.hyprlandPlugins.hypr-dynamic-cursors # currently broken
@@ -132,9 +131,11 @@ in {
"$mod, Q, exec, custom-dontkillsteam" "$mod, Q, exec, custom-dontkillsteam"
"Ctrl+Alt, W, exec, pkill waybar || waybar" "Ctrl+Alt, W, exec, pkill waybar || waybar"
"$mod, L, exec, swaylock -eFLK -i ${wallpaper}" "$mod, L, exec, swaylock -eFLK -i ${wallpaper}"
"$mod, F11, exec, hyprshot -m window" #"$mod, F11, exec, hyprshot -m window"
", F11, exec, hyprshot -m output" #", F11, exec, hyprshot -m output"
"$mod_SHIFT, S, exec, hyprshot -m region --clipboard only" #"$mod_SHIFT, S, exec, hyprshot -m region --clipboard only"
"$mod_SHIFT, S, exec, qs ipc call screenshot toggle"
"Ctrl+$mod_SHIFT, S, exec, qs, ipc call screenshotsave toggle"
# framework 16 rgb macropad # framework 16 rgb macropad
"Ctrl+$mod, 6, exec, custom-killall" # pos 1 1 killall apps except focused one "Ctrl+$mod, 6, exec, custom-killall" # pos 1 1 killall apps except focused one
"Ctrl+Alt, 7, exec, custom-performance" # pos 2 1 start performance mode "Ctrl+Alt, 7, exec, custom-performance" # pos 2 1 start performance mode
+2 -2
View File
@@ -39,7 +39,7 @@ PanelWindow {
} }
Process { Process {
id: notifyCmd id: notifyCmd
command: ["notify-send", "\"Screenshot copied\"", "\"The screenshot was copied to your clipboard\""] command: ["notify-send", "\"Screenshot copied\"", "\"The screenshot was copied to your clipboard\\n\and saved to ~/Pictures/"]
running: false running: false
onExited: root.controller.isOpen = false onExited: root.controller.isOpen = false
} }
@@ -53,7 +53,7 @@ PanelWindow {
const y = Math.ceil(root.top); const y = Math.ceil(root.top);
const w = Math.floor(root.right - root.left); const w = Math.floor(root.right - root.left);
const h = Math.floor(root.bottom - root.top); const h = Math.floor(root.bottom - root.top);
cmd.command = ["sh", "-c", `grim -g "${x},${y} ${w}x${h}" - | wl-copy`]; cmd.command = ["zsh", "-c", `grim -g "${x},${y} ${w}x${h}" - | wl-copy && grim -g "${x},${y} ${w}x${h}"`]; // we copy it once and save it another time
cmd.running = true; cmd.running = true;
} }
} }