Permalink
Browse files

Detect gamex display even if it's two screens

  • Loading branch information...
1 parent 61f6bea commit 183434a167c09c6644e4d6068a27d78ecb4411a3 Russell Pickett committed Apr 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 .config/awesome/functions.lua
@@ -10,5 +10,5 @@ function is_host(testname)
end
function gamex()
- return (is_host("mergatroid") and os.getenv("DISPLAY") == ":1")
+ return (is_host("mergatroid") and os.getenv("DISPLAY"):find(":1"))
end

0 comments on commit 183434a

Please sign in to comment.