screenshot cmd

This commit is contained in:
Kopatz
2025-12-03 11:42:02 +01:00
parent 5c183e836d
commit 10b84eefe2
5 changed files with 16 additions and 2 deletions

View File

@@ -56,7 +56,7 @@
[branch]
sort = -committerdate
[blame]
ignoreRevsFile = .git-blame-ignore-revs
#ignoreRevsFile = .git-blame-ignore-revs annoying error in nvim when file is missing
[includeIf "gitdir/i:~/projects/github/**"]
path = .gitconfig-github

View File

@@ -238,6 +238,9 @@ in
saved-screenshot-cmd = ''
${grimblast} --freeze save area $OUT && notify-send "Saved screenshot to $OUT" -h string:image-path:$OUT && echo "file://$(realpath $OUT)" | wl-copy -t text/uri-list
'';
saved-screenshot-cmd-output = ''
${grimblast} --freeze save output $OUT && notify-send "Saved screenshot to $OUT" -h string:image-path:$OUT && echo "file://$(realpath $OUT)" | wl-copy -t text/uri-list
'';
pdfgrep = "${pkgs.pdfgrep}/bin/pdfgrep";
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
#swaylock = "${pkgs.swaylock}/bin/swaylock";
@@ -267,6 +270,7 @@ in
" , Print, exec, ${grimblast} --freeze copy area"
''$mainMod, Print, exec, export OUT=/tmp/$(date +'%s_grim.png') && ${saved-screenshot-cmd}''
''Shift_L, Print, exec, export OUT=~/Pictures/$(date +'%s_grim.png') && ${saved-screenshot-cmd}''
''$mainMod Shift_L, Print, exec, export OUT=~/Pictures/$(date +'%s_grim.png') && ${saved-screenshot-cmd-output}''
#"$mainMod, G, exec, ${peek}" # record gif
"$mainMod, SPACE, exec, ${rofi} -modi drun -show drun -config ~/.config/rofi/rofidmenu.rasi"
" , XF86AudioPlay, exec, ${playerctl} play-pause"

View File

@@ -17,6 +17,13 @@
compressImage () {
magick $1 -strip -resize 1920x1080 -quality 85% compressed.jpg
}
function y() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
yazi "$@" --cwd-file="$tmp"
IFS= read -r -d ''\'' cwd < "$tmp"
[ -n "$cwd" ] && [ "$cwd" != "$PWD" ] && builtin cd -- "$cwd"
rm -f -- "$tmp"
}
'';
history = {
size = 100000;
@@ -47,6 +54,7 @@
cpu_freq = ''watch -n 1 "cat /proc/cpuinfo | grep \"^[c]pu MHz\""'';
gpu_monitor = "nvidia-smi dmon -s puct";
nix-shell = "nix-shell --command zsh";
drag = "ripdrag";
};
#plugins = with pkgs; [
# {

View File

@@ -85,6 +85,7 @@ in
xarchiver # archive tool
adwaita-icon-theme
zenity
ripdrag
];
xdg.terminal-exec = {
enable = true;

View File

@@ -78,7 +78,7 @@ in
inputs.agenix.packages."x86_64-linux".default
fastfetch
pdfgrep
mesa-demos
mesa-demos
vulkan-tools
ffmpeg
nethogs
@@ -111,6 +111,7 @@ in
inetutils
nettools
wireguard-tools
yazi
];
};
}