From 23940565dedee76c4a854f6dea70aa8610102648 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 17 Jun 2017 00:50:13 +1000 Subject: [PATCH] General: Initial files --- LICENSE.md | 5 +++++ README.md | 8 ++++++++ wal.py | 25 +++++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 LICENSE.md create mode 100644 README.md create mode 100644 wal.py diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..1f95d26 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,5 @@ +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..a273be6 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# wal.py + +A rewrite of `wal` in Python 3. + + +## Why? + +I want to learn python and it'd be interesting to see if this ends up being faster than the bash version. diff --git a/wal.py b/wal.py new file mode 100644 index 0000000..481218b --- /dev/null +++ b/wal.py @@ -0,0 +1,25 @@ +import argparse + + +def get_args(): + parser = argparse.ArgumentParser(description='wal - Generate colorschemes on the fly') + parser.add_argument('-a', help='Set terminal background transparency. *Only works in URxvt*', metavar='0-100', type=int) + parser.add_argument('-c', help='Delete all cached colorschemes.', action='store_true') + parser.add_argument('-f', help='Load colors directly from a colorscheme file.', metavar='"/path/to/colors"') + parser.add_argument('-i', help='Which image or directory to use.', metavar='"/path/to/img.jpg"') + parser.add_argument('-n', help='Skip setting the wallpaper.', action='store_true') + parser.add_argument('-o', help='External script to run after "wal".', metavar='script_name') + parser.add_argument('-q', help='Quiet mode, don\'t print anything.', action='store_true') + parser.add_argument('-r', help='Reload current colorscheme.', action='store_true') + parser.add_argument('-t', help='Fix artifacts in VTE Terminals. (Termite, xfce4-terminal)', action='store_true') + parser.add_argument('-x', help='Use extended 16-color palette.', action='store_true') + args = parser.parse_args() + return args + + +def main(): + args = get_args() + return 0 + + +main()