From b7de4ad482fd2aa6c5b3a759071f0b22b6d7283d Mon Sep 17 00:00:00 2001 From: matt1432 Date: Wed, 13 Sep 2023 13:20:55 -0400 Subject: [PATCH] feat(ags): add bind on escape key to close ags windows --- config/ags/config.js | 5 ++++- config/hypr/main.conf | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config/ags/config.js b/config/ags/config.js index 5ee22aff..17de460e 100644 --- a/config/ags/config.js +++ b/config/ags/config.js @@ -5,7 +5,10 @@ import { NotificationCenter } from './js/notifications/center.js'; import { NotificationsPopupList } from './js/notifications/popup.js' import { Closer } from './js/misc/closer.js'; import { Calendar } from './js/date.js'; -import { QuickSettings } from './js/quick-settings/main.js' +import { QuickSettings } from './js/quick-settings/main.js'; + +import { closeAll } from './js/misc/close-all.js'; +ags.App.closeAll = () => closeAll(); const scss = ags.App.configDir + '/scss/main.scss'; const css = ags.App.configDir + '/style.css'; diff --git a/config/hypr/main.conf b/config/hypr/main.conf index ca9010be..2a9947b8 100644 --- a/config/hypr/main.conf +++ b/config/hypr/main.conf @@ -172,7 +172,7 @@ bind = $mainMod, C, killactive, bind = $mainMod, L, exec, $LOCK_PATH/lock.sh bind = $mainMod SHIFT, E, exec, ags run-js 'ags.App.openWindow("closer")'; ags run-js 'ags.App.openWindow("powermenu")' -bindn =, Escape, exec, $EWW_PATH/close-opened.sh +bindn =, Escape, exec, ags run-js 'ags.App.closeAll()' bind = $mainMod SHIFT, SPACE, togglefloating, bind = $mainMod, D, exec, wofi --show drun bind = $mainMod, P, pseudo, # dwindle