2024-05-30 16:54:58 -03:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}:
|
2023-01-22 16:44:35 -03:00
|
|
|
let
|
2024-06-05 01:18:48 -03:00
|
|
|
inherit (config.my)
|
2024-05-30 16:54:58 -03:00
|
|
|
key
|
|
|
|
theme
|
|
|
|
color
|
|
|
|
accent
|
|
|
|
font
|
|
|
|
;
|
2023-01-22 16:44:35 -03:00
|
|
|
|
2024-05-30 16:54:58 -03:00
|
|
|
make_direction_binds = lib.imap0 (
|
|
|
|
idx: direction:
|
2023-01-22 16:44:35 -03:00
|
|
|
let
|
|
|
|
sign = if (idx < 2) then 1 else -1;
|
|
|
|
axis = if ((lib.mod idx 2) != 0) then "y" else "x";
|
2023-01-22 18:12:04 -03:00
|
|
|
in
|
|
|
|
''
|
2023-01-22 16:44:35 -03:00
|
|
|
${key.${direction}} { shift_${axis}(${toString (sign * 10)}) }
|
|
|
|
${lib.toUpper key.${direction}} { shift_${axis}(${toString (sign * 50)}) }
|
|
|
|
@MONTAGE{
|
|
|
|
${key.${direction}} {
|
|
|
|
montage_mode_shift_${axis}(${toString (sign * -1)})
|
|
|
|
}
|
|
|
|
}
|
2024-05-30 16:54:58 -03:00
|
|
|
''
|
|
|
|
);
|
2023-01-22 18:12:04 -03:00
|
|
|
in
|
|
|
|
{
|
2023-01-22 16:44:35 -03:00
|
|
|
xdg.configFile = {
|
|
|
|
"pqivrc".text = ''
|
|
|
|
[options]
|
|
|
|
sort=1
|
|
|
|
lazy-load=1
|
|
|
|
browse=1
|
|
|
|
hide-info-box=1
|
|
|
|
|
|
|
|
box-colors=${accent.fg}:${accent.color}
|
|
|
|
thumbnail-size=256x256
|
|
|
|
|
|
|
|
command-6=trash-put
|
|
|
|
command-8=|wl-copy
|
|
|
|
|
|
|
|
[keybindings]
|
|
|
|
|
|
|
|
Mouse-5 { shift_y(-10) }
|
|
|
|
Mouse-4 { shift_y(10) }
|
|
|
|
|
|
|
|
; n { goto_file_reh }
|
|
|
|
<bracketleft> { goto_file_relative(-1) }
|
|
|
|
<bracketright> { goto_file_relative(1); }
|
|
|
|
<Left> { goto_file_relative(-1) }
|
|
|
|
<Right> { goto_file_relative(1); }
|
|
|
|
|
2024-05-30 16:54:58 -03:00
|
|
|
${lib.concatStrings (make_direction_binds [
|
|
|
|
"left"
|
|
|
|
"up"
|
|
|
|
"right"
|
|
|
|
"down"
|
|
|
|
])}
|
2023-01-22 16:44:35 -03:00
|
|
|
|
|
|
|
${key.tabL} { goto_file_relative(-1) }
|
|
|
|
${key.tabR} { goto_file_relative(1); }
|
|
|
|
|
|
|
|
${key.insertMode} { toggle_info_box() }
|
|
|
|
d { send_keys(6) }
|
|
|
|
y { send_keys(8) }
|
|
|
|
|
2024-05-30 16:54:58 -03:00
|
|
|
${if (key.layout == "colemak") then "\n t { toggle_scale_mode(0) }\n " else ""}
|
2023-01-22 16:44:35 -03:00
|
|
|
|
|
|
|
# vim: ft=ini
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
home.packages = with pkgs; [ pqiv ];
|
|
|
|
}
|