Module: Fusuma::Plugin::Appmatcher

Defined in:
lib/fusuma/plugin/appmatcher.rb,
lib/fusuma/plugin/appmatcher/x11.rb,
lib/fusuma/plugin/appmatcher/gnome.rb,
lib/fusuma/plugin/appmatcher/version.rb,
lib/fusuma/plugin/appmatcher/user_switcher.rb

Overview

Detect focused applications.

Defined Under Namespace

Classes: Gnome, UserSwitcher, X11

Constant Summary collapse

VERSION =
'0.1.2'

Class Method Summary collapse

Class Method Details

.backend_klassClass

Returns:

  • (Class)


15
16
17
18
19
20
21
# File 'lib/fusuma/plugin/appmatcher.rb', line 15

def backend_klass
  if ENV['DESKTOP_SESSION'] == 'ubuntu-wayland'
    Gnome
  else
    X11
  end
end