Skip to content

Commit

Permalink
Switched to using a POSIX compliant argument parser. This will break …
Browse files Browse the repository at this point in the history
…scripts! sorry
  • Loading branch information
naelstrof committed May 24, 2017
1 parent 9019211 commit 3b19860
Show file tree
Hide file tree
Showing 6 changed files with 1,572 additions and 343 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Expand Up @@ -21,7 +21,7 @@ endif()

include_directories("${PROJECT_BINARY_DIR}")

add_definitions(-DSLOP_VERSION="v5.3.38")
add_definitions(-DSLOP_VERSION="v6.3.38")

# The names have to be unique unfortunately.
set(EXECUTABLE_NAME "slop")
Expand All @@ -44,8 +44,7 @@ add_library(${LIBRARY_NAME} SHARED src/mouse.cpp
set_property(TARGET ${LIBRARY_NAME} PROPERTY CXX_STANDARD_REQUIRED ON)
set_property(TARGET ${LIBRARY_NAME} PROPERTY CXX_STANDARD 11)

add_executable(${EXECUTABLE_NAME} src/options.cpp
src/main.cpp)
add_executable(${EXECUTABLE_NAME} src/main.cpp)

set_property(TARGET ${EXECUTABLE_NAME} PROPERTY CXX_STANDARD_REQUIRED ON)
set_property(TARGET ${EXECUTABLE_NAME} PROPERTY CXX_STANDARD 11)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -86,21 +86,21 @@ Shaders are loaded from the `--shader` flag in slop. They are delimited by comma
Enough chatting about it though, here's some example shaders you can copy from [shaderexamples](https://github.com/naelstrof/slop/tree/master/shaderexamples) to `~/.config/slop` to try out!

The files listed to the right of the `|` are the required files for the command to the left to work correctly.
* `slop -rblur1,blur2 -b100` | `~/.config/slop/{blur1,blur2}{.frag,.vert}`
* `slop -r blur1,blur2 -b 100` | `~/.config/slop/{blur1,blur2}{.frag,.vert}`

![slop blur](https://my.mixtape.moe/bvsrzr.png)

* `slop -rwiggle -b10` | `~/.config/slop/wiggle{.frag,.vert}`
* `slop -r wiggle -b 10` | `~/.config/slop/wiggle{.frag,.vert}`

![slop animation](http://i.giphy.com/12vjSbFZ0CWDW8.gif)

And all together now...
* `slop -rblur1,blur2,wiggle -b50 -c1,1,1` | `~/.config/slop/{blur1,blur2,wiggle}{.frag,.vert}`
* `slop -r blur1,blur2,wiggle -b 50 -c 1,1,1` | `~/.config/slop/{blur1,blur2,wiggle}{.frag,.vert}`

![slop animation](http://i.giphy.com/kfBLafeJfLs2Y.gif)

Finally here's an example of a magnifying glass.
* `slop -rcrosshair` | `~/.config/slop/crosshair{.frag,.vert}`
* `slop -r crosshair` | `~/.config/slop/crosshair{.frag,.vert}`

![slop animation](http://i.giphy.com/2xy0fC2LOFQfm.gif)

Expand Down

0 comments on commit 3b19860

Please sign in to comment.