mirror of
https://codeberg.org/scip/sway-descratch.git
synced 2025-12-19 21:41:04 +01:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6310a38047 | |||
| 5fe0d5d32f | |||
| 7b9f0a3aae | |||
| bf7b3698d5 |
@@ -16,9 +16,6 @@ builds:
|
||||
goos:
|
||||
- linux
|
||||
- freebsd
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
|
||||
archives:
|
||||
- formats: [tar.gz]
|
||||
|
||||
2
go.mod
2
go.mod
@@ -3,6 +3,6 @@ module sway-descratch
|
||||
go 1.23.5
|
||||
|
||||
require (
|
||||
codeberg.org/scip/swayipc/v2 v2.0.0
|
||||
codeberg.org/scip/swayipc/v2 v2.0.0-test1
|
||||
github.com/alecthomas/repr v0.5.2
|
||||
)
|
||||
|
||||
4
go.sum
4
go.sum
@@ -1,4 +1,4 @@
|
||||
codeberg.org/scip/swayipc/v2 v2.0.0 h1:uHiETbutVJAUQVSzC5/PPFo2S+gEoCnzydhErYiQYNM=
|
||||
codeberg.org/scip/swayipc/v2 v2.0.0/go.mod h1:F+rmNQ+NjLDr8fU7HW/jSjiUIXeYfQ1cSyBiGByhoWI=
|
||||
codeberg.org/scip/swayipc/v2 v2.0.0-test1 h1:F4tOtE0gvxoh4mWQbV2+rG55cVJsCtkD5YME/6qxjqw=
|
||||
codeberg.org/scip/swayipc/v2 v2.0.0-test1/go.mod h1:F+rmNQ+NjLDr8fU7HW/jSjiUIXeYfQ1cSyBiGByhoWI=
|
||||
github.com/alecthomas/repr v0.5.2 h1:SU73FTI9D1P5UNtvseffFSGmdNci/O6RsqzeXJtP0Qs=
|
||||
github.com/alecthomas/repr v0.5.2/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4=
|
||||
|
||||
9
main.go
9
main.go
@@ -28,16 +28,7 @@ import (
|
||||
"github.com/alecthomas/repr"
|
||||
)
|
||||
|
||||
const VERSION = `v0.0.3`
|
||||
|
||||
func main() {
|
||||
if len(os.Args) > 1 {
|
||||
if os.Args[1] == "-v" {
|
||||
fmt.Printf("This is sway-descratch version %s\n", VERSION)
|
||||
os.Exit(0)
|
||||
}
|
||||
}
|
||||
|
||||
// we need a session to sway via IPC
|
||||
ipc := swayipc.NewSwayIPC()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user