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

@ -4,8 +4,21 @@
../../../customPackages ../../../customPackages
]; ];
home = { home = {
packages = with pkgs.cpkg;[ packages = with pkgs.cpkg; [
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,14 +1,28 @@
{pkgs, ...}: { { pkgs, ... }:
home = { {
packages = with pkgs; [ home = {
rofi packages = with pkgs; [
]; rofi
file = { ];
rofi = { file = {
recursive = true; rofi = {
source = ../../../dotfiles/rofi; recursive = true;
target = "./.config/rofi"; 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 = { programs = {
zsh = { zsh = {
# Completion support for kitten # Completion support for kitten
initExtra = '' initExtra = ''
compdef _kitty kitten compdef _kitty kitten
''; '';
}; };
plasma = {
hotkeys = {
commands = {
"kitty" = {
name = "kitty";
key = "Alt+Shift+Return";
command = "kitty";
};
};
};
};
}; };
} }