diff --git a/home-manager/.gitconfig b/home-manager/.gitconfig index 24c30e3..ca9f21e 100644 --- a/home-manager/.gitconfig +++ b/home-manager/.gitconfig @@ -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 diff --git a/home-manager/hyprland/hyprland-settings.nix b/home-manager/hyprland/hyprland-settings.nix index b69a847..7cafd91 100644 --- a/home-manager/hyprland/hyprland-settings.nix +++ b/home-manager/hyprland/hyprland-settings.nix @@ -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" diff --git a/home-manager/zsh/default.nix b/home-manager/zsh/default.nix index c0fa889..451732d 100644 --- a/home-manager/zsh/default.nix +++ b/home-manager/zsh/default.nix @@ -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; [ # { diff --git a/modules/graphical/shared.nix b/modules/graphical/shared.nix index 431919f..f27cd5f 100644 --- a/modules/graphical/shared.nix +++ b/modules/graphical/shared.nix @@ -85,6 +85,7 @@ in xarchiver # archive tool adwaita-icon-theme zenity + ripdrag ]; xdg.terminal-exec = { enable = true; diff --git a/modules/misc/cli-tools.nix b/modules/misc/cli-tools.nix index c7f8c61..5aa764f 100644 --- a/modules/misc/cli-tools.nix +++ b/modules/misc/cli-tools.nix @@ -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 ]; }; }