1
0
forked from extern/nix-config

meta: Replace feh with pqiv

pqiv is an image viewer that, unlike feh, has native support for
Wayland, which makes working with it quite nice. It also supports
showing a thumbnail mode that lets you preview and switch between
images with ease, as well as the ability to run custom commands
based on the current image.

pqiv has more features than imv *and* anti-aliasing *actually works*,
making it an ideal choice for image viewing on Wayland. After years of
using feh, I am quite happy that I found pqiv.
This commit is contained in:
Donovan Glover 2023-06-24 14:58:28 -04:00
parent 128c6f619d
commit 2995ae4d7a
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
6 changed files with 3 additions and 82 deletions

View File

@ -4,7 +4,6 @@
home-manager.sharedModules = [
./dunst.nix
./fcitx.nix
./feh.nix
./fish.nix
./git.nix
./gpg.nix

View File

@ -1,77 +0,0 @@
{
programs.feh = {
enable = true;
keybindings = {
next_img = [ "k" "Right" ];
prev_img = [ "j" "Left" ];
quit = "q";
toggle_fullscreen = "f";
zoom_in = "h";
zoom_out = "l";
toggle_filenames = "d";
toggle_fixed_geometry = "g";
toggle_pause = "h";
toggle_pointer = "a";
size_to_image = "w";
jump_random = "z";
jump_first = "J";
jump_last = "K";
jump_fwd = "H";
jump_back = "L";
scroll_left = "b";
scroll_right = "n";
scroll_up = [ "u" "Up" ];
scroll_down = [ "d" "Down" ];
zoom_default = "o";
zoom_fill = "p";
toggle_auto_zoom = "m";
toggle_actions = null;
toggle_aliasing = null;
toggle_caption = null;
toggle_exif = null;
save_filelist = null;
toggle_info = null;
toggle_keep_vp = null;
toggle_menu = null;
reload_image = null;
save_image = null;
prev_dir = null;
next_dir = null;
orient_3 = null;
orient_1 = null;
flip = null;
mirror = null;
action_0 = null;
action_1 = null;
action_2 = null;
action_3 = null;
action_4 = null;
action_5 = null;
action_6 = null;
action_7 = null;
action_8 = null;
action_9 = null;
close = null;
reload_plus = null;
reload_minus = null;
remove = null;
delete = null;
scroll_left_page = null;
scroll_right_page = null;
scroll_up_page = null;
scroll_down_page = null;
render = null;
zoom_fit = null;
menu_close = null;
menu_up = null;
menu_down = null;
menu_parent = null;
menu_child = null;
menu_select = null;
};
};
}

View File

@ -160,7 +160,6 @@
windowrulev2 = nomaxsize,class:^(osu\.exe)$
windowrulev2 = opaque,class:^(kitty)$
windowrulev2 = noblur,class:^(kitty)$
windowrulev2 = fullscreen,class:^(feh)$
windowrulev2 = opacity 0.92 0.92,class:^(thunar)$
# Scroll through existing workspaces with super + scroll

View File

@ -3,8 +3,8 @@
enable = true;
defaultApplications = {
"image/png" = "feh.desktop";
"image/jpeg" = "feh.desktop";
"image/png" = "pqiv.desktop";
"image/jpeg" = "pqiv.desktop";
"image/gif" = "org.qutebrowser.qutebrowser.desktop";
"application/x-wine-extension-osz" = "osu-stable.desktop";
"x-scheme-handler/http" = "librewolf.desktop";

View File

@ -29,7 +29,6 @@
cp = "cp -ia";
rg = "${pkgs.ripgrep}/bin/rg --max-columns=2000 --smart-case";
yarn = "${pkgs.yarn}/bin/yarn --emoji true";
feh = "${pkgs.feh} --fullscreen";
};
shellAbbrs = {

View File

@ -73,6 +73,7 @@
wtype
mtr
cointop
pqiv
poppler_utils
wl-clipboard