diff options
author | admin <contact@optics-design.com> | 2025-05-02 18:26:57 +0200 |
---|---|---|
committer | admin <contact@optics-design.com> | 2025-05-02 18:26:57 +0200 |
commit | 14b35049087cc4b7b8e9774606da9e30ef3c95de (patch) | |
tree | fdd5bf6d5ce5b0971b65eab8cad6615bf6ac0c3a | |
parent | cc89a3d0c2211510fc581425c47d9dc97df56bdf (diff) |
Changed shortcut, pwsh/gpg/ settings, added wsl
-rw-r--r-- | AutoHotkey/hotkeys.ahk | 68 | ||||
-rw-r--r-- | gpg/gpg.conf | 1 | ||||
-rw-r--r-- | powershell/Microsoft.PowerShell_profile.ps1 | 8 | ||||
-rw-r--r-- | wsl/.wslconfig | 3 |
4 files changed, 17 insertions, 63 deletions
diff --git a/AutoHotkey/hotkeys.ahk b/AutoHotkey/hotkeys.ahk index 1415c3f..5454338 100644 --- a/AutoHotkey/hotkeys.ahk +++ b/AutoHotkey/hotkeys.ahk @@ -1,11 +1,15 @@ +#SingleInstance Force
UserPath := EnvGet("USERPROFILE")
syncPath := EnvGet("SYNC")
DetectHiddenWindows true
+#c::Send "!{F4}" ; Remap Win+C to Alt+F4 (close window)
+#;::Send "^{Space}" ; Remap Win+; to Ctrl+Space
+#u::Send "^u" ; Remap Win+; to Ctrl+Space
#SuspendExempt
^!o::Suspend ; Ctrl+Alt+o
#SuspendExempt False
;Windows Terminal
-^+,::
+#,::
{
; Check if Windows Terminal is running
if WinExist("ahk_exe WindowsTerminal.exe" )
@@ -27,55 +31,9 @@ DetectHiddenWindows true Run(UserPath . "\scoop\apps\windows-terminal\current\WindowsTerminal.exe")
}
}
-;WSL
-^+.::
-{
- ; Check if WSL is running
- if WinExist("ahk_exe wsl.exe" )
- {
- ; If WSL is already in the foreground, minimize it
- if WinActive("ahk_exe wsl.exe" )
- {
- WinMinimize("ahk_exe wsl.exe" )
- }
- else
- {
- ; If WSL is running but not in the foreground, bring it to the foreground
- WinActivate("ahk_exe wsl.exe" )
- }
- }
- else
- {
- ; If WSL is not running, launch it
- Run("C:\Program Files\WSL\wsl.exe --distribution-id {ae70865d-7235-4943-9970-24cee46c9be2} --cd %USERPROFILE%")
- }
-}
-;Neovide
-^+/::
-{
- ; Check if Neovide is running
- if WinExist("ahk_class Window Class ahk_exe neovide.exe")
- {
- ; If Neovide is already in the foreground, minimize it
- if WinActive("ahk_class Window Class ahk_exe neovide.exe")
- {
- WinMinimize("ahk_class Window Class ahk_exe neovide.exe")
- }
- else
- {
- ; If Neovide is running but not in the foreground, bring it to the foreground
- WinActivate("ahk_class Window Class ahk_exe neovide.exe" )
- }
- }
- else
- {
- ; If Neovide is not running, launch it
- Run(UserPath . "\scoop\apps\Neovide\current\neovide.exe")
- }
-}
;Emacs
-!+,::
+#.::
{
; Check if Emacs is running
@@ -99,7 +57,7 @@ DetectHiddenWindows true }
}
;Obsidian
-!+.::
+#n::
{
; Check if Obsidian is running
@@ -123,7 +81,7 @@ DetectHiddenWindows true }
}
;Zotero
-!+/::
+#o::
{
; Check if Zotero is running
@@ -147,7 +105,7 @@ DetectHiddenWindows true }
}
;Telegram
-^!,::
+#/::
{
; Check if Telegram is running
@@ -167,7 +125,7 @@ DetectHiddenWindows true }
;Browser
-^!.::
+#i::
{
; Check if Browser is running
@@ -191,7 +149,7 @@ DetectHiddenWindows true }
}
;Audacious
-^!/::
+#m::
{
; Check if Audacious is running
@@ -215,14 +173,14 @@ DetectHiddenWindows true }
}
;Bookmark Finder
-^/::
+#k::
{
; Run the batch file
Run(syncPath . "\Repos\Windows\Batch_tools\bookmarkfinder\bookmarkfinder.bat")
}
;AI
-^!i::
+#p::
{
; Check if AI is running
diff --git a/gpg/gpg.conf b/gpg/gpg.conf index 8499dff..ac7bd04 100644 --- a/gpg/gpg.conf +++ b/gpg/gpg.conf @@ -1,5 +1,6 @@ #keyid-format LONG
#with-fingerprint
+pinentry-mode loopback
with-keygrip
# https://github.com/drduh/config/blob/master/gpg.conf
# https://www.gnupg.org/documentation/manuals/gnupg/GPG-Options.html
diff --git a/powershell/Microsoft.PowerShell_profile.ps1 b/powershell/Microsoft.PowerShell_profile.ps1 index c05df79..d761ddc 100644 --- a/powershell/Microsoft.PowerShell_profile.ps1 +++ b/powershell/Microsoft.PowerShell_profile.ps1 @@ -3,17 +3,9 @@ function prompt {
$Date = Get-Date -Format 'dddd HH:mm:ss'
-
- $LastCommand = Get-History -Count 1
- if ($lastCommand) { $RunTime = ($lastCommand.EndExecutionTime - $lastCommand.StartExecutionTime).TotalSeconds }
-
- $ElapsedTime = [math]::Round(($RunTime), 3)
- $ElapsedTime = -join (($ElapsedTime.ToString()), "s")
-
Write-Host $PWD -ForegroundColor Blue -NoNewline
Write-Host " [$date]" -ForegroundColor Yellow
- Write-Host "[$elapsedTime] " -NoNewline -ForegroundColor Green
return "> "
} #end prompt function
diff --git a/wsl/.wslconfig b/wsl/.wslconfig new file mode 100644 index 0000000..eba3e68 --- /dev/null +++ b/wsl/.wslconfig @@ -0,0 +1,3 @@ +[wsl2]
+vmIdleTimeout=-1
+guiApplications = true
|