From 901eb175e59b6fd98fad90ecf3b085394cd18e73 Mon Sep 17 00:00:00 2001 From: siujamo Date: Tue, 17 Mar 2026 15:43:11 +0800 Subject: [PATCH] feat: update license and enhance README; add Xiaohe Shuangpin registry settings --- LICENSE | 2 +- README.md | 24 +++++++++++--- Windows/shuangpin-xiaohe.reg | 13 -------- Windows/switch-right-click-menu-to-win10.cmd | 8 +++++ Windows/switch-right-click-menu-to-win11.cmd | 8 +++++ Windows/xiaoheshuangpin.reg | 35 ++++++++++++++++++++ 6 files changed, 71 insertions(+), 19 deletions(-) delete mode 100644 Windows/shuangpin-xiaohe.reg create mode 100644 Windows/xiaoheshuangpin.reg diff --git a/LICENSE b/LICENSE index 7217f28..433bee2 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,7 @@ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 -Copyright (C) 2025 Jam'o Siu +Copyright (C) 2025 OnixByte Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long diff --git a/README.md b/README.md index 9f7a19e..2a32021 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,25 @@ # Shell Scripts -A curated collection of custom scripts developed and utilised throughout our software development lifecycle. These utilities address common development challenges, automate repetitive tasks, and enhance workflow efficiency. +A collection of utility scripts for system and development task automation across Windows platforms. These scripts streamline common administrative tasks and enhance productivity. -This repository contains a variety of bespoke scripts for Windows and Unix-like systems, including route management utilities, environment configuration helpers, and development workflow accelerators. Each script is designed to solve particular challenges encountered during our development process. +## Contents -Organised by platform and purpose, these tools have been refined through practical use to optimise development workflows and system management tasks. +### Windows Scripts ---- +- **RouteManager.ps1** - PowerShell utility for managing network route configurations +- **switch-right-click-menu-to-win10.cmd** - Switches Windows Explorer context menu to Windows 10 style +- **switch-right-click-menu-to-win11.cmd** - Switches Windows Explorer context menu to Windows 11 style +- **xiaoheshuangpin.reg** - Registry configuration for Xiaohe Shuangpin (小鹤双拼) Chinese input method -> Note: These scripts are primarily intended for internal use and may require customisation for your specific environment. Proper privilege elevation is implemented where system-level changes are required. \ No newline at end of file +## Usage + +1. Review the specific script documentation before use +2. Ensure appropriate permissions (administrator privileges may be required for system-level changes) +3. Customise settings as needed for your environment +4. Run the script from your preferred command-line interface + +## Notes + +- Scripts are designed for specific platforms and organised by operating system +- Some operations require elevated privileges +- Test in a non-production environment first if uncertain about the impact \ No newline at end of file diff --git a/Windows/shuangpin-xiaohe.reg b/Windows/shuangpin-xiaohe.reg deleted file mode 100644 index 8c68749..0000000 --- a/Windows/shuangpin-xiaohe.reg +++ /dev/null @@ -1,13 +0,0 @@ -Windows Registry Editor Version 5.00 - -[HKEY_CURRENT_USER\Software\Microsoft\InputMethod\Settings\CHS] -"Enable Cloud Candidate"=dword:00000000 -"Enable Dynamic Candidate Ranking"=dword:00000001 -"EnableExtraDomainType"=dword:00000001 -"Enable self-learning"=dword:00000001 -"EnableSmartSelfLearning"=dword:00000001 -"EnableLiveSticker"=dword:00000000 -"Enable EUDP"=dword:00000001 -"Enable Double Pinyin"=dword:00000001 -"UserDefinedDoublePinyinScheme0"="小鹤双拼*2*^*iuvdjhcwfg^xmlnpbksqszxkrltvyovt" -"DoublePinyinScheme"=dword:0000000a \ No newline at end of file diff --git a/Windows/switch-right-click-menu-to-win10.cmd b/Windows/switch-right-click-menu-to-win10.cmd index e8b0695..dd97b9a 100644 --- a/Windows/switch-right-click-menu-to-win10.cmd +++ b/Windows/switch-right-click-menu-to-win10.cmd @@ -1,3 +1,11 @@ +REM This script switches the right-click context menu to Windows 10 style +REM by modifying the registry and restarting Windows Explorer + +REM Add registry entry to disable Windows 11 context menu reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve + +REM Terminate Windows Explorer process taskkill /f /im explorer.exe + +REM Restart Windows Explorer to apply changes start explorer.exe \ No newline at end of file diff --git a/Windows/switch-right-click-menu-to-win11.cmd b/Windows/switch-right-click-menu-to-win11.cmd index 553097f..453e00c 100644 --- a/Windows/switch-right-click-menu-to-win11.cmd +++ b/Windows/switch-right-click-menu-to-win11.cmd @@ -1,3 +1,11 @@ +REM This script switches the right-click context menu to Windows 11 style +REM by modifying the registry and restarting Windows Explorer + +REM Delete registry entry to enable Windows 11 context menu reg delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f + +REM Terminate Windows Explorer process taskkill /f /im explorer.exe + +REM Restart Windows Explorer to apply changes start explorer.exe \ No newline at end of file diff --git a/Windows/xiaoheshuangpin.reg b/Windows/xiaoheshuangpin.reg new file mode 100644 index 0000000..e42d99b --- /dev/null +++ b/Windows/xiaoheshuangpin.reg @@ -0,0 +1,35 @@ +Windows Registry Editor Version 5.00 + +; Configure Chinese (Simplified) Input Method settings for Xiaoheshuangpin (小鹤双拼) scheme +; This registry file sets up the double pinyin input method preferences +[HKEY_CURRENT_USER\Software\Microsoft\InputMethod\Settings\CHS] + +; Disable cloud-based candidate suggestions +"Enable Cloud Candidate"=dword:00000000 + +; Enable dynamic candidate ranking based on usage +"Enable Dynamic Candidate Ranking"=dword:00000001 + +; Enable extra domain-specific dictionaries +"EnableExtraDomainType"=dword:00000001 + +; Enable self-learning from user input +"Enable self-learning"=dword:00000001 + +; Enable smart self-learning +"EnableSmartSelfLearning"=dword:00000001 + +; Disable live sticker suggestions +"EnableLiveSticker"=dword:00000000 + +; Enable EUDP (Extended User Dictionary Pinyin) +"Enable EUDP"=dword:00000001 + +; Enable double pinyin input method +"Enable Double Pinyin"=dword:00000001 + +; Define custom double pinyin scheme mapping for Xiaoheshuangpin layout +"UserDefinedDoublePinyinScheme0"="小鹤双拼*2*^*iuvdjhcwfg^xmlnpbksqszxkrltvyovt" + +; Set active double pinyin scheme to custom scheme (0x0a = 10) +"DoublePinyinScheme"=dword:0000000a \ No newline at end of file