From 79eb4385bd34e8ee06b35637f092ee45dc3e3706 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 14 Mar 2026 09:31:51 +0200 Subject: dfm: Add privilege escalation. Pressing 'Z' (default) will spawn a nested dfm by escalating privileges using the value of DFM_SU (default 'sudo'). Pressing 'Z' again inside of this escalated mode returns to the original dfm. --- config_key.h.in | 1 + 1 file changed, 1 insertion(+) (limited to 'config_key.h.in') diff --git a/config_key.h.in b/config_key.h.in index 0026853..4c087bf 100644 --- a/config_key.h.in +++ b/config_key.h.in @@ -91,6 +91,7 @@ static inline void (*fm_key(u32 cp))(struct fm *) case 'x': return act_stat; case 'i': return act_view_image; case 'z': return act_alt_buffer; + case 'Z': return act_toggle_root; case 'p': return cmd_chmod; case 'P': return cmd_chown; case 'B': return cmd_bulk_rename; -- cgit v1.2.3