fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Install lucid
This commit is contained in:
6 files changed
+130
-54
No files matched your search
@@ -1,9 +1,7 @@
|
||||
{ pkgs, lib, config, osConfig, ... }: {
|
||||
wayland.windowManager.hyprland = let
|
||||
{ pkgs, lib, config, osConfig, ... }:
|
||||
let
|
||||
colors = config.lib.stylix.colors;
|
||||
accent = colors.${config.stylix.accent};
|
||||
hyprLua = import ../../../modules/user/hyprland/lua.nix { inherit lib; };
|
||||
|
||||
wallpaper_changer = pkgs.writers.writePython3Bin "wallpaper_changer" {
|
||||
libraries = [ pkgs.python3Packages.requests ];
|
||||
flakeIgnore = [ "E111" "E121" "E241" "E501" "E701" "E731" ];
|
||||
@@ -128,7 +126,10 @@
|
||||
f"{folder}/{filename}",
|
||||
], check=False)
|
||||
'';
|
||||
in {
|
||||
in {
|
||||
home.packages = [ wallpaper_changer ];
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
settings = {
|
||||
config = {
|
||||
general = {
|
||||
@@ -150,8 +151,8 @@
|
||||
|
||||
blur = {
|
||||
enabled = true;
|
||||
size = 8;
|
||||
passes = 1;
|
||||
size = 16;
|
||||
passes = 2;
|
||||
new_optimizations = true;
|
||||
};
|
||||
|
||||
@@ -198,10 +199,6 @@
|
||||
}
|
||||
];
|
||||
|
||||
bind = [
|
||||
(hyprLua.bind "SUPER + W" (hyprLua.execLauncher "qs ipc call launcher wallpaper"))
|
||||
(hyprLua.bind "SUPER + SHIFT + W" (hyprLua.exec "${lib.getExe wallpaper_changer}"))
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
{ config, lib, osConfig, pkgs, ... }:
|
||||
let
|
||||
host = osConfig.networking.hostName;
|
||||
isRias = host == "Rias";
|
||||
liveDecoder = if builtins.elem osConfig.networking.hostName [ "Rias" "Eclipse" ] then "cuda" else "vaapi";
|
||||
source = pkgs.fetchgit {
|
||||
url = "https://github.com/Sn3akyy1/lucid.git";
|
||||
@@ -185,6 +187,9 @@ in {
|
||||
|
||||
lucid_dir="${config.home.homeDirectory}/.config/lucid"
|
||||
$DRY_RUN_CMD mkdir -p "$lucid_dir/themes"
|
||||
if [ "${host}" = Rias ] && [ ! -s "$lucid_dir/keybinds.json" ]; then
|
||||
$DRY_RUN_CMD install -m644 ${../../../modules/user/lucid/lucid-keybinds-rias.json} "$lucid_dir/keybinds.json"
|
||||
fi
|
||||
$DRY_RUN_CMD ${pkgs.rsync}/bin/rsync -rltp --chmod=Du+rwx,Fu+rw --ignore-existing \
|
||||
"${source}/support/lucid/themes/" "$lucid_dir/themes/"
|
||||
for script in palette-edit.py lucid_palette.py add-theme.py scheme-gallery.py gen-light-palette.py; do
|
||||
@@ -269,10 +274,14 @@ in {
|
||||
Install.WantedBy = [ "hyprland-session.target" ];
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
on = [ (hyprLua.onStart [ "systemctl --user start lucid.service" ]) ];
|
||||
bind = [
|
||||
(hyprLua.bind "SUPER + SHIFT + G" (hyprLua.exec "qs ipc call widgets panel"))
|
||||
];
|
||||
wayland.windowManager.hyprland = {
|
||||
settings = {
|
||||
on = [ (hyprLua.onStart [ "systemctl --user start lucid.service" ]) ];
|
||||
bind = lib.mkIf isRias (lib.mkForce []);
|
||||
};
|
||||
extraLuaFiles = lib.mkIf isRias {
|
||||
"modules/binds.lua" = builtins.toPath "${source}/support/hypr/modules/binds.lua";
|
||||
"modules/json.lua" = builtins.toPath "${source}/support/hypr/modules/json.lua";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user