mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 10:30:44 +02:00
Worked on the screenshot utility
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user