XMonad - Refactor - Reuse the query for terminal and browser