App-XWindowManagerUtils

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    This distribution includes several utilities related to "X Window
    Manager":

    *   get-xwm-window-kde-activity

    *   list-xwm-windows

    Under the hood, it's currently a wrapper to tools like "wmctrl", etc.

    "wmctrl" works on EWMH-compliant X11 window managers. This means
    mainstream desktop environments like KWin, Xfwm, Mutter (GNOME). It
    works partially or doesn't work with minimalist window managers like
    dwm, suckless. It partially works with Wayland where there is an X
    compatibility layer, e.g. GNOME Wayland, KDE Plasma Wayland.

FUNCTIONS
  get_xwm_window_kde_activity
    Usage:

     get_xwm_window_kde_activity(%args) -> [$status_code, $reason, $payload, \%result_meta]

lib/App/XWindowManagerUtils.pm  view on Meta::CPAN

    my $res_list_kact;
    if ($with_kde_activity) {
        require Desktop::KDEActivity::Util;
        $res_list_kact = Desktop::KDEActivity::Util::list_kde_activities(detail=>1);
        return [500, "Can't list KDE activities: $res_list_kact->[0] - $res_list_kact->[1]"]
            unless $res_list_kact->[0] == 200;
    }

  LINE:
    for my $line (split /^/m, $stdout) {
        my ($id, $desktop, $pid,
            $x, $y, $width, $height,
            $host, $title) = $line =~ /^(\S+)\s+(\S+)\s+(\d+)\s+
                                       (\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+
                                       (\S+)\s+(.*)/x;
        my $row = {
            id => $id,
            desktop => $desktop,
            pid => $pid,
            x => $x,
            y => $y,
            width => $width,
            height => $height,
            host => $host,
            title => $title,
        };

      GET_KDE_ACTIVITY: {

lib/App/XWindowManagerUtils.pm  view on Meta::CPAN


=item * L<get-xwm-window-kde-activity>

=item * L<list-xwm-windows>

=back

Under the hood, it's currently a wrapper to tools like C<wmctrl>, etc.

C<wmctrl> works on EWMH-compliant X11 window managers. This means mainstream
desktop environments like KWin, Xfwm, Mutter (GNOME). It works partially or
doesn't work with minimalist window managers like dwm, suckless. It partially
works with Wayland where there is an X compatibility layer, e.g. GNOME Wayland,
KDE Plasma Wayland.

=head1 FUNCTIONS


=head2 get_xwm_window_kde_activity

Usage:



( run in 1.713 second using v1.01-cache-2.11-cpan-d06a3f9ecfd )