move hotkeys to the files of the programs they're for

This commit is contained in:
sadan 2025-04-26 16:48:42 -04:00
parent dc4371c619
commit d99ce4a251
No known key found for this signature in database
5 changed files with 67 additions and 39 deletions

View file

@ -7,6 +7,19 @@
Requires = [ "graphical-session-pre.target" ]; Requires = [ "graphical-session-pre.target" ];
}; };
}; };
programs = {
plasma = {
hotkeys = {
commands = {
"flameshot" = {
name = "flameshot";
key = "Print";
command = "flameshot gui";
};
};
};
};
};
services = { services = {
flameshot = { flameshot = {
enable = true; enable = true;

View file

@ -8,4 +8,17 @@
frog frog
]; ];
}; };
programs = {
plasma = {
hotkeys = {
commands = {
"ocr" = {
name = "OCR";
key = "Meta+Shift+T";
command = "frog -e";
};
};
};
};
};
} }

View file

@ -75,30 +75,7 @@
"Window Maximize" = [ "Meta+Up" ]; "Window Maximize" = [ "Meta+Up" ];
}; };
}; };
hotkeys = { # Hotkeys are defined in programs that use them
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";
};
};
};
}; };
}; };
stylix = { stylix = {

View file

@ -1,4 +1,5 @@
{pkgs, ...}: { { pkgs, ... }:
{
home = { home = {
packages = with pkgs; [ packages = with pkgs; [
rofi rofi
@ -11,4 +12,17 @@
}; };
}; };
}; };
programs = {
plasma = {
hotkeys = {
commands = {
"rofi" = {
name = "rofi";
key = "Alt+P";
command = "rofi -show drun";
};
};
};
};
};
} }

View file

@ -22,5 +22,16 @@
compdef _kitty kitten compdef _kitty kitten
''; '';
}; };
plasma = {
hotkeys = {
commands = {
"kitty" = {
name = "kitty";
key = "Alt+Shift+Return";
command = "kitty";
};
};
};
};
}; };
} }