summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter2021-04-15 15:01:02 +0100
committerPeter2021-04-15 15:01:02 +0100
commit3114e37739cb6c30ee9e60b1ced43dee3d4e7ee1 (patch)
treec2e4188c0ed52b28f6c7bac03c138f211acae1f6
parent1750b1d870991ed469cec7408e221778254ca5fb (diff)
downloadahka-3114e37739cb6c30ee9e60b1ced43dee3d4e7ee1.tar.gz
ahka-3114e37739cb6c30ee9e60b1ced43dee3d4e7ee1.tar.bz2
ahka-3114e37739cb6c30ee9e60b1ced43dee3d4e7ee1.zip
Add daily notes feature for work
Firefox global hotkey was broken anyway
-rw-r--r--ahk-assistant.ahk11
1 files changed, 10 insertions, 1 deletions
diff --git a/ahk-assistant.ahk b/ahk-assistant.ahk
index c56b708..85ce9b1 100644
--- a/ahk-assistant.ahk
+++ b/ahk-assistant.ahk
@@ -47,7 +47,7 @@ RWin::AppsKey ; remap key for Rosewill keyboards
#c::Run calc
^+v::pasteClipboard()
^!m::ControlSend, , {Space}, ahk_exe mpv.exe ; global hotkey to toggle mpv pause/play
-^!n::ControlSend, , {Space}, ahk_exe firefox.exe ; global hotkey to toggle firefox pause/play
+^!n::dailyNotes()
^!Space::toggleAudioDevice()
RAlt & j::ShiftAltTab
RAlt & k::AltTab
@@ -727,6 +727,15 @@ searchCustomer() {
Return
}
+dailyNotes() {
+ global workAddress
+ companyName := SubStr(workAddress,1,InStr(workAddress,"`n")-1) . " Limited"
+ formattime, todaysDate,, yyyy-MM-dd
+ noteFilename := A_WorkingDir . "\OneDrive - " . companyName . "\Notes\wfh\notes " . todaysDate . ".txt"
+ Run notepad "%noteFilename%"
+ Return
+ }
+
toggleAudioDevice() { ;toggle between default audio output (http://ml.pe/optimizing/2013/changing-the-default-sound-device-using-autohotkey/)
switch := !switch
If (switch)