aboutsummaryrefslogtreecommitdiff
path: root/files/imv_config
blob: 1cd58af2bff7ce221418108c144cac8db72c547f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Default config for imv

[options]

# Start fullscreen
# fullscreen = true

# Start with overlay visible
# overlay = true

# Method used for upscaling images. Can be 'linear' or 'nearest_neighbour'
# upscaling_method = linear

# Recurse into subdirectories when opening a path
# recursive = true

# When we reach the end of the open images, don't go back to the start again
# loop_input = false

# Print all the images still open when we quit
# list_files_at_exit = true

# Scaling mode, one of: none, shrink, and full
# scaling_mode = none

# Background, either a hex colour code or 'checks'
# background = 000000

# Change to the next image automatically after 3 seconds
# slideshow_duration = 3

# Font to use for the overlay
# overlay_font = Monospace:24

# Stay fullscreen when we lose focus
# stay_fullscreen_on_focus_loss = true

# Disable imv's builtin binds so they don't conflict with the ones in this config
suppress_default_binds = true

[aliases]
# Create some command aliases
q = quit
next = select_rel 1
previous = select_rel -1
n = select_rel 1
p = select_rel -1

[binds]
# Add some custom key bindings to imv

# Some keys have special names:
# < -> Less
# > -> Greater
# [ -> LeftSquareBracket
# ] -> RightSquareBracket
# = -> Equals
# Left arrow key -> Left
# Up arrow key -> Up
# Right arrow key -> Right
# Down arrow key -> Down

# Keys can have the modifiers 'Ctrl+' 'Meta+' and 'Shift+' in front of them,
# in that order. Keys with special names, or with a modifier are enclosed in
# '<' and '>'.

q = quit

# Image navigation
<Left> = select_rel -1
<LeftSquareBracket> = select_rel -1
<Right> = select_rel 1
<RightSquareBracket> = select_rel 1
gg = select_abs 0
<Shift+g> = select_abs -1

# Panning
j = pan 0 -50
k = pan 0 50
h = pan 50 0
l = pan -50 0

# Zooming
<Up> = zoom 1
i = zoom 1
<Down> = zoom -1
o = zoom -1

# Other commands
x = close
f = fullscreen
d = overlay
p = exec echo $imv_current_file
c = center
s = scaling_mode next
a = zoom actual
r = reset

# Gif playback
. = next_frame
<Space> = toggle_playing

# Slideshow control
t = slideshow_duration +1
<Shift+t> = slideshow_duration -1