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" ];
|
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;
|
||||||
|
|
|
@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue