diff --git a/common/users/homeModules/flameshot.nix b/common/users/homeModules/flameshot.nix index 9a802ca..bab9f36 100644 --- a/common/users/homeModules/flameshot.nix +++ b/common/users/homeModules/flameshot.nix @@ -7,6 +7,19 @@ Requires = [ "graphical-session-pre.target" ]; }; }; + programs = { + plasma = { + hotkeys = { + commands = { + "flameshot" = { + name = "flameshot"; + key = "Print"; + command = "flameshot gui"; + }; + }; + }; + }; + }; services = { flameshot = { enable = true; diff --git a/common/users/homeModules/frog.nix b/common/users/homeModules/frog.nix index 7979b1d..bf65160 100644 --- a/common/users/homeModules/frog.nix +++ b/common/users/homeModules/frog.nix @@ -4,8 +4,21 @@ ../../../customPackages ]; home = { - packages = with pkgs.cpkg;[ + packages = with pkgs.cpkg; [ frog ]; }; + programs = { + plasma = { + hotkeys = { + commands = { + "ocr" = { + name = "OCR"; + key = "Meta+Shift+T"; + command = "frog -e"; + }; + }; + }; + }; + }; } diff --git a/common/users/homeModules/plasma.nix b/common/users/homeModules/plasma.nix index fb7b2ad..61cc5b0 100644 --- a/common/users/homeModules/plasma.nix +++ b/common/users/homeModules/plasma.nix @@ -75,30 +75,7 @@ "Window Maximize" = [ "Meta+Up" ]; }; }; - hotkeys = { - commands = { - "ocr" = { - name = "OCR"; - key = "Meta+Shift+T"; - command = "frog -e"; - }; - "flameshot" = { - name = "flameshot"; - key = "Print"; - command = "flameshot gui"; - }; - "rofi" = { - name = "rofi"; - key = "Alt+P"; - command = "rofi -show drun"; - }; - "kitty" = { - name = "kitty"; - key = "Alt+Shift+Return"; - command = "kitty"; - }; - }; - }; + # Hotkeys are defined in programs that use them }; }; stylix = { diff --git a/common/users/homeModules/rofi.nix b/common/users/homeModules/rofi.nix index cc27b76..c30319c 100644 --- a/common/users/homeModules/rofi.nix +++ b/common/users/homeModules/rofi.nix @@ -1,14 +1,28 @@ -{pkgs, ...}: { - home = { - packages = with pkgs; [ - rofi - ]; - file = { - rofi = { - recursive = true; - source = ../../../dotfiles/rofi; - target = "./.config/rofi"; - }; - }; +{ pkgs, ... }: +{ + home = { + packages = with pkgs; [ + rofi + ]; + file = { + rofi = { + recursive = true; + source = ../../../dotfiles/rofi; + target = "./.config/rofi"; + }; }; -} \ No newline at end of file + }; + programs = { + plasma = { + hotkeys = { + commands = { + "rofi" = { + name = "rofi"; + key = "Alt+P"; + command = "rofi -show drun"; + }; + }; + }; + }; + }; +} diff --git a/common/users/homeModules/terminal/kitty.nix b/common/users/homeModules/terminal/kitty.nix index d76f45f..441a374 100644 --- a/common/users/homeModules/terminal/kitty.nix +++ b/common/users/homeModules/terminal/kitty.nix @@ -17,10 +17,21 @@ }; programs = { zsh = { - # Completion support for kitten + # Completion support for kitten initExtra = '' compdef _kitty kitten ''; }; + plasma = { + hotkeys = { + commands = { + "kitty" = { + name = "kitty"; + key = "Alt+Shift+Return"; + command = "kitty"; + }; + }; + }; + }; }; }