 ;          File: autohotkey.ahk
 ;        Author: Pedro Ferrari
 ;       Created: 09 Apr 2014
-; Last Modified: 25 Jun 2016
+; Last Modified: 26 Jun 2016
 ;   Description: Autohotkey configuration file
 ;===============================================================================
 ; Preamble {{{

    }
    Return

; Toggle Synergy scroll lock
^#l::
    Send #+l
    MsgBox, Cursor should  now be locked (unlocked) to (from) this screen.`nIn case this didn't work type 'WinKey+Shift+l'.
    Return

; Shutdown and reboot (using Win+shift combination) (note: we can do this in two
; steps with Alt-F4 and Ctrl-q)
#+s::

}

; Volume control
#+=::
{
    SoundGet, mute_state, , mute
    If mute_state=On
        SoundSet, +1, , mute
    SoundSet +5
    SoundGet, master_volume
    vol:=Floor(master_volume)
    MsgBox,, Volume level, Volume level: %vol%`%., 0.7
    Return
}
#+-::
{
    SoundSet -5
    SoundGet, master_volume
    vol:=Floor(master_volume)
    MsgBox,, Volume level, Volume level: %vol%`%., 0.7
    Return
}
#+m:: SoundSet, +1, , mute
#+v::
{
    SoundGet, master_volume
    vol:=Floor(master_volume)
    MsgBox,, Volume level, Volume level: %vol%`%., 1.5
    Return
}

; }}}
; Toggle hidden files {{{
