diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2026-03-14 09:31:51 +0200 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2026-03-14 09:31:51 +0200 |
| commit | 79eb4385bd34e8ee06b35637f092ee45dc3e3706 (patch) | |
| tree | 4c3de5583733e9c9cfdc7b5f31a56f8d2ba205ba /config.h.in | |
| parent | f3416de0e2fd920dda7379c3b7dc2b3087cc30c6 (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.h.in')
| -rw-r--r-- | config.h.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in index f6fb6d4..23f4258 100644 --- a/config.h.in +++ b/config.h.in @@ -34,6 +34,13 @@ #define DFM_BOOKMARK_9 "" // +// Default privilege escalation utiliy. +// This is used to become root in dfm (default 'Z'). +// Values: "sudo", "doas", "ssu", "su", "run0", etc +// +#define DFM_SU "sudo" + +// // Default image viewer. // The command is executed as follows: // 'arg0' 'arg1' '{col}x{row}' 'img' |