screenshot cmd
This commit is contained in:
@@ -56,7 +56,7 @@
|
|||||||
[branch]
|
[branch]
|
||||||
sort = -committerdate
|
sort = -committerdate
|
||||||
[blame]
|
[blame]
|
||||||
ignoreRevsFile = .git-blame-ignore-revs
|
#ignoreRevsFile = .git-blame-ignore-revs annoying error in nvim when file is missing
|
||||||
|
|
||||||
[includeIf "gitdir/i:~/projects/github/**"]
|
[includeIf "gitdir/i:~/projects/github/**"]
|
||||||
path = .gitconfig-github
|
path = .gitconfig-github
|
||||||
|
|||||||
@@ -238,6 +238,9 @@ in
|
|||||||
saved-screenshot-cmd = ''
|
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
|
${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";
|
pdfgrep = "${pkgs.pdfgrep}/bin/pdfgrep";
|
||||||
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
|
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
|
||||||
#swaylock = "${pkgs.swaylock}/bin/swaylock";
|
#swaylock = "${pkgs.swaylock}/bin/swaylock";
|
||||||
@@ -267,6 +270,7 @@ in
|
|||||||
" , Print, exec, ${grimblast} --freeze copy area"
|
" , Print, exec, ${grimblast} --freeze copy area"
|
||||||
''$mainMod, Print, exec, export OUT=/tmp/$(date +'%s_grim.png') && ${saved-screenshot-cmd}''
|
''$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}''
|
''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, G, exec, ${peek}" # record gif
|
||||||
"$mainMod, SPACE, exec, ${rofi} -modi drun -show drun -config ~/.config/rofi/rofidmenu.rasi"
|
"$mainMod, SPACE, exec, ${rofi} -modi drun -show drun -config ~/.config/rofi/rofidmenu.rasi"
|
||||||
" , XF86AudioPlay, exec, ${playerctl} play-pause"
|
" , XF86AudioPlay, exec, ${playerctl} play-pause"
|
||||||
|
|||||||
@@ -17,6 +17,13 @@
|
|||||||
compressImage () {
|
compressImage () {
|
||||||
magick $1 -strip -resize 1920x1080 -quality 85% compressed.jpg
|
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 = {
|
history = {
|
||||||
size = 100000;
|
size = 100000;
|
||||||
@@ -47,6 +54,7 @@
|
|||||||
cpu_freq = ''watch -n 1 "cat /proc/cpuinfo | grep \"^[c]pu MHz\""'';
|
cpu_freq = ''watch -n 1 "cat /proc/cpuinfo | grep \"^[c]pu MHz\""'';
|
||||||
gpu_monitor = "nvidia-smi dmon -s puct";
|
gpu_monitor = "nvidia-smi dmon -s puct";
|
||||||
nix-shell = "nix-shell --command zsh";
|
nix-shell = "nix-shell --command zsh";
|
||||||
|
drag = "ripdrag";
|
||||||
};
|
};
|
||||||
#plugins = with pkgs; [
|
#plugins = with pkgs; [
|
||||||
# {
|
# {
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ in
|
|||||||
xarchiver # archive tool
|
xarchiver # archive tool
|
||||||
adwaita-icon-theme
|
adwaita-icon-theme
|
||||||
zenity
|
zenity
|
||||||
|
ripdrag
|
||||||
];
|
];
|
||||||
xdg.terminal-exec = {
|
xdg.terminal-exec = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ in
|
|||||||
inputs.agenix.packages."x86_64-linux".default
|
inputs.agenix.packages."x86_64-linux".default
|
||||||
fastfetch
|
fastfetch
|
||||||
pdfgrep
|
pdfgrep
|
||||||
mesa-demos
|
mesa-demos
|
||||||
vulkan-tools
|
vulkan-tools
|
||||||
ffmpeg
|
ffmpeg
|
||||||
nethogs
|
nethogs
|
||||||
@@ -111,6 +111,7 @@ in
|
|||||||
inetutils
|
inetutils
|
||||||
nettools
|
nettools
|
||||||
wireguard-tools
|
wireguard-tools
|
||||||
|
yazi
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user