This commit is contained in:
a 2024-07-01 03:49:26 -05:00
parent 80c49d3203
commit 05f2688fe2
Signed by: a
GPG Key ID: 374BC539FE795AF0
3 changed files with 13 additions and 4 deletions

View File

@ -5,6 +5,7 @@ import (
"context" "context"
"fmt" "fmt"
"log/slog" "log/slog"
"path"
"reflect" "reflect"
"gfx.cafe/util/go/fxriver" "gfx.cafe/util/go/fxriver"
@ -13,7 +14,7 @@ import (
) )
var ( var (
packageName = reflect.TypeOf(Args{}).PkgPath() packageName = path.Base(reflect.TypeOf(Args{}).PkgPath())
) )
type Args struct { type Args struct {

View File

@ -3,12 +3,14 @@
gamermode_off(){ gamermode_off(){
notify-send -t 1600 'disabled gamermode' --icon=video-display 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(){ gamermode_on(){
notify-send -t 1600 'enabled gamermode' --icon=video-display notify-send -t 1600 'enabled gamermode' --icon=video-display
killall picom; superctl stop picom
# killall picom;
} }
if [ `pgrep -x picom` ]; then if [ `pgrep -x picom` ]; then

View File

@ -21,5 +21,11 @@ go install github.com/koron/iferr@master
go install golang.org/x/perf/cmd/benchstat@latest go install golang.org/x/perf/cmd/benchstat@latest
go install github.com/wader/bump/cmd/bump@latest go install github.com/wader/bump/cmd/bump@latest
go install mvdan.cc/gofumpt@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