Skip to content

dotnet core library for monitoring\managing x windows

License

Notifications You must be signed in to change notification settings

AlexanderDotH/XWindowManager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XWindowManager

Build Status NuGet

X11 Window manager for linux on dotnet core.

Sample usage

using System;
using X11;

namespace wmctrl
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                using (var wm = new XWindowManager())
                {
                    wm.Open(args.Length > 0 ? args[0] : null);

                    if (wm.TryGetXWindows(out var windows))
                    {
                        windows.ForEach(_=>Console.WriteLine($"{_.WmClass.InstanceName} {_.WmClass.ClassName}"));
                    }
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Environment.Exit(-1);
            }
        }
    }
}
chromium	Chromium
gnome-system-monitor	Gnome-system-monitor

License

This software is distributed under the terms of the MIT License (MIT).

Authors

Alexander Chermyanin / LinkedIn

Contributions and bugs reports are welcome.

About

dotnet core library for monitoring\managing x windows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 97.3%
  • Batchfile 2.7%