https://github.com/malcx95/i3-sortlock
i3-lock but it sorts your pixels
https://github.com/malcx95/i3-sortlock
i3 i3-config i3blocks i3config i3lock i3wm sorting
Last synced: 2 months ago
JSON representation
i3-lock but it sorts your pixels
- Host: GitHub
- URL: https://github.com/malcx95/i3-sortlock
- Owner: malcx95
- License: gpl-3.0
- Created: 2018-11-14T08:58:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-01T14:00:28.000Z (about 2 years ago)
- Last Synced: 2025-01-26T17:14:37.486Z (over 1 year ago)
- Topics: i3, i3-config, i3blocks, i3config, i3lock, i3wm, sorting
- Language: Python
- Size: 1.08 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# i3-sortlock
This is an i3-lock which takes a screenshot, divides the image into blocks, sorts them, and
locks your screen with the sorted screenshot. It makes your locked computer look broken.
## Example
Screen before locking:

Screen after locking:

## Installation and usage
Make sure you have python3, i3lock, scrot, scipy and matplotlib installed.
Clone this repository somewhere, and open `lock.sh` and change line 4 to the absolute
location of `sortlock.py`. Bind `lock.sh` to some keybinding and you should be good to go!
You can change the block size by changing the `BLOCK_SIZE` constant on line 6 in `sort.py`
(both the height and width of your screen should be divisible by this number). You can
also change what the blocks are to be sorted by, by changing `SORTMETHOD` on line 11. 0 means
sort by hue, 1 by saturation and 2 by value (luminosity).