Skip to content

Commit

Permalink
Switched to a real option parser, this'll break a lot of scripts! sorry
Browse files Browse the repository at this point in the history
  • Loading branch information
naelstrof committed May 23, 2017
1 parent e6abb93 commit ef4347d
Show file tree
Hide file tree
Showing 8 changed files with 1,687 additions and 462 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ else()
set( MANTARGET "maim.1" )
endif()

add_definitions(-DMAIM_VERSION="v4.4.62")
add_definitions(-DMAIM_VERSION="v5.4.62")

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin/")

# Sources
set( source
src/x.cpp
src/image.cpp
src/options.cpp
src/main.cpp )

set( BIN_TARGET "${PROJECT_NAME}" )
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ $ maim -s | xclip -selection clipboard -t image/png

* This messy command forces a user to select a window to screenshot, then applies a shadow effect using *imagemagick*, then saves it to shadow.png. It looks really nice on windows that support an alpha channel.
```bash
$ maim -t9999999 -s | convert - \( +clone -background black -shadow 80x3+5+5 \) +swap -background none -layers merge +repage shadow.png
$ maim -st 9999999 | convert - \( +clone -background black -shadow 80x3+5+5 \) +swap -background none -layers merge +repage shadow.png
```

* This command is a particular favorite of mine, invented by a friend. It simply prints the RGB values of the selected pixel. A basic color picker that has the additional ability to average out the pixel values of an area. If used cleverly with the geometry and window flag, the return color might warn you of a found counter-strike match...
```bash
$ maim -t0 -s | convert - -resize 1x1\! -format '%[pixel:p{0,0}]' info:-
$ maim -st 0 | convert - -resize 1x1\! -format '%[pixel:p{0,0}]' info:-
```

* This is a basic, but useful command that simply screenshots the current active window.
```bash
$ maim -i$(xdotool getactivewindow) ~/mypicture.jpg
$ maim -i $(xdotool getactivewindow) ~/mypicture.jpg
```

* This is another basic command, but I find it necessary to describe the usefulness of date. This particular command creates a full screenshot, and names it as the number of seconds that passed since 1970. Guaranteed unique, already sorted, and easily read.
Expand Down
2 changes: 1 addition & 1 deletion maim.1
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Screenshot the active window and save it to the clipboard for quick pasting.
.PP
.nf
.RS
maim -i$(xdotool getactivewindow) | xclip -selection clipboard -t image/png
maim -i $(xdotool getactivewindow) | xclip -selection clipboard -t image/png
.RE
.fi
.PP
Expand Down
Binary file modified maim.1.gz
Binary file not shown.
Loading

0 comments on commit ef4347d

Please sign in to comment.