mirror of
https://github.com/nix-community/plasma-manager.git
synced 2024-10-05 13:37:23 +03:00
Add more spectacle shortcuts (#79)
This commit is contained in:
parent
132e00af06
commit
8de2af1270
@ -67,6 +67,33 @@ in
|
||||
The shortcut for launching Spectacle without capturing.
|
||||
'';
|
||||
};
|
||||
|
||||
recordRegion = lib.mkOption {
|
||||
type = with lib.types; nullOr (oneOf [ (listOf str) str ]);
|
||||
default = null;
|
||||
example = "Meta+Shift+R";
|
||||
description = ''
|
||||
The shortcut for recording a region on the screen.
|
||||
'';
|
||||
};
|
||||
|
||||
recordScreen = lib.mkOption {
|
||||
type = with lib.types; nullOr (oneOf [ (listOf str) str ]);
|
||||
default = null;
|
||||
example = "Meta+Alt+R";
|
||||
description = ''
|
||||
The shortcut for selecting a screen to record.
|
||||
'';
|
||||
};
|
||||
|
||||
recordWindow = lib.mkOption {
|
||||
type = with lib.types; nullOr (oneOf [ (listOf str) str ]);
|
||||
default = null;
|
||||
example = "Meta+Ctrl+R";
|
||||
description = ''
|
||||
The shortcut for selecting a window to record.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
@ -106,6 +133,21 @@ in
|
||||
OpenWithoutScreenshot = cfg.spectacle.shortcuts.launchWithoutCapturing;
|
||||
}
|
||||
)
|
||||
(
|
||||
lib.mkIf (cfg.spectacle.shortcuts.recordRegion != null) {
|
||||
RecordRegion = cfg.spectacle.shortcuts.recordRegion;
|
||||
}
|
||||
)
|
||||
(
|
||||
lib.mkIf (cfg.spectacle.shortcuts.recordScreen != null) {
|
||||
RecordScreen = cfg.spectacle.shortcuts.recordScreen;
|
||||
}
|
||||
)
|
||||
(
|
||||
lib.mkIf (cfg.spectacle.shortcuts.recordWindow != null) {
|
||||
RecordWindow = cfg.spectacle.shortcuts.recordWindow;
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user