This commit is contained in:
a 2023-01-15 20:18:08 -06:00
parent 7530d1bf0a
commit 256710ac20
21 changed files with 33 additions and 45 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
.idea .idea
.vscode .vscode
/darktile /darktile
/erm
*.swp *.swp

View File

@ -1,41 +0,0 @@
before:
hooks:
- sudo apt install xorg-dev libgl1-mesa-dev
- go mod vendor
builds:
-
id: darktile
main: ./cmd/darktile
binary: darktile
ldflags:
- "-X github.com/liamg/darktile/internal/app/darktile/version.Version={{.Version}}"
env:
- GOFLAGS=-mod=vendor
goos:
- linux
goarch:
- amd64
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
archives:
-
format: binary
name_template: "{{ .Binary}}-{{ .Os }}-{{ .Arch }}"
release:
prerelease: auto
github:
owner: liamg
name: darktile

View File

@ -1,7 +1,7 @@
darktile: cmd/**/* internal/**/* erm: cmd/**/* app/**/*
go build -o darktile ./cmd/darktile go build -o erm ./cmd/erm
clean: clean:
rm darktile rm darktile

View File

@ -1,6 +1,12 @@
# erm
a fork of Darktile
https://github.com/liamg/darktile
# Darktile # Darktile
Darktile is a GPU rendered terminal emulator designed for tiling window managers. Darktile is a GPU rendered terminal emulator designed for tiling window managers.
![Demo](demo.gif) ![Demo](demo.gif)
@ -39,7 +45,7 @@ curl -s "https://raw.githubusercontent.com/liamg/darktile/main/scripts/install.s
## Configuration ## Configuration
Configuration files should be created in `$XDG_CONFIG_HOME/darktile/` if the variable is defined, otherwise in `$HOME/.config/darktile/`. Configuration files should be created in `$XDG_CONFIG_HOME/darktile/` if the variable is defined, otherwise in `$HOME/.config/darktile/`.
If you wish, you can create an example config file as a starting point using `darktile --rewrite-config`. If you wish, you can create an example config file as a starting point using `darktile --rewrite-config`.

View File

@ -5,6 +5,8 @@ import (
"io/ioutil" "io/ioutil"
"os" "os"
"path" "path"
"sigs.k8s.io/yaml"
) )
type Theme struct { type Theme struct {

View File

@ -1,6 +1,7 @@
package gui package gui
import ( import (
"github.com/hajimehoshi/ebiten/v2"
"tuxpa.in/t/erm/app/darktile/gui/render" "tuxpa.in/t/erm/app/darktile/gui/render"
) )

View File

@ -7,6 +7,8 @@ import (
"os" "os"
"strings" "strings"
"time" "time"
"github.com/hajimehoshi/ebiten/v2"
"tuxpa.in/t/erm/app/darktile/font" "tuxpa.in/t/erm/app/darktile/font"
"tuxpa.in/t/erm/app/darktile/gui/popup" "tuxpa.in/t/erm/app/darktile/gui/popup"
"tuxpa.in/t/erm/app/darktile/hinters" "tuxpa.in/t/erm/app/darktile/hinters"

View File

@ -4,6 +4,7 @@ import (
"fmt" "fmt"
"github.com/d-tsuji/clipboard" "github.com/d-tsuji/clipboard"
"github.com/hajimehoshi/ebiten/v2"
) )
var modifiableKeys = map[ebiten.Key]uint8{ var modifiableKeys = map[ebiten.Key]uint8{

View File

@ -3,6 +3,8 @@ package gui
import ( import (
"sync" "sync"
"time" "time"
"github.com/hajimehoshi/ebiten/v2"
) )
var ( var (

View File

@ -1,6 +1,7 @@
package gui package gui
import ( import (
"github.com/hajimehoshi/ebiten/v2"
"tuxpa.in/t/erm/app/darktile/termutil" "tuxpa.in/t/erm/app/darktile/termutil"
) )

View File

@ -3,6 +3,8 @@ package gui
import ( import (
"fmt" "fmt"
"time" "time"
"github.com/hajimehoshi/ebiten/v2"
"tuxpa.in/t/erm/app/darktile/hinters" "tuxpa.in/t/erm/app/darktile/hinters"
termutil2 "tuxpa.in/t/erm/app/darktile/termutil" termutil2 "tuxpa.in/t/erm/app/darktile/termutil"
) )

View File

@ -2,6 +2,8 @@ package gui
import ( import (
"image" "image"
"github.com/hajimehoshi/ebiten/v2"
) )
type Option func(g *GUI) error type Option func(g *GUI) error

View File

@ -3,6 +3,7 @@ package render
import ( import (
"image/color" "image/color"
"github.com/hajimehoshi/ebiten/v2"
"github.com/hajimehoshi/ebiten/v2/ebitenutil" "github.com/hajimehoshi/ebiten/v2/ebitenutil"
"github.com/hajimehoshi/ebiten/v2/text" "github.com/hajimehoshi/ebiten/v2/text"
) )

View File

@ -1,6 +1,7 @@
package render package render
import ( import (
"github.com/hajimehoshi/ebiten/v2"
"github.com/hajimehoshi/ebiten/v2/ebitenutil" "github.com/hajimehoshi/ebiten/v2/ebitenutil"
"github.com/hajimehoshi/ebiten/v2/text" "github.com/hajimehoshi/ebiten/v2/text"
"tuxpa.in/t/erm/app/darktile/termutil" "tuxpa.in/t/erm/app/darktile/termutil"

View File

@ -2,6 +2,8 @@ package render
import ( import (
"image" "image"
"github.com/hajimehoshi/ebiten/v2"
"tuxpa.in/t/erm/app/darktile/font" "tuxpa.in/t/erm/app/darktile/font"
"tuxpa.in/t/erm/app/darktile/gui/popup" "tuxpa.in/t/erm/app/darktile/gui/popup"
termutil2 "tuxpa.in/t/erm/app/darktile/termutil" termutil2 "tuxpa.in/t/erm/app/darktile/termutil"

View File

@ -1,5 +1,7 @@
package render package render
import "github.com/hajimehoshi/ebiten/v2"
func (r *Render) drawSixels() { func (r *Render) drawSixels() {
for _, sixel := range r.buffer.GetVisibleSixels() { for _, sixel := range r.buffer.GetVisibleSixels() {
op := &ebiten.DrawImageOptions{} op := &ebiten.DrawImageOptions{}

View File

@ -2,6 +2,8 @@ package gui
import ( import (
"time" "time"
"github.com/hajimehoshi/ebiten/v2"
"tuxpa.in/t/erm/app/darktile/gui/popup" "tuxpa.in/t/erm/app/darktile/gui/popup"
) )

View File

@ -4,6 +4,7 @@ import (
"image" "image"
"math" "math"
"strings" "strings"
"tuxpa.in/t/erm/app/darktile/sixel" "tuxpa.in/t/erm/app/darktile/sixel"
) )

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

BIN
demo.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB