fix(hypr): load plugins in exec-once
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
6155156e3b
commit
a9c41069a6
2 changed files with 10 additions and 4 deletions
|
@ -6,15 +6,18 @@ self: {
|
||||||
}: let
|
}: let
|
||||||
inherit (self.lib.hypr) mkBind;
|
inherit (self.lib.hypr) mkBind;
|
||||||
|
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkBefore mkIf;
|
||||||
|
|
||||||
cfg = osConfig.roles.desktop;
|
cfg = osConfig.roles.desktop;
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
plugins = [self.inputs.hyprland-plugins.packages.${pkgs.system}.hyprexpo];
|
# FIXME: https://github.com/hyprwm/Hyprland/issues/9131
|
||||||
|
# plugins = [self.inputs.hyprland-plugins.packages.${pkgs.system}.hyprexpo];
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
exec-once = mkBefore ["hyprctl plugins load ${self.inputs.hyprland-plugins.packages.${pkgs.system}.hyprexpo}/lib/libhyprexpo.so"];
|
||||||
|
|
||||||
plugin.hyprexpo = {
|
plugin.hyprexpo = {
|
||||||
columns = 3;
|
columns = 3;
|
||||||
gap_size = 5;
|
gap_size = 5;
|
||||||
|
|
|
@ -6,15 +6,18 @@ self: {
|
||||||
}: let
|
}: let
|
||||||
inherit (self.lib.hypr) mkBind;
|
inherit (self.lib.hypr) mkBind;
|
||||||
|
|
||||||
inherit (lib) map mkIf;
|
inherit (lib) map mkBefore mkIf;
|
||||||
|
|
||||||
cfg = osConfig.roles.desktop;
|
cfg = osConfig.roles.desktop;
|
||||||
in {
|
in {
|
||||||
config = mkIf (cfg.enable && cfg.isTouchscreen) {
|
config = mkIf (cfg.enable && cfg.isTouchscreen) {
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
plugins = [self.inputs.hyprgrass.packages.${pkgs.system}.default];
|
# FIXME: https://github.com/hyprwm/Hyprland/issues/9131
|
||||||
|
# plugins = [self.inputs.hyprgrass.packages.${pkgs.system}.default];
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
exec-once = mkBefore ["hyprctl plugins load ${self.inputs.hyprgrass.packages.${pkgs.system}.default}/lib/libhyprgrass.so"];
|
||||||
|
|
||||||
plugin.touch_gestures = {
|
plugin.touch_gestures = {
|
||||||
# The default sensitivity is probably too low on tablet screens,
|
# The default sensitivity is probably too low on tablet screens,
|
||||||
# I recommend turning it up to 4.0
|
# I recommend turning it up to 4.0
|
||||||
|
|
Loading…
Reference in a new issue