working on wofi
This commit is contained in:
@@ -1,4 +1,10 @@
|
|||||||
{ lib, config, pkgs, flakeRoot, ... }:
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
flakeRoot,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Install Wofi and its dependencies
|
# Install Wofi and its dependencies
|
||||||
@@ -8,25 +14,19 @@
|
|||||||
|
|
||||||
# Home Manager configuration for Wofi
|
# Home Manager configuration for Wofi
|
||||||
home-manager.users.henrov = {
|
home-manager.users.henrov = {
|
||||||
# Ensure the config and theme directories exist
|
# Create the config directory if it doesn't exist
|
||||||
home.file = {
|
home.file = {
|
||||||
".config/wofi".source = "${flakeRoot}/.assets/hyprland/conf/wofi";
|
|
||||||
".config/wofi/config".text = lib.readFile "${flakeRoot}/.assets/hyprland/conf/wofi/wofi.conf";
|
".config/wofi/config".text = lib.readFile "${flakeRoot}/.assets/hyprland/conf/wofi/wofi.conf";
|
||||||
".config/wofi/style.css".source = "${flakeRoot}/.assets/hyprland/conf/wofi/theming.css";
|
".config/wofi/style.css".source = "${flakeRoot}/.assets/hyprland/conf/wofi/theming.css";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Ensure the .config/wofi directory exists
|
||||||
|
home.file.".config/wofi".ensureDir = true;
|
||||||
|
|
||||||
# Environment variables for Wofi
|
# Environment variables for Wofi
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
WOFI_CONFIG = "$HOME/.config/wofi/config";
|
WOFI_CONFIG = "$HOME/.config/wofi/config";
|
||||||
WOFI_STYLE = "$HOME/.config/wofi/style.css";
|
WOFI_STYLE = "$HOME/.config/wofi/style.css";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Systemd service to ensure Wofi is available (optional)
|
|
||||||
systemd.user.services.wofi = {
|
|
||||||
description = "Wofi Application Launcher";
|
|
||||||
wantedBy = [ "default.target" ];
|
|
||||||
serviceConfig.Type = "oneshot";
|
|
||||||
serviceConfig.ExecStart = "${pkgs.wofi}/bin/wofi --show drun";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user