Skip to content

Commit

Permalink
spell check example scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
LGFae committed Jul 11, 2023
1 parent 9166e2c commit 0187e34
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions example_scripts/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
In here you will find example scripts to help you get started writting your own
In here you will find example scripts to help you get started writing your own
scripts to work with `swww` for various effects. Currently, there are scripts
for:

* Randomly going thorugh the images in a directory (swww_randomize.sh)
* Randomly going through the images in a directory (swww_randomize.sh)
* Changing with which image `swww` is initialized according to the time of day
(swww_init_according_to_time_of_day.sh)
* Scheduling changes to the wallpaper at different times of day
Expand Down
4 changes: 2 additions & 2 deletions example_scripts/swww_init_according_to_time_of_day.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

case $(date +%H) in
00 | 01 | 02 | 03 | 04 | 05 | 06 | 07) # First 8 hours of the day
# Uncomment bellow to setup the image you wish to display as your
# wallpaper if you run this scritp during the first 8 hours of the
# Uncomment below to setup the image you wish to display as your
# wallpaper if you run this script during the first 8 hours of the
# day

# swww init && swww img path/to/img
Expand Down
2 changes: 1 addition & 1 deletion example_scripts/swww_randomize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

if [[ $# -lt 1 ]] || [[ ! -d $1 ]]; then
echo "Usage:
$0 <dir containg images>"
$0 <dir containing images>"
exit 1
fi

Expand Down
11 changes: 6 additions & 5 deletions tests/spell_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ fn spell_check_code_and_man_pages() {
"--ignore-words-list",
"crate",
"--skip",
"doc/generated", // skip the generated documentation
"src", // client
"daemon/src", // daemon
"utils/src", // common code
"doc", // man pages
"doc/generated", // skip the generated documentation
"src", // client
"daemon/src", // daemon
"utils/src", // common code
"doc", // man pages
"example_scripts", // scripts
"CHANGELOG.md",
"README.md",
])
Expand Down
3 changes: 2 additions & 1 deletion version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ pkill swww-daemon

set -e

# don't forget testing everything
# don't forget updating dependencies and testing everything
cargo update
cargo build
cargo test -- --include-ignored
./doc/gen.sh # make sure the docs "compile"
Expand Down

0 comments on commit 0187e34

Please sign in to comment.