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