class Swm::Screen
Public Class Methods
dimensions()
click to toggle source
# File lib/swm/screen.rb, line 3 def self.dimensions @dimenesions ||= /(\d+x\d+) pixels/.match(`xdpyinfo | grep dimensions`)[1].split('x').map{|s| s.to_i } end