diff options
author | Case Duckworth | 2022-07-29 15:13:03 -0500 |
---|---|---|
committer | Case Duckworth | 2022-07-29 15:13:03 -0500 |
commit | a9f9b352565eec79da7dcf74f48a0c1d75fcff1c (patch) | |
tree | fb197f0985d3dc357eb590a0573b9be304e0d675 | |
parent | Change license to GCL (diff) | |
download | autoshart-a9f9b352565eec79da7dcf74f48a0c1d75fcff1c.tar.gz autoshart-a9f9b352565eec79da7dcf74f48a0c1d75fcff1c.zip |
Add README and Makefile
-rw-r--r-- | Makefile | 31 | ||||
-rw-r--r-- | README.md | 52 |
2 files changed, 83 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1153401 --- /dev/null +++ b/Makefile | |||
@@ -0,0 +1,31 @@ | |||
1 | NAME = autoshart | ||
2 | DESC = autostart programs without a DE | ||
3 | LICENSE = Good Choices | ||
4 | |||
5 | BIND = $(DESTDIR)$(PREFIX)/bin | ||
6 | BIN = $(BIND)/$(NAME) | ||
7 | |||
8 | .PHONY: help install link uninstall | ||
9 | |||
10 | help: | ||
11 | @echo "$(NAME) : $(DESCRIPTION)" | ||
12 | @echo "(C) 2021--2022 Case Duckworth <acdw@acdw.net>" | ||
13 | @echo "Licensed under the $(LICENSE) license; see COPYING for details." | ||
14 | @echo | ||
15 | @echo "TARGETS:" | ||
16 | @echo " install Install $(NAME) to $(BIN)." | ||
17 | @echo " link Install $(NAME) using symlinks." | ||
18 | @echo " Probably only useful for development." | ||
19 | @echo " uninstall Uninstall $(NAME)-related files." | ||
20 | |||
21 | $(BIND): | ||
22 | mkdir -p $@ | ||
23 | |||
24 | install: $(NAME) | ||
25 | install -D $< $(BIND) | ||
26 | |||
27 | link: $(NAME) $(BIND) | ||
28 | ln -sf $(PWD)/$(NAME) $(BIN) | ||
29 | |||
30 | uninstall: | ||
31 | rm -rf $(BIN) | ||
diff --git a/README.md b/README.md new file mode 100644 index 0000000..e868c83 --- /dev/null +++ b/README.md | |||
@@ -0,0 +1,52 @@ | |||
1 | # autoshart | ||
2 | ## auto-start .desktop files on login | ||
3 | |||
4 | *dedicated to my friend m455* | ||
5 | |||
6 | Autostart programs are a modern ... thingy. I'm not sure how I feel about em, | ||
7 | but many programs ship with an autostart `*.desktop` file in | ||
8 | `~/.config/autostart` or wherever. | ||
9 | |||
10 | If you don't have a full-on DE, starting these programs can be a chore. [Other | ||
11 | programs](https://github.com/jceb/dex) have been written to address this, but | ||
12 | those are (A) in Python and (B) not by me. So here's my solution, in (I'm | ||
13 | pretty sure it's) POSIX sh. | ||
14 | |||
15 | ## usage | ||
16 | |||
17 | ``` | ||
18 | AUTOSHART: autostart without the shit | ||
19 | USAGE: autoshart -h | ||
20 | autoshart [-k] [-n] [-q] | ||
21 | |||
22 | FLAGS: | ||
23 | -h Show this help and exit. | ||
24 | -k Kill all processes started by autoshart and exit. | ||
25 | -n Only print what would happen; don't execute anything. | ||
26 | -q Don't print any output. | ||
27 | ``` | ||
28 | |||
29 | Drop something like the following in your `~/.xinitrc`: | ||
30 | |||
31 | ``` | ||
32 | autostart -q | ||
33 | ``` | ||
34 | |||
35 | And if you have some kind of logout script, put this in it: | ||
36 | |||
37 | ``` | ||
38 | autostart -k | ||
39 | ``` | ||
40 | |||
41 | ## installation | ||
42 | |||
43 | This is just a shell script, so you can copy or link it to your `$PATH`. That's | ||
44 | what the provided `Makefile` does. | ||
45 | |||
46 | ## contributing | ||
47 | |||
48 | Send me an [email](mailto:git+autoshart@acdw.net)! | ||
49 | |||
50 | ## license | ||
51 | |||
52 | [Good Choices License](https://acdw.casa/gcl/). See COPYING for details. | ||