mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-07 13:03:03 -04:00
move hotkeys to the files of the programs they're for
This commit is contained in:
parent
dc4371c619
commit
d99ce4a251
5 changed files with 67 additions and 39 deletions
|
@ -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;
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue