aboutsummaryrefslogtreecommitdiff
path: root/config_key.h.in
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2026-03-14 09:31:51 +0200
committerDylan Araps <dylan.araps@gmail.com>2026-03-14 09:31:51 +0200
commit79eb4385bd34e8ee06b35637f092ee45dc3e3706 (patch)
tree4c3de5583733e9c9cfdc7b5f31a56f8d2ba205ba /config_key.h.in
parentf3416de0e2fd920dda7379c3b7dc2b3087cc30c6 (diff)
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.
Diffstat (limited to 'config_key.h.in')
-rw-r--r--config_key.h.in1
1 files changed, 1 insertions, 0 deletions
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;