From 05f2688fe23528bddb3cb089e960a97175a8fa26 Mon Sep 17 00:00:00 2001 From: a Date: Mon, 1 Jul 2024 03:49:26 -0500 Subject: [PATCH] sync --- .config/boilr/templates/river/template/job.go | 3 ++- .local/script/gamermode | 6 ++++-- .local/script/goinstallbinaries | 8 +++++++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.config/boilr/templates/river/template/job.go b/.config/boilr/templates/river/template/job.go index 6d85db7..baa1aaa 100644 --- a/.config/boilr/templates/river/template/job.go +++ b/.config/boilr/templates/river/template/job.go @@ -5,6 +5,7 @@ import ( "context" "fmt" "log/slog" + "path" "reflect" "gfx.cafe/util/go/fxriver" @@ -13,7 +14,7 @@ import ( ) var ( - packageName = reflect.TypeOf(Args{}).PkgPath() + packageName = path.Base(reflect.TypeOf(Args{}).PkgPath()) ) type Args struct { diff --git a/.local/script/gamermode b/.local/script/gamermode index af4f0d9..20cba01 100755 --- a/.local/script/gamermode +++ b/.local/script/gamermode @@ -3,12 +3,14 @@ gamermode_off(){ notify-send -t 1600 'disabled gamermode' --icon=video-display - picom -b --log-file /var/log/picom.log --log-level INFO + superctl start picom +# picom -b --log-file /var/log/picom.log --log-level INFO } gamermode_on(){ notify-send -t 1600 'enabled gamermode' --icon=video-display - killall picom; + superctl stop picom +# killall picom; } if [ `pgrep -x picom` ]; then diff --git a/.local/script/goinstallbinaries b/.local/script/goinstallbinaries index b0cddbf..0b76701 100755 --- a/.local/script/goinstallbinaries +++ b/.local/script/goinstallbinaries @@ -21,5 +21,11 @@ go install github.com/koron/iferr@master go install golang.org/x/perf/cmd/benchstat@latest go install github.com/wader/bump/cmd/bump@latest go install mvdan.cc/gofumpt@latest +go install github.com/abice/go-enum@latest +go install golang.org/x/tools/cmd/gonew@latest +go install github.com/cweill/gotests@latest +go install golang.org/x/vuln/cmd/govulncheck@latest +go install github.com/abenz1267/gomvp@latest +go install github.com/tmc/json-to-struct@latest -asdf reshim golang +mise reshim