Skip to content

Commit

Permalink
Merge pull request #103 from mpldr/misc
Browse files Browse the repository at this point in the history
  • Loading branch information
owulveryck authored Jan 24, 2024
2 parents f34c1bd + c44bef1 commit b558cc3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,16 @@ All image transformations utilize native browser implementations, providing opti

## Compilation

`GOOS=linux GOARCH=arm GOARM=7 CGO_ENABLED=0 go build .`
```bash
GOOS=linux GOARCH=arm GOARM=7 CGO_ENABLED=0 go build -v -trimpath -ldflags="-s -w" .
```

to install and run, you can then execute:

```bash
scp goMarkableStream root@remarkable:
ssh root@remarkable ./goMarkableStream
```

## Contributing

Expand Down
4 changes: 2 additions & 2 deletions client/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ body, html {
max-height: 100vw;
*/
width: 100vw; /* 100% of the viewport width */
height: 100vh; /* 100% of the viewport height */
display: block; /* Remove extra space around the canvas */
height: 100vh; /* 100% of the viewport height */
display: block; /* Remove extra space around the canvas */

z-index: 2;
}
Expand Down
8 changes: 4 additions & 4 deletions internal/remarkable/events_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ type EventScanner struct {

// NewEventScanner ...
func NewEventScanner() *EventScanner {
pen, err := os.OpenFile("/dev/input/event1", os.O_RDONLY, 0644)
pen, err := os.OpenFile("/dev/input/event1", os.O_RDONLY, 0o644)
if err != nil {
panic(err)
log.Fatalf("failed to read pen position: %v", err)
}
touch, err := os.OpenFile("/dev/input/event2", os.O_RDONLY, 0644)
touch, err := os.OpenFile("/dev/input/event2", os.O_RDONLY, 0o644)
if err != nil {
panic(err)
log.Fatalf("failed to read touch position: %v", err)
}
return &EventScanner{
pen: pen,
Expand Down
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ var (
//go:embed client/*
assetsFS embed.FS
//go:embed assets/cert.pem assets/key.pem
tlsAssets embed.FS
waitingQueue = make(chan struct{}, 2)
tlsAssets embed.FS
)

func main() {
Expand Down

0 comments on commit b558cc3

Please sign in to comment.