1return { 2 { 3 name = "anim_speed", 4 label = "Animation Speed", 5 kind = "value", 6 hint = "(1..100)", 7 description = "Change the animation speed used for UI elements", 8 validator = gen_valid_num(1, 100), 9 initial = function() return tostring(gconfig_get("animation")); end, 10 handler = function(ctx, val) 11 gconfig_set("animation", tonumber(val)); 12 end 13 }, 14 { 15 name = "trans_speed", 16 label = "Transition Speed", 17 kind = "value", 18 hint = "(1..100)", 19 description = "Change the animation speed used in state transitions", 20 validator = gen_valid_num(1, 100), 21 initial = function() return tostring(gconfig_get("transition")); end, 22 handler = function(ctx, val) 23 gconfig_set("transition", tonumber(val)); 24 end 25 }, 26 { 27 name = "wnd_speed", 28 label = "Window Animation Speed", 29 kind = "value", 30 hint = "(0..50)", 31 description = "Change the animation speed used with window position/size", 32 validator = gen_valid_num(0, 50), 33 initial = function() return tostring(gconfig_get("wnd_animation")); end, 34 handler = function(ctx, val) 35 gconfig_set("wnd_animation", tonumber(val)); 36 end 37 }, 38 { 39 name = "anim_in", 40 label = "Transition-In", 41 kind = "value", 42 description = "Change the effect used when moving a workspace on-screen", 43 set = {"none", "fade", "move-h", "move-v"}, 44 initial = function() return tostring(gconfig_get("ws_transition_in")); end, 45 handler = function(ctx, val) 46 gconfig_set("ws_transition_in", val); 47 end 48 }, 49 { 50 name = "anim_out", 51 label = "Transition-Out", 52 kind = "value", 53 description = "Change the effect used when moving a workspace off-screen", 54 set = {"none", "fade", "move-h", "move-v"}, 55 initial = function() return tostring(gconfig_get("ws_transition_out")); end, 56 handler = function(ctx, val) 57 gconfig_set("ws_transition_out", val); 58 end 59 }, 60}; 61