1
0
Fork 0

Add notification clearing hotkey

This commit is contained in:
Malte Brandy 2021-04-01 01:53:09 +02:00
parent c0388a9d00
commit 00ecb6c291
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9

View file

@ -20,6 +20,12 @@
command = "kitty hotkeys";
name = "Hotkeys";
};
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/clear-notifications" =
{
binding = "<Super>r";
command = "dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.panel.statusArea.dateMenu._messageList._sectionList.get_children().forEach(s => s.clear());'";
name = "Clear Notifications";
};
"org/gnome/shell/extensions/nothing-to-say" = {
keybinding-toggle-mute = [ "<Primary><Shift>U+2113" ]; # Mouse key side middle
};
@ -27,6 +33,7 @@
custom-keybindings = [
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/terminal/"
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/hotkeys/"
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/clear-notifications/"
];
next = [ "<Primary><Shift>dollar" ];
play = [ "<Primary><Shift>guillemotleft" ];