More os modes

This commit is contained in:
2026-03-15 16:46:06 -07:00
parent 8431906337
commit bd821448f2
4 changed files with 100 additions and 62 deletions

18
keymaps/custom/os_mode.h Normal file
View File

@@ -0,0 +1,18 @@
#pragma once
#include <stdbool.h>
// Active OS mode, determines which shortcut rewrites are applied.
// Set automatically by OS detection or manually via FN+Del cycle.
typedef enum {
OS_MODE_NONE, // no shortcut rewrites
OS_MODE_LINUX, // linux-specific rewrites (e.g. Super+Up -> Super+W)
OS_MODE_MAC, // Ctrl->Super rewrites, Spotlight tap, etc.
OS_MODE_WINDOWS, // reserved, currently same as none
} os_mode_t;
// Current mode, defined in os_detect.c
extern os_mode_t os_mode;
// True once user manually cycles mode via FN+Del, prevents OS detection override
extern bool os_mode_manual;