outfoxxed / hy3

Hyprland plugin for an i3 / sway like manual tiling layout
GNU General Public License v3.0
523 stars 44 forks source link

Can't install using hyprpm #59

Closed Crandel closed 10 months ago

Crandel commented 10 months ago

I have installed Hyprland yesterday on my Arch Linux machine after using Swaywm for last two years. And I'm missing tabbed layout from it in Hyprland. I tried to install hy3 using hyprpm as was explained in README.

System: Arch Linux Hyprland: 0.34.0-1

$ hyprpm add https://github.com/outfoxxed/hy3
✔ adding a new plugin repository from https://github.com/outfoxxed/hy3
  MAKE SURE that you trust the authors. DO NOT install random plugins without verifying the code and author.
  Are you sure? [Y/n] y

 → Cloning https://github.com/outfoxxed/hy3
✔ cloned
✔ found hyprpm manifest
✔ parsed manifest, found 1 plugins:
 → hy3 by outfoxxed version
✔ Hyprland headers OK
 → Building hy3
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━  3 / 5  Building plugin(s)
✖ Plugin hy3 failed to build.
xandayn commented 10 months ago

I also had issues installing this, my solution was to manually install CMake before adding the plugin with hyprpm, It is not installed as part of the "base-devel" package on Arch, but is required to build this project.

Crandel commented 9 months ago

@xandayn After installing cmake I can install hy3 plugin. But after reboot I got error about hy3:movefocus dispatcher.

How exactly enable this plugin before binds will be loaded? My current config is:

exec-once = hyprpm reload -n

plugin {
    hy3 {
        tab_first_window = true
        tabs {
            ...
        }
        ...
    }
}

general {
    ...
    layout = hy3
    ...
}

bind = $mMod, right, hy3:movefocus, r
bind = $mMod, left,  hy3:movefocus, l
bind = $mMod, up,    hy3:movefocus, u
bind = $mMod, down,  hy3:movefocus, d
xandayn commented 9 months ago

@xandayn After installing cmake I can install hy3 plugin. But after reboot I got error about hy3:movefocus dispatcher.

How exactly enable this plugin before binds will be loaded? My current config is:

exec-once = hyprpm reload -n

plugin {
    hy3 {
        tab_first_window = true
        tabs {
            ...
        }
        ...
    }
}

general {
    ...
    layout = hy3
    ...
}

bind = $mMod, right, hy3:movefocus, r
bind = $mMod, left,  hy3:movefocus, l
bind = $mMod, up,    hy3:movefocus, u
bind = $mMod, down,  hy3:movefocus, d

I actually also have this issue, but am unsure if this is actually an issue with hy3 or hyprpm, as a stop-gap while I tried to figure it out I just setup a keybind for hyprpm reload and I hit it after login which is good enough for me. You might want to open a new issue for it though, I don't have the time currently to look into it. It looks like there's already a PR here to fix this issue. #58