Slop

Latest version: v0.0.1

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

4.2.18

OpenGL Support

After a lot of hard work, slop has been upgraded with OpenGL support. This means hardware accelerated rectangles that support shaders, magnifying glasses, and themes!

Shaders

[![Demo Shaders](http://farmpolice.com/content/images/slop_demo.gif)](http://farmpolice.com/content/videos/8a5c37c4.webm)
_Click for video_
You can create, use, and edit shaders from simple configuration folders. They're pretty basic right now, but you can create some really neat effects. Slop ships with serveral defaults:
- wiggle
- refract
- invert
- cross
- ripple
- simple
- hippie

Magnifying Glass

[![Demo MagGlass](http://farmpolice.com/content/images/1434782593.png)](http://farmpolice.com/content/videos/253ae448.webm)
_Click for video_
You can spawn a magnifying glass that gives you pixel perfect selections! Probably needs an option to disable keyboard and mouse grabbing so you can just spawn it whenever and keep it around.

Themes

![Demo Themes](http://farmpolice.com/content/images/1436653680.png)
_No video, sorry_
Slop now can load and display textures, ships with a lame default "gothic". You can easily create more in your configuration folder at ~/.config/slop. See the README.md for more information.

4.1.15

- Added opacity capabilities. --color now checks for an alpha value, but it's optional.
- Added new option --highlight. Which instead of drawing a border around the selection, it draws over the selection. Best used with --color with an alpha set below 1.
- Added option --minimumsize and --maximumsize, setting them both to the same value disables drag selections.
- Slop windows now let all events fall through.
- Incredibly improved rendering quality and speed, no longer do I re-size or move windows around. For some reason that's really expensive in X11...
- Slop now outputs the ID of a selected window if any.
- Minor bugfixes and adjustments.

**ATTENTION PACKAGE MAINTAINERS**: Please use the _CMAKE_INSTALL_PREFIX_ to set the install location. The binary is now installed to _CMAKE_INSTALL_PREFIX/bin/slop_ instead of the original _CMAKE_INSTALL_PREFIX/slop_.

2.0.9

- Windows are now properly selected via EnterNotify events instead of using XQueryPointer. This is mainly notable for the --nodecorations option I added.
- Improved response time on rectangle drawing. Slop no longer creates a new rectangle every time the window selection changes, and it waits 0.01 seconds between moving/resizing rectangles for xorg to catch up and display the changes. This is a huge deal because now dragging a selection is super smooth.
- Added a --nodecorations option that lets you select subwindows (Thanks to EnterNotify events). Thus usually removing decorations from screenshots, but its effectiveness varies between different applications and window managers.
- --nokeyboard should be useless now. There's proper error handling, I've used a more formal way to "grab" the keyboard (So it should error less), and even if it fails to grab the keyboard you should still be able to cancel selections with keyboard presses albeit at the cost of having the key events fall through to other applications.
- Slop now blocks until all windows are cleaned up by xorg properly. There's actually events and functions for this that I overlooked (DestroyNotify, XIfEvent, CWEventMask, StructureNotifyMask). Before I'd destroy the window then just sleep for x amount of time hoping xorg would decide to clean up the window in time, but that doesn't work at all due to xorg relying on a responsive program to actually remove the window for whatever reason. So now I really won't be lying when I say that slop's rectangles won't show up in screenshots or video recordings now! (I hope)
- Slop prints two new variables on success now: "G" and "Cancel". G is set to the geometry of the selection (eg 1920x1080+0+0 ), Cancel is set to true or false depending on if the selection was canceled or failed in some way. These variables can make some scripts that use slop a whole lot cleaner and more reliable.
- Several bugfixes like the selection being 1 pixel off, the cursor being the wrong image when there was no drag selection, and slop forgetting which window you selected before you started dragging has been fixed.
- Thanks to Darkwater I added a --version option.

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.