feat(ags): add bind on escape key to close ags windows

This commit is contained in:
matt1432 2023-09-13 13:20:55 -04:00
parent 30c2c51828
commit b7de4ad482
2 changed files with 5 additions and 2 deletions

View file

@ -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';

View file

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