diff options
| author | 2026-06-15 00:55:44 +0100 | |
|---|---|---|
| committer | 2026-06-15 00:55:44 +0100 | |
| commit | 066df8cc91966a0fbe5b2a32c45ad984fd9ae468 (patch) | |
| tree | 97bdba4d5294f305791f48afabd8386c3f97091f /dot_config/waybar/config.jsonc | |
| parent | bb607b3cdb027a2d02cf2111b8ee12dab172efad (diff) | |
| download | dotfiles-066df8cc91966a0fbe5b2a32c45ad984fd9ae468.tar.gz dotfiles-066df8cc91966a0fbe5b2a32c45ad984fd9ae468.tar.bz2 dotfiles-066df8cc91966a0fbe5b2a32c45ad984fd9ae468.zip | |
Use absolute editor commands under sudo
Resolve nvim before exporting editor and pager variables so sudo-rs env_keep does not depend on root's secure_path.
Update the Waybar pacdiff action to pass an absolute DIFFPROG through sudo.
Diffstat (limited to 'dot_config/waybar/config.jsonc')
| -rw-r--r-- | dot_config/waybar/config.jsonc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dot_config/waybar/config.jsonc b/dot_config/waybar/config.jsonc index 80eb560..2729572 100644 --- a/dot_config/waybar/config.jsonc +++ b/dot_config/waybar/config.jsonc @@ -236,7 +236,7 @@ "exec": "~/.config/waybar/pacdiff-status.sh", "return-type": "json", "interval": 300, - "on-click": "ghostty --class=floating -e sh -c 'DIFFPROG=\"nvim -d\" sudo pacdiff; printf \"\\n[done — press enter] \"; read _'", + "on-click": "ghostty --class=floating -e sh -c 'nvim=$(command -v nvim); DIFFPROG=\"$nvim -d\" sudo pacdiff; printf \"\\n[done — press enter] \"; read _'", "tooltip": true, }, |
