mirror of
https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git
synced 2025-09-15 09:45:58 +03:00
fish scripts update
changelog: - refactored fzf scripts - nullify unused\remapped fzf bindings - `list-op.fish` hotfix 3 - added `hexyl` package to the system
This commit is contained in:
9
home/.config/fish/functions/image-preview.fish
Normal file
9
home/.config/fish/functions/image-preview.fish
Normal file
@@ -0,0 +1,9 @@
|
||||
function image-preview
|
||||
set image "$argv[1]"
|
||||
|
||||
# Retrieve the current terminal dimensions and reduce them slightly to avoid boundary issues
|
||||
set term_width (math (tput cols) - 1)
|
||||
set term_height (math (tput lines) - 1)
|
||||
|
||||
chafa "$image" --size="$term_width"x"$term_height"
|
||||
end
|
Reference in New Issue
Block a user