User Tools

Site Tools


windows

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
windows [2023/10/01 10:04] – removed fe80:f840:deb4:bbc3:6582:0245:a3a6:789windows [2025/07/17 06:33] (current) – [Registry] ealmr
Line 1: Line 1:
 +====== Registry ======
  
 +<code>
 +Windows Registry Editor Version 5.00
 +
 +; enable LastActiveClick
 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
 +"LastActiveClick"=dword:00000001
 +
 +;set window title bar height
 +[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]
 +"CaptionHeight"="-330"
 +
 +;map capslock to escape
 +[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
 +"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,46,00,01,00,3a,00,00,00,00,00
 +</code>
 +
 +use old style context menu on Windows 11:
 +
 +  reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
 +  
 +set highlight background and text color:
 +
 +<code>
 +Windows Registry Editor Version 5.00
 +
 +[HKEY_CURRENT_USER\Control Panel\Colors]
 +"Hilight"="0 120 215"
 +"HilightText"="255 255 255"
 +</code>
 +
 +disable Microsoft Edge copilot button:
 +
 +<code>
 +Windows Registry Editor Version 5.00
 +
 +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
 +"HubsSidebarEnabled"=-
 +
 +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
 +"StandaloneHubsSidebarEnabled"=-
 +</code>
 +
 +disable Microsoft IME auto switch:
 +
 +<code>
 +[HKEY_CURRENT_USER\Software\Microsoft\InputMethod\Settings\CHS]
 +"Enable Auto-Switch"=0
 +
 +[HKEY_CURRENT_USER\Software\Microsoft\InputMethod\Settings\Common]
 +"Enable Auto-Switch"=0
 +</code>
 +====== WSL ======
 +
 +shrink VHD:
 +
 +  optimize-vhd -Path .\ext4.vhdx -Mode full
 +
 +to fix DISPLAY on Arch, create following systemd service:
 +
 +<code>
 +https://superuser.com/questions/1617298/wsl-2-running-ubuntu-x-server-cant-open-display/1834709#1834709
 +cat > /etc/systemd/system/wslg.service <<EOF
 +[Unit]
 +Description=symlink /tmp/.X11-unix
 +After=systemd-tmpfiles-setup.service
 +
 +[Service]
 +Type=oneshot
 +ExecStart=rmdir /tmp/.X11-unix
 +ExecStart=ln -s /mnt/wslg/.X11-unix /tmp/
 +
 +[Install]
 +WantedBy=sysinit.target
 +EOF
 +</code>
 +
 +enable this service:
 +
 +  systemctl enable wslg
windows.1696154699.txt.gz · Last modified: by fe80:f840:deb4:bbc3:6582:0245:a3a6:789

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki