Skip to content

Commit

Permalink
Update hyprland ip client to support v0.40
Browse files Browse the repository at this point in the history
  • Loading branch information
pltanton committed May 20, 2024
1 parent e919731 commit 7634e79
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Change paths for your setup if needed.
```ini
[Desktop Entry]
Categories=Network;WebBrowser
Exec=~/go/bin/autobrowser-linux -config ~/.config/autobrowser.config -url %u
Exec=~/go/bin/autobrowser -config ~/.config/autobrowser.config -url %u
Icon=browser
MimeType=x-scheme-handler/http;x-scheme-handler/https
Name=Autobrowser: select browser by contextual rules
Expand Down
6 changes: 2 additions & 4 deletions linux/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ module github.com/pltanton/autobrowser/linux

go 1.22.1

require github.com/labi-le/hyprland-ipc-client v1.0.3

require github.com/pltanton/autobrowser/common v0.0.0

require (
github.com/godbus/dbus/v5 v5.1.0
github.com/joshuarubin/go-sway v1.2.0
github.com/labi-le/hyprland-ipc-client/v3 v3.0.2
github.com/pltanton/autobrowser/common v0.0.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions linux/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ github.com/joshuarubin/go-sway v1.2.0 h1:t3eqW504//uj9PDwFf0+IVfkD+WoOGaDX5gYIe0
github.com/joshuarubin/go-sway v1.2.0/go.mod h1:qcDd6f25vJ0++wICwA1BainIcRC67p2Mb4lsrZ0k3/k=
github.com/joshuarubin/lifecycle v1.0.0 h1:N/lPEC8f+dBZ1Tn99vShqp36LwB+LI7XNAiNadZeLUQ=
github.com/joshuarubin/lifecycle v1.0.0/go.mod h1:sRy++ATvR9Ee21tkRdFkQeywAWvDsue66V70K0Dnl54=
github.com/labi-le/hyprland-ipc-client v1.0.3 h1:NvfazDlMf/pKl8sAqAO7BUwLEo3xxBcGgMP8PKT7R6g=
github.com/labi-le/hyprland-ipc-client v1.0.3/go.mod h1:JZ+LBSfp0aO33qOm6TMYqe7qD8CO9d8jMpGpqz6Yf3I=
github.com/labi-le/hyprland-ipc-client/v3 v3.0.2 h1:FhijVxBIiqzaRWINsuj0cy/cuBzzci4nzPfbcuHb50M=
github.com/labi-le/hyprland-ipc-client/v3 v3.0.2/go.mod h1:5y18Ty27Br/BQcyhC45CaNofWmwXR8VzswlNnb5CYZA=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
Expand Down
4 changes: 2 additions & 2 deletions linux/internal/deinfo/hyprland.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log/slog"
"os"

ipc "github.com/labi-le/hyprland-ipc-client"
ipc "github.com/labi-le/hyprland-ipc-client/v3"
)

type hyprlandProvider struct {
Expand All @@ -14,7 +14,7 @@ type hyprlandProvider struct {

func newHyprlandProvider() deInfoProvider {
return &hyprlandProvider{
c: ipc.NewClient(os.Getenv("HYPRLAND_INSTANCE_SIGNATURE")),
c: ipc.MustClient(os.Getenv("HYPRLAND_INSTANCE_SIGNATURE")),
}
}

Expand Down
2 changes: 1 addition & 1 deletion nix/homeModule.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ in {
(lib.generators.toINI {} {
"Desktop Entry" = {
Type = "Application";
Exec = "${cfg.package}/bin/autobrowser-linux -config ${configFile} -url %u";
Exec = "${cfg.package}/bin/autobrowser -config ${configFile} -url %u";
Terminal = false;
Name = "Autobrowser: select browser by contextual rules";
Icon = "browser";
Expand Down
3 changes: 1 addition & 2 deletions nix/packages/_default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
buildGoModule {
pname = "autobrowser";
version = "0";
# vendorHash = "sha256-W4WltWSZ1hJPUusaH3iRHo4HD5xmz3+/kOGxEspVF30=";
vendorHash = "sha256-GWrflGa6evgehcHQujac67llQJWnRIQbBFna26DYizk=";
vendorHash = "sha256-dvu80fFm3vIBjhk9k9Z5h9J5qTbvl3Tq1MCMQVJ+ru8=";
meta = with lib; {
homepage = "https://github.com/pltanton/autobrowser";
description = "Automatically determine browser depending on provided rules";
Expand Down

0 comments on commit 7634e79

Please sign in to comment.