Dar*_*iak 86 keyboard-shortcuts windows-10-preview windows-10
在 linux 中,我使用快捷方式在 4 个工作区之间切换:win+ 1/2/3/4。
我想在 Windows 10 中有这样的东西。
更新解决方案 2017,WINDOWS 10x64
Run Code Online (Sandbox Code Playgroud)[KeyboardShortcuts] Switch=LWin Move=LAlt, Shift, Ctrl MoveAndSwitch=LAlt, Shift Previous=Left Next=Right PlusTen=
Ger*_*uta 48
您需要的内容如下:
小智 18
我想我只是建立了你正在寻找的东西。我在 linux 上使用窗口管理器,并希望在 Windows 上以类似的方式使用热键。
https://github.com/pmb6tz/windows-desktop-switcher
我的脚本使用 CapsLock 是因为它对我来说更方便,但您可以轻松配置它以适合您。那里可能有一两个错误,但总的来说,我发现它非常可靠。希望这可以帮助你!
Opt*_*ime 15
我刚刚为autohotkey制作了一个脚本,该脚本在 Windows 10 中最多可用于 10 个桌面。
如何让它工作:
下载并安装autohotkey。将下面的代码复制并粘贴到记事本中,并使用文件扩展名 .ahk 保存
我建议在您的启动文件夹中创建此文件的快捷方式,以便在 Windows 启动时运行。
默认热键:
切换桌面:WIN+DESKTOP NUMBER(0=桌面号10)
新桌面:CTRL+WIN+D
关闭桌面:CTRL+WIN+F4
显示桌面状态:WIN+'
重要的:
为了使其工作,您必须仅使用热键打开、关闭和更改桌面,因为脚本会侦听这些热键以了解当前桌面和桌面总数。
如果您使用鼠标通过 WIN+TAB 菜单创建、关闭或更改桌面,脚本将停止工作。为了让它再次工作,您需要编辑前两行以反映桌面的当前状态。(桌面计数/当前桌面)
这并不意味着您不能使用 WIN+TAB 屏幕作为当前桌面的概览。您实际上可以结合热键使用它来组织您的桌面。是的,当 Windows 任务查看器打开时,热键仍然有效!(WIN+TAB) 不要使用鼠标!!!
另外,在创建新桌面之前等待 Windows 启动后脚本加载,否则它将不起作用。这可能需要一些时间,具体取决于您拥有多少启动程序。
好的,我又添加了一件事,以便更轻松地将脚本与桌面状态重新同步。现在有一个热键可以显示脚本认为桌面所处的状态,因此您要做的就是用鼠标调整桌面以适应脚本,然后一切都会再次同步!对于使用瑞士键盘的我来说,使用 '? 0 旁边的键,它与 ? 在它上面,但在其他键盘上,您可能希望更改此设置,这可以通过将 0/10(以 #' 开头)的热键之后的行更改为您喜欢的任何内容来轻松完成。
实际上,我刚刚意识到....只要桌面计数正确,创建新桌面就会自动重新同步当前桌面值。
(以 ; 开头的行是注释,不影响脚本)
代码:
#NoTrayIcon
;If the script stops working:
;Change the following values to reflect your current desktop state and reload the script.
;Remember to change them back to 1 after reloading the script if you have it set to start with Windows
desktopcount := 1
currentdesktop := 1
;You can change the hotkeys for creating, closing, and switching desktops bellow.
;The current hotkeys are CTRL+WIN+D for new desktop, CTRL+WIN+F4 to close desktop
;and WIN+NUMBER for switching desktops.
;For example, to change the hotkey for new desktop replace ^#D bellow with the desired hotkey.
;Refer to the autohotkey documentation for a full list of symbols refering to modifier keys,
;as you can see ^ is CTRL and # is WIN key.
;If you wanted to change the switch desktop from WIN key to CTRL for example you would have
;to replace the # before each number to a ^
^#D::NewDesktop()
^#F4::CloseDesktop()
#1::SwitchDesktop(1)
#2::SwitchDesktop(2)
#3::SwitchDesktop(3)
#4::SwitchDesktop(4)
#5::SwitchDesktop(5)
#6::SwitchDesktop(6)
#7::SwitchDesktop(7)
#8::SwitchDesktop(8)
#9::SwitchDesktop(9)
#0::SwitchDesktop(10)
#'::MsgBox Desktop Count = %desktopcount%`nCurrent Desktop = %currentdesktop%
;Do not change anything after this line, unless you know what you are doing ;)
;-----------------------------------------------------------------------------------------------
SwitchDesktop(desktop)
{
global desktopcount
global currentdesktop
desktopdiff := desktop - currentdesktop
if (desktop > desktopcount)
{
return
}
if (desktopdiff < 0)
{
desktopdiff *= -1
Loop %desktopdiff%
{
Send ^#{Left}
}
}
else if (desktopdiff > 0)
{
Loop %desktopdiff%
{
Send ^#{Right}
}
}
currentdesktop := desktop
}
NewDesktop()
{
global desktopcount
global currentdesktop
if (desktopcount > 9)
{
return
}
desktopcount ++
currentdesktop := desktopcount
Send ^#d
}
CloseDesktop()
{
global desktopcount
global currentdesktop
desktopcount --
if (currentdesktop != 1)
{
currentdesktop --
}
Send ^#{f4}
}
Run Code Online (Sandbox Code Playgroud)
此方法实际上并不会更改现有的键盘快捷键,因为原始快捷键保持活动状态,但它允许您根据需要定义其他快捷键。
为此,我使用了Microsoft PowerToys生产力实用程序包中的键盘管理器工具。它允许您重新映射各个键以及定义任意键盘快捷键并将它们映射到其他键或快捷键。
我已经重新映射了以下快捷方式:
现在,我可以使用++和Ctrl++Alt来切换桌面。LeftCtrlAltRight
PowerToys 捆绑包包含一些其他有用的实用程序,因此无论如何它都是值得的。而且它是开源的!
| 归档时间: |
|
| 查看次数: |
128302 次 |
| 最近记录: |