diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 36fdbb2..1da272d 100755 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -197,7 +197,11 @@ cmatrix tomato-c # pomodoro timer pavucontrol # PulseAudio Volume Control - hyprshot + #hyprshot + grim # Grab images from a Wayland compositor Used for quickshell screenshot tool + xdg-utils + mailcap + hyprcursor vial # Open-source GUI and QMK fork for configuring your keyboard in real time mplayer # Movie player that supports many video formats diff --git a/modules/home-manager/hyprland.nix b/modules/home-manager/hyprland.nix index eab6635..2539308 100644 --- a/modules/home-manager/hyprland.nix +++ b/modules/home-manager/hyprland.nix @@ -11,7 +11,6 @@ in { wayland.windowManager.hyprland.package = pkgs-unstable.hyprland; #hint Electron apps to use on wayland; home.sessionVariables.NIXOS_OZONE_WL = "1"; - wayland.windowManager.hyprland.plugins = [ #pkgs-unstable.hyprlandPlugins.hyprspace # currently broken #pkgs-unstable.hyprlandPlugins.hypr-dynamic-cursors # currently broken @@ -132,9 +131,11 @@ in { "$mod, Q, exec, custom-dontkillsteam" "Ctrl+Alt, W, exec, pkill waybar || waybar" "$mod, L, exec, swaylock -eFLK -i ${wallpaper}" - "$mod, F11, exec, hyprshot -m window" - ", F11, exec, hyprshot -m output" - "$mod_SHIFT, S, exec, hyprshot -m region --clipboard only" + #"$mod, F11, exec, hyprshot -m window" + #", F11, exec, hyprshot -m output" + #"$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 "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 diff --git a/other/quickshell/screenshot/Overlay.qml b/other/quickshell/screenshot/Overlay.qml index fd4c96f..1592846 100644 --- a/other/quickshell/screenshot/Overlay.qml +++ b/other/quickshell/screenshot/Overlay.qml @@ -39,7 +39,7 @@ PanelWindow { } Process { 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 onExited: root.controller.isOpen = false } @@ -53,7 +53,7 @@ PanelWindow { const y = Math.ceil(root.top); const w = Math.floor(root.right - root.left); 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; } }