Hello community, here is the log from the commit of package maim for openSUSE:Factory checked in at 2020-09-03 01:08:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/maim (Old) and /work/SRC/openSUSE:Factory/.maim.new.3399 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "maim" Thu Sep 3 01:08:26 2020 rev:5 rq:829612 version:5.6.3 Changes: -------- --- /work/SRC/openSUSE:Factory/maim/maim.changes 2019-12-21 12:34:58.571465805 +0100 +++ /work/SRC/openSUSE:Factory/.maim.new.3399/maim.changes 2020-09-03 01:08:48.940360217 +0200 @@ -1,0 +2,8 @@ +Tue Aug 25 18:20:13 UTC 2020 - Ondřej Súkup <mimi...@gmail.com> + +- update to 5.6.3 + * Do not consider root window's children as window frames + * Add explicit TTY redirect error + * Add support for the slop nodrag option + +------------------------------------------------------------------- Old: ---- maim-5.5.3.tar.gz New: ---- maim-5.6.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ maim.spec ++++++ --- /var/tmp/diff_new_pack.3o5O5e/_old 2020-09-03 01:08:51.396361036 +0200 +++ /var/tmp/diff_new_pack.3o5O5e/_new 2020-09-03 01:08:51.400361037 +0200 @@ -1,7 +1,7 @@ # # spec file for package maim # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ # See also http://en.opensuse.org/openSUSE:Specfile_guidelines Name: maim -Version: 5.5.3 +Version: 5.6.3 Release: 0 Summary: Flexible screenshotting utility License: GPL-3.0-or-later ++++++ maim-5.5.3.tar.gz -> maim-5.6.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/maim-5.5.3/CMakeLists.txt new/maim-5.6.3/CMakeLists.txt --- old/maim-5.5.3/CMakeLists.txt 2019-04-22 20:20:31.000000000 +0200 +++ new/maim-5.6.3/CMakeLists.txt 2020-04-10 23:31:17.000000000 +0200 @@ -1,6 +1,6 @@ cmake_minimum_required( VERSION 3.1.3 ) -project(maim VERSION 5.5.3 LANGUAGES CXX) +project(maim VERSION 5.6.3 LANGUAGES CXX) if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Debug") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/maim-5.5.3/README.md new/maim-5.6.3/README.md --- old/maim-5.5.3/README.md 2019-04-22 20:20:31.000000000 +0200 +++ new/maim-5.6.3/README.md 2020-04-10 23:31:17.000000000 +0200 @@ -23,7 +23,8 @@ ### Install using your Package Manager (Preferred) * [Arch Linux: community/maim](https://www.archlinux.org/packages/community/x86_64/maim/) * [Debian: maim](https://tracker.debian.org/pkg/maim) -* [Void Linux: maim](https://github.com/voidlinux/void-packages/blob/24ac22af44018e2598047e5ef7fd3522efa79db5/srcpkgs/maim/template) +* [Ubuntu: maim](https://packages.ubuntu.com/search?keywords=maim) +* [Void Linux: maim](https://github.com/void-linux/void-packages/tree/master/srcpkgs/maim/template) * [FreeBSD: graphics/maim](http://www.freshports.org/graphics/maim/) * [NetBSD: x11/maim](http://pkgsrc.se/x11/maim) * [OpenBSD: graphics/maim](http://openports.se/graphics/maim) @@ -32,7 +33,7 @@ * [NixOS: maim](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/graphics/maim/default.nix) * [GNU Guix: maim](https://www.gnu.org/software/guix/packages/#maim) * [Ravenports: maim](http://www.ravenports.com/catalog/bucket_B4/maim/standard/) -* [Fedora: maim-copr](https://copr.fedorainfracloud.org/coprs/shymega/maim-copr/) +* [Fedora: maim](https://src.fedoraproject.org/rpms/maim) * Please make a package for maim on your favorite system, and make a pull request to add it to this list. ### Install using CMake (Requires CMake, git, libXrender, libXfixes, libGLM, libxcomposite, libxrandr) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/maim-5.5.3/maim.1 new/maim-5.6.3/maim.1 --- old/maim-5.5.3/maim.1 2019-04-22 20:20:31.000000000 +0200 +++ new/maim-5.6.3/maim.1 2020-04-10 23:31:17.000000000 +0200 @@ -67,6 +67,9 @@ .BR \-l ", " \-\-highlight Instead of outlining a selection, maim will highlight it instead. This is particularly useful if the color is set to an opacity lower than 1. .TP +.BR \-D ", " \-\-nodrag +Allows you to click twice to indicate a selection, rather than click-dragging. +.TP .BR \-q ", " \-\-quiet Disable any unnecessary cerr output. Any warnings or info simply won't print. .TP @@ -92,6 +95,14 @@ .RE .fi .PP +Save screenshot to the Pictures folder and add it to the clipboard at the same time. +.PP +.nf +.RS +maim | tee ~/Pictures/$(date +%s).png | xclip -selection clipboard -t image/png +.RE +.fi +.PP Prompt for a region to screenshot. Add a fancy shadow to it, then save it to shadow.png. .PP .nf @@ -101,7 +112,7 @@ .fi .PP .SH SEE ALSO -.BR slop(1) +.BR slop(1) .SH BUGS No known bugs. .SH AUTHOR diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/maim-5.5.3/src/main.cpp new/maim-5.6.3/src/main.cpp --- old/maim-5.5.3/src/main.cpp 2019-04-22 20:20:31.000000000 +0200 +++ new/maim-5.6.3/src/main.cpp 2020-04-10 23:31:17.000000000 +0200 @@ -252,6 +252,9 @@ if ( options.count( "highlight" ) > 0 ) { foo->highlight = options["highlight"].as<bool>(); } + if ( options.count( "nodrag" ) > 0 ) { + foo->nodrag = options["nodrag"].as<bool>(); + } if ( options.count( "nodecorations" ) > 0 ) { foo->nodecorations = options["nodecorations"].as<int>(); if ( foo->nodecorations < 0 || foo->nodecorations > 2 ) { @@ -293,7 +296,7 @@ -g, --geometry=GEOMETRY Sets the region to capture, uses local coordinates from the given - window. So -g10x30-5+0 would represent the rectangle wxh+x+y where + window. So -g 10x30-5+0 would represent the rectangle wxh+x+y where w=10, h=30, x=-5, and y=0. x and y are the upper left location of this rectangle. @@ -343,6 +346,10 @@ this to 0 will disable window selections. Alternatively setting it to 9999999 would force a window selection. + + -D, --nodrag + Select region with two clicks instead of click and drag + -c, --color=FLOAT,FLOAT,FLOAT,FLOAT Sets the selection rectangle's color. Supports RGB or RGBA input. Depending on the system's window manager/OpenGL support, the opac‐ @@ -413,6 +420,7 @@ ("b,bordersize", "Sets the selection rectangle's thickness.", cxxopts::value<float>()) ("p,padding", "Sets the padding size for the selection, this can be negative.", cxxopts::value<float>()) ("t,tolerance", "How far in pixels the mouse can move after clicking, and still be detected as a normal click instead of a click-and-drag. Setting this to 0 will disable window selections. Alternatively setting it to 9999999 would force a window selection.", cxxopts::value<float>()) + ("D,nodrag", "Select region with two clicks instead of click and drag") ("c,color", "Sets the selection rectangle's color. Supports RGB or RGBA input. Depending on the system's window manager/OpenGL support, the opacity may be ignored.", cxxopts::value<std::string>()) ("r,shader", "This sets the vertex shader, and fragment shader combo to use when drawing the final framebuffer to the screen. This obviously only works when OpenGL is enabled. The shaders are loaded from ~/.config/maim. See https://github.com/naelstrof/slop for more information on how to create your own shaders.", cxxopts::value<std::string>()) ("n,nodecorations", "Sets the level of aggressiveness when trying to remove window decroations. `0' is off, `1' will try lightly to remove decorations, and `2' will recursively descend into the root tree until it gets the deepest available visible child under the mouse. Defaults to `0'.", cxxopts::value<int>()->implicit_value("1")) @@ -445,7 +453,8 @@ // Check if output is a tty before dumping binary data to it if ( isatty( fileno( stdout ) ) && !maimOptions->savepathGiven ) { - std::cout << HELP_MESSAGE << std::endl; + std::cout << "Please provide an output path or redirect stdout to a file." << std::endl; + std::cout << "Run maim --help for more information." << std::endl; return 0; }