From 734e7d9ff215c7defa7098e583a50f499e469892 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 23 May 2026 10:25:41 +0200 Subject: [PATCH] Revert "Add close tab on SUPER + W" This reverts commit dcfedbf89cb3606e9828192486821fe3ff53a348. --- default/hypr/bindings/tiling-v2.lua | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/default/hypr/bindings/tiling-v2.lua b/default/hypr/bindings/tiling-v2.lua index 48653864..058780a1 100644 --- a/default/hypr/bindings/tiling-v2.lua +++ b/default/hypr/bindings/tiling-v2.lua @@ -1,18 +1,4 @@ -local function close_active_window_or_chromium_tab() - local window = hl.get_active_window() - - if window and window.class == "chromium" then - hl.dispatch(hl.dsp.send_key_state({ mods = "CTRL", key = "W", state = "down", window = "activewindow" })) - - hl.timer(function() - hl.dispatch(hl.dsp.send_key_state({ mods = "CTRL", key = "W", state = "up", window = "activewindow" })) - end, { timeout = 50, type = "oneshot" }) - else - hl.dispatch(hl.dsp.window.close()) - end -end - -o.bind("SUPER + W", "Close window or Chromium tab", close_active_window_or_chromium_tab) +o.bind("SUPER + W", "Close window", hl.dsp.window.close()) o.bind("CTRL + ALT + DELETE", "Close all windows", "omarchy-hyprland-window-close-all") o.bind("SUPER + J", "Toggle window split", hl.dsp.layout("togglesplit"))