From 369aaec7c313678e7cef3eab71a0c4fba2bce86c Mon Sep 17 00:00:00 2001 From: elkowar Date: Wed, 1 May 2024 14:57:51 +0200 Subject: [PATCH] Add systray to eww, add some zed bindings --- eww-bar/.config/eww-bar/eww.yuck | 2 +- zed/.config/zed/keymap.json | 23 +++++++++++++++++++++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/eww-bar/.config/eww-bar/eww.yuck b/eww-bar/.config/eww-bar/eww.yuck index c417e7f..9c5db9b 100644 --- a/eww-bar/.config/eww-bar/eww.yuck +++ b/eww-bar/.config/eww-bar/eww.yuck @@ -13,7 +13,7 @@ (defwidget top [screen] (box :orientation "v" (workspaces :screen {screen == 1 ? "DP-2" : "HDMI-A-1"}) - (systray))) + (systray :orientation "v" :icon-size 15 :spacing 10))) ;(workspaces :wsp_yuck {screen == 1 ? workspaces_1_yuck : workspaces_2_yuck})) (defwidget workspaces [screen] diff --git a/zed/.config/zed/keymap.json b/zed/.config/zed/keymap.json index 381f1ef..6fc7389 100644 --- a/zed/.config/zed/keymap.json +++ b/zed/.config/zed/keymap.json @@ -8,13 +8,13 @@ }, { "context": "os == macos && Editor && VimControl && !VimWaiting && !menu", - "bindings":{ + "bindings": { "cmd-d": "editor::SelectNext" } }, { "context": "os == linux && Editor && VimControl && !VimWaiting && !menu", - "bindings":{ + "bindings": { "ctrl-shift-d": "editor::SelectNext" } }, @@ -61,6 +61,18 @@ "context": "Editor && vim_mode == normal && !VimWaiting && !menu", "bindings": {} }, + { + "context": "os == linux && ((Editor && vim_mode == normal) || Terminal) && !VimWaiting && !menu", + "bindings": { + "ctrl-t ctrl-t": "terminal_panel::ToggleFocus", + "ctrl-t ctrl-n": "workspace::NewTerminal", + "ctrl-t ctrl-shift-n": "workspace::NewCenterTerminal", + "ctrl-t ctrl-h": "pane::ActivatePrevItem", + "ctrl-t ctrl-l": "pane::ActivateNextItem", + "ctrl-x ctrl-c": "pane::CloseActiveItem", + "alt-j": "workspace::ToggleBottomDock" + } + }, { "context": "os == macos && ((Editor && vim_mode == normal) || Terminal) && !VimWaiting && !menu", "bindings": { @@ -99,5 +111,12 @@ "bindings": { "ctrl-w": "editor::DeleteToPreviousWordStart" } + }, + { + "context": "Pane", + "bindings": { + "ctrl-w": null, + "shift-escape": null, + } } ]