Compare commits

...

2 commits

Author SHA1 Message Date
93997c2cdf Make window full screen with launch key 2024-07-15 09:32:57 +02:00
5bfca82c4d Use local Firefox installation
Installing Firefox at this location avoids annoyances with admin
privileges as Firefox regularly wants to update itself on launch.
2024-03-18 11:32:32 +01:00

View file

@ -18,7 +18,8 @@ TERMINAL_CMD := "
)" )"
BROWSER_WIN:= "ahk_class MozillaWindowClass" BROWSER_WIN:= "ahk_class MozillaWindowClass"
BROWSER_CMD:= "C:\Program Files\Mozilla Firefox\firefox.exe" ; BROWSER_CMD:= "C:\Program Files\Mozilla Firefox\firefox.exe"
BROWSER_CMD:= "C:\Users\fernando.schauenburg\AppData\Local\Mozilla\Firefox\firefox.exe"
; Returns the rectangle (position & size) of a given monitor. ; Returns the rectangle (position & size) of a given monitor.
MonitorGetRect(N) MonitorGetRect(N)
@ -141,6 +142,7 @@ POS := {
; Center ; Center
mainFocus : {pos: {x: 0.18, y: 0}, size: {width: 0.64, height: 1 }}, mainFocus : {pos: {x: 0.18, y: 0}, size: {width: 0.64, height: 1 }},
fullScreen : {pos: {x: 0, y: 0}, size: {width: 1, height: 1 }},
} }
; Uncomment the following line while making changes for easy reload. ; Uncomment the following line while making changes for easy reload.
@ -170,7 +172,7 @@ SetNumLockState True
!^Numpad3:: WinSetRelativeRect(POS.halfRight) !^Numpad3:: WinSetRelativeRect(POS.halfRight)
; Center and... ; Center and...
!#NumpadAdd:: WinSetRelativeRect(POS.mainFocus) ; ... resize to default. !#NumpadAdd:: WinSetRelativeRect(POS.fullScreen) ; ... make full screen.
!^Numpad5:: WinCenter() ; ... keep size. !^Numpad5:: WinCenter() ; ... keep size.
; Move to other monitor (FIXME this is a hack, but works on my current setup) ; Move to other monitor (FIXME this is a hack, but works on my current setup)