From e25ffedcc585493d3e191c13ffd148f0aad9bef1 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Fri, 25 Aug 2023 14:42:27 +0200 Subject: [PATCH] Add jgmenu shortcut --- flake.nix | 2 +- src/core/mouse.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 52d303f..c975460 100644 --- a/flake.nix +++ b/flake.nix @@ -19,7 +19,7 @@ black isort qtile - ]; + ] ++ [ pkgs.kitty pkgs.jgmenu ]; }; formatter = pkgs.nixpkgs-fmt; diff --git a/src/core/mouse.py b/src/core/mouse.py index 86ea583..a85d9c2 100644 --- a/src/core/mouse.py +++ b/src/core/mouse.py @@ -16,5 +16,9 @@ lazy.window.set_size_floating(), start=lazy.window.get_size(), ), + Click( + [mod], "Button3", + lazy.spawn("jgmenu_run"), + ), Click([mod], "Button2", lazy.window.bring_to_front()), ]