From 86b7b1bf49605f2d301e4a81658a39c0e8b40caa Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Tue, 28 Nov 2017 21:39:07 +0000 Subject: Simplify and refactor ini usage Switch imv to use a more mature ini implementation, and also simplify the ini syntax in the config files. --- files/imv_config | 58 +++++++++++++++++++++++++++++--------------------------- 1 file changed, 30 insertions(+), 28 deletions(-) (limited to 'files/imv_config') diff --git a/files/imv_config b/files/imv_config index 5a2dafd..75d84d2 100644 --- a/files/imv_config +++ b/files/imv_config @@ -1,5 +1,7 @@ # Default config for imv +[options] + # Start fullscreen # fullscreen = true @@ -28,49 +30,49 @@ # slideshow = 3 # Font to use for the overlay -# overlay_font = "Monospace:24" +# overlay_font = Monospace:24 # Disable imv's builtin binds so they don't conflict with the ones in this config default_binds = false [binds] - = "quit" +Q = quit # Image navigation - = "select_rel -1" -<[> = "select_rel -1" - = "select_rel 1" -<]> = "select_rel 1" - = "select_abs 0" - = "select_abs -1" + = select_rel -1 + = select_rel -1 + = select_rel 1 + = select_rel 1 +GG = select_abs 0 + = select_abs -1 # Panning - = "pan 0 -50" - = "pan 0 50" - = "pan 50 0" - = "pan -50 0" +J = pan 0 -50 +K = pan 0 50 +H = pan 50 0 +L = pan -50 0 # Zooming - = "zoom 1" - = "zoom 1" - = "zoom -1" - = "zoom -1" + = zoom 1 +I = zoom 1 + = zoom -1 +O = zoom -1 # Other commands - = "remove" - = "fullscreen" - = "overlay" -

= "exec echo $imv_path" - = "center" - = "scaling_mode next" - = "zoom actual" - = "reset" +X = remove +F = fullscreen +D = overlay +P = exec echo $imv_path +C = center +S = scaling_mode next +A = zoom actual +R = reset # Gif playback -<.> = "next_frame" - = "toggle_playing" +. = next_frame + = toggle_playing # Slideshow control - = "slideshow_duration +1" - = "slideshow_duration -1" +T = slideshow_duration +1 + = slideshow_duration -1 -- cgit v1.2.3