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" ];
};
};
programs = {
plasma = {
hotkeys = {
commands = {
"flameshot" = {
name = "flameshot";
key = "Print";
command = "flameshot gui";
};
};
};
};
};
services = {
flameshot = {
enable = true;

View file

@ -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";
};
};
};
};
};
}

View file

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

View file

@ -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";
};
};
}
};
programs = {
plasma = {
hotkeys = {
commands = {
"rofi" = {
name = "rofi";
key = "Alt+P";
command = "rofi -show drun";
};
};
};
};
};
}

View file

@ -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";
};
};
};
};
};
}