Add systray to eww, add some zed bindings

This commit is contained in:
elkowar 2024-05-01 14:57:51 +02:00
parent 11d7a371bc
commit 369aaec7c3
Signed by: ElKowar
GPG key ID: 862BA3D7D7760F13
2 changed files with 22 additions and 3 deletions

View file

@ -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]

View file

@ -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,
}
}
]