Structs§
- Arguments
- Command line arguments
- Config
- Configuration variables
- Dimension
- Dimension - width and length - of an image.
- Dimension
Error - Dimension Error
- Environment
- Environment variables
- File
Info - Image information
- Monitor
- Monitor properties
- Slice
Display - Implement fmt::Display for Slice
[T]
Enums§
- Orientation
- Orientation: Horizontal or Vertical.
- WSError
- WallSwitch Error enum
Statics§
- ENVIRON
- Get environment variables
Traits§
- Colors
- Countable
- Trait for counting the number of chars
- File
Info Ext - FileInfo Extension
- Float
Iter Ext - Find the maximum value of
Vec<f64>
. - Integer
Iter Ext - Find the maximum value of
Vec<u32>
. - Print
With Spaces - Print Extension with Debug
- Result
Ext - Result Extension
- U8Extension
- u8 Extension
Functions§
- display_
files - Display found images
- exec_
cmd - Executes the command as a child process, waiting for it to finish and collecting all of its output.
- get_
config_ path - Config file path: “/home/user_name/.config/wallswitch/wallswitch.json”
- get_
directories - Default directories to search for images.
- get_
feh_ path - Get the feh binary path
- get_
files_ from_ directory - Get all files into one vector.
- get_
hash - Calculates the hash from Path.
- get_
images - Get unique and random images/figures
- get_
magick_ path - Get the magick binary path
- get_
monitors - Get N monitors
- get_
random_ integer - Generate a random integer value in the given range (min, max) inclusive.
- get_
random_ integer_ v2 - Generate a random integer value in the given range (min, max) inclusive.
- get_
wallpaper_ path - default wallpaper path: “/home/user_name/wallswitch.jpg”
- kill_
other_ instances - Killing the previous instances of
wallswitch
before running - rand
- Generate random numbers without external dependencies
- read_
config_ file - Read config file path: “/home/user_name/.config/wallswitch/wallswitch.json”
- set_
wallpaper - Set desktop wallpaper
- show_
initial_ msgs - Show initial messages
- shuffle
- Shuffle the vector in place with the Fisher-Yates algorithm.
- split_
str - Split string into two numbers
- update_
images - Update FileInfo images with dimension information
- where_
is - Locate the binary path for a command