mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-06 04:20:23 +00:00
feat: enable vim keys for btop (#1581)
* feat: enable vim keys for btop * feat: add migration for btop vim keys * Cleanup --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
committed by
GitHub
parent
cac8b03821
commit
56e690b861
@@ -22,7 +22,7 @@ presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:defaul
|
||||
|
||||
#* Set to True to enable "h,j,k,l,g,G" keys for directional control in lists.
|
||||
#* Conflicting keys for h:"help" and k:"kill" is accessible while holding shift.
|
||||
vim_keys = False
|
||||
vim_keys = True
|
||||
|
||||
#* Rounded corners on boxes, is ignored if TTY mode is ON.
|
||||
rounded_corners = True
|
||||
|
||||
9
migrations/1757535736.sh
Executable file
9
migrations/1757535736.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
echo "Enabling vim keys in btop"
|
||||
|
||||
CONFIG_FILE=~/.config/btop/btop.conf
|
||||
|
||||
if [[ -f $CONFIG_FILE ]]; then
|
||||
if grep -q "^vim_keys = " "$CONFIG_FILE"; then
|
||||
sed -i 's/^vim_keys = False/vim_keys = True/' "$CONFIG_FILE"
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user