feat: add local dictation with Handy and Niri shortcuts
This commit is contained in:
1 parent
4949aef927
commit
786fc97ea0
4 files changed
+48
No files matched your search
@@ -1,5 +1,6 @@
|
||||
{
|
||||
browser,
|
||||
handy,
|
||||
launcher,
|
||||
swapMonitorWorkspaces,
|
||||
terminal,
|
||||
@@ -34,6 +35,24 @@ in
|
||||
_props.hotkey-overlay-title = "App Launcher";
|
||||
};
|
||||
|
||||
# Dictation
|
||||
"Mod+D" = {
|
||||
spawn = [
|
||||
handy
|
||||
"--toggle-transcription"
|
||||
];
|
||||
_props.repeat = false;
|
||||
_props.hotkey-overlay-title = "Toggle Dictation";
|
||||
};
|
||||
"Mod+Shift+D" = {
|
||||
spawn = [
|
||||
handy
|
||||
"--cancel"
|
||||
];
|
||||
_props.repeat = false;
|
||||
_props.hotkey-overlay-title = "Cancel Dictation";
|
||||
};
|
||||
|
||||
# Hardware media, volume, and brightness keys
|
||||
"XF86AudioPlay" = spawnLocked "playerctl play-pause";
|
||||
"XF86AudioStop" = spawnLocked "playerctl stop";
|
||||
|
||||
@@ -41,10 +41,18 @@ in
|
||||
playerctl
|
||||
brightnessctl
|
||||
wireplumber
|
||||
handy
|
||||
]
|
||||
++ [ swapMonitorWorkspaces ];
|
||||
};
|
||||
|
||||
desktop.autostart = [
|
||||
[
|
||||
(lib.getExe pkgs.handy)
|
||||
"--start-hidden"
|
||||
]
|
||||
];
|
||||
|
||||
dconf.settings."org/gnome/desktop/interface".color-scheme = "prefer-dark";
|
||||
|
||||
wayland.windowManager.niri = {
|
||||
@@ -136,6 +144,7 @@ in
|
||||
terminal
|
||||
;
|
||||
swapMonitorWorkspaces = lib.getExe swapMonitorWorkspaces;
|
||||
handy = lib.getExe pkgs.handy;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user