Move sway to swayfx
This commit is contained in:
parent
2964471723
commit
c9e15b373e
38
flake.lock
38
flake.lock
|
@ -94,6 +94,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-compat_3": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1650374568,
|
||||||
|
"narHash": "sha256-Z+s0J8/r907g149rllvwhb4pKi8Wam5ij0st8PwAh+E=",
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"rev": "b4a34015c698c7793d592d66adbab377907a2be8",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1676283394,
|
"lastModified": 1676283394,
|
||||||
|
@ -468,6 +484,7 @@
|
||||||
"rnix-lsp": "rnix-lsp",
|
"rnix-lsp": "rnix-lsp",
|
||||||
"secrets": "secrets",
|
"secrets": "secrets",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
|
"swayfx": "swayfx",
|
||||||
"youmubot": "youmubot"
|
"youmubot": "youmubot"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -553,6 +570,27 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"swayfx": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat_3",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs-unstable"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1679331631,
|
||||||
|
"narHash": "sha256-tMoiwFO/AVTV7GoGMSu3XQimFnK8vv3yzf+D41kTJoE=",
|
||||||
|
"owner": "WillPower3309",
|
||||||
|
"repo": "swayfx",
|
||||||
|
"rev": "7d5d7a3022eb17835cea7af7290b1a5d2fe4b03a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "WillPower3309",
|
||||||
|
"repo": "swayfx",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"utils": {
|
"utils": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1667395993,
|
"lastModified": 1667395993,
|
||||||
|
|
|
@ -24,6 +24,10 @@
|
||||||
youmubot.url = "github:natsukagami/youmubot";
|
youmubot.url = "github:natsukagami/youmubot";
|
||||||
youmubot.inputs.nixpkgs.follows = "nixpkgs";
|
youmubot.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
nix-gaming.url = github:fufexan/nix-gaming;
|
nix-gaming.url = github:fufexan/nix-gaming;
|
||||||
|
swayfx = {
|
||||||
|
url = github:WillPower3309/swayfx;
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
|
};
|
||||||
|
|
||||||
# --- Sources
|
# --- Sources
|
||||||
kakoune.url = github:mawww/kakoune;
|
kakoune.url = github:mawww/kakoune;
|
||||||
|
|
|
@ -109,7 +109,7 @@ in
|
||||||
|
|
||||||
config.wayland.windowManager.sway = mkIf cfg.enable {
|
config.wayland.windowManager.sway = mkIf cfg.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.unstable.sway;
|
package = pkgs.swayfx;
|
||||||
systemdIntegration = true;
|
systemdIntegration = true;
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
@ -319,7 +319,16 @@ in
|
||||||
(if cfg.enableLaptopBars then ''
|
(if cfg.enableLaptopBars then ''
|
||||||
# Lock screen on lid close
|
# Lock screen on lid close
|
||||||
bindswitch lid:off exec ${cfg.lockCmd}
|
bindswitch lid:off exec ${cfg.lockCmd}
|
||||||
'' else "");
|
'' else "") + ''
|
||||||
|
# swayfx stuff
|
||||||
|
corner_radius 5
|
||||||
|
smart_corner_radius on
|
||||||
|
shadows on
|
||||||
|
shadow_blur_radius 5
|
||||||
|
default_dim_inactive 0.0
|
||||||
|
for_window [app_id="kitty"] dim_inactive 0.05
|
||||||
|
titlebar_separator enable
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
config.services.swayidle = mkIf cfg.enable {
|
config.services.swayidle = mkIf cfg.enable {
|
||||||
|
|
|
@ -9,7 +9,8 @@ let
|
||||||
nix-direnv = prev.unstable.nix-direnv;
|
nix-direnv = prev.unstable.nix-direnv;
|
||||||
};
|
};
|
||||||
overlay-imported = final: prev: {
|
overlay-imported = final: prev: {
|
||||||
rnix-lsp = inputs.rnix-lsp.defaultPackage."${prev.system}";
|
rnix-lsp = inputs.rnix-lsp.defaultPackage."${final.system}";
|
||||||
|
swayfx = inputs.swayfx.packages."${final.system}".default;
|
||||||
|
|
||||||
# A list of source-style inputs.
|
# A list of source-style inputs.
|
||||||
sources = final.lib.attrsets.filterAttrs (name: f: !(builtins.hasAttr "outputs" f)) inputs;
|
sources = final.lib.attrsets.filterAttrs (name: f: !(builtins.hasAttr "outputs" f)) inputs;
|
||||||
|
|
Loading…
Reference in a new issue