1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-10-09 12:55:25 +02:00

aerospace: assign apps to workspaces on-window-detected

This commit is contained in:
TheGeneralist 2026-08-02 15:20:42 +02:00
parent 691dfad298
commit ff7e33c0af
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
23 changed files with 572 additions and 4 deletions

View file

@ -18,6 +18,8 @@ let
openClaude = "open -na Helium.app --args https://claude.ai/new";
openClaudeIncognito = "open -na Helium.app --args https://claude.ai/new?incognito=";
openHeliumTelegram = "open -na Helium.app --args https://web.telegram.org/k/";
openHeliumTodoist = "open -na Helium.app --args https://app.todoist.com/app/today";
openHeliumDiscord = "open -na Helium.app --args https://discord.com/channels/@me";
numbers = [
"1"
@ -350,7 +352,7 @@ let
};
to = [
{
shell_command = openCmux;
shell_command = openGhostty;
}
];
type = "basic";
@ -433,6 +435,44 @@ let
}
];
}
{
description = "Hyper+D opens Discord";
manipulators = [
{
from = {
key_code = "d";
modifiers = {
mandatory = hyperModifiers;
};
};
to = [
{
shell_command = openHeliumDiscord;
}
];
type = "basic";
}
];
}
{
description = "Hyper+T opens Todoist's Today";
manipulators = [
{
from = {
key_code = "t";
modifiers = {
mandatory = hyperModifiers;
};
};
to = [
{
shell_command = openHeliumTodoist;
}
];
type = "basic";
}
];
}
{
description = "Toggle Focus Mode with F6";
manipulators = [
@ -597,6 +637,44 @@ let
}
];
}
{
description = "Hyper+8 types a schwa (ə)";
manipulators = [
{
from = {
key_code = "8";
modifiers = {
mandatory = hyperModifiers;
};
};
to = [
{
shell_command = "osascript -e 'set savedClip to the clipboard' -e 'set the clipboard to \"ə\"' -e 'tell application \"System Events\" to keystroke \"v\" using command down' -e 'delay 0.1' -e 'set the clipboard to savedClip'";
}
];
type = "basic";
}
];
}
{
description = "Shift+Hyper+8 types a capital schwa (Ə)";
manipulators = [
{
from = {
key_code = "8";
modifiers = {
mandatory = hyperModifiers ++ [ "right_shift" ];
};
};
to = [
{
shell_command = "osascript -e 'set savedClip to the clipboard' -e 'set the clipboard to \"Ə\"' -e 'tell application \"System Events\" to keystroke \"v\" using command down' -e 'delay 0.1' -e 'set the clipboard to savedClip'";
}
];
type = "basic";
}
];
}
];
};

View file

@ -1,5 +1,4 @@
{ pkgs, ... }: {
homebrew.enable = true;
# homebrew.brews = [ "mole" ];
# homebrew.casks = [ "google-chrome" ];
environment.systemPackages = [ pkgs.iina ];