Skip to content

Commit 07a9b5f

Browse files
committed
improved default index, more readme
1 parent 9eafa0d commit 07a9b5f

File tree

4 files changed

+33
-36
lines changed

4 files changed

+33
-36
lines changed

.goreleaser.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

Makefile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
11

22
build:
33
go build -o local/topframe .
4-
5-
release:
6-
goreleaser --snapshot --skip-publish --rm-dist
7-
8-
clean:
9-
rm -rf ./dist

README.md

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ User programmable screen overlay using web technologies
99
<a href="https://github.com/sponsors/progrium" title="Sponsor Project"><img src="https://img.shields.io/static/v1?label=sponsor&message=%E2%9D%A4&logo=GitHub" alt="Sponsor Project" /></a>
1010

1111
---
12-
* Display information or place always-on-top widgets
12+
* Display information or always-on-top widgets
1313
* Use HTML/JS/CSS to draw on your screen
1414
* Great for screencasting or streaming overlays
1515
* Edit source, hit save, screen will update
@@ -18,8 +18,31 @@ User programmable screen overlay using web technologies
1818

1919
## Getting Started
2020

21-
* download or run shell command
22-
* run with edit flag `topframe --edit`
21+
First, [download Go](https://golang.org/dl/) or `brew install go`. If you have Go installed, make sure it is
22+
version 1.16 or greater:
23+
24+
```
25+
$ go version
26+
go version go1.16.2 darwin/amd64
27+
```
28+
29+
Then use `go get` to download, build, and install the topframe binary into a `PATH` directory:
30+
31+
```
32+
$ GOBIN=/usr/local/bin go get github.com/progrium/topframe
33+
```
34+
35+
Currently, this is the preferred way to install as anything else requires a much more elaborate
36+
release process with Apple code signing, etc. Specifying `GOBIN` is optional, but lets you specify
37+
where to install the binary, ensuring it is put in a directory in your `PATH`.
38+
39+
Running `topframe` will create a `~/.topframe` directory with a default `index.html` used for the
40+
overlay. If you have an `EDITOR` specified, you can run with `-edit` to open this in your preferred editor
41+
so you can start making changes to your topframe overlay immediately:
42+
43+
```
44+
$ topframe -edit
45+
```
2346

2447
### Launching on Startup
2548

@@ -52,4 +75,6 @@ in the right place before generating, or modify the plist file.
5275

5376
## About
5477

78+
Topframe started as a 130 line example for [progrium/macdriver](https://github.com/progrium/macdriver).
79+
5580
MIT Licensed

index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
<head>
33
<link rel="stylesheet" href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" />
44
</head>
5-
<body class="border-2 border-purple-500 text-white">
6-
<div class="w-96 h-64 m-8 absolute right-0 rounded p-4 bg-purple-500">
7-
<h2 class="text-3xl my-4 text-center animate-bounce">Hello!</h2>
5+
<body class="flex justify-center">
6+
<div class="w-96 bg-purple-500 bg-opacity-50 absolute bottom-0 m-8 p-4 rounded">
7+
<h2 class="text-center text-white text-3xl my-4 animate-bounce">
8+
Hello world!
9+
</h2>
810
</div>
911
</body>
1012
</html>

0 commit comments

Comments
 (0)