working on wofi

This commit is contained in:
2026-03-11 14:53:53 +01:00
parent f2a1a49d09
commit a7c150d089
19 changed files with 543 additions and 438 deletions
+372 -370
View File
File diff suppressed because it is too large Load Diff
+38 -36
View File
@@ -1015,40 +1015,36 @@ This is top file of this level which contains just an import statement for all r
** =generated/hyprland/task_launcher/wofi.nix=
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
#+BEGIN_SRC nix :tangle generated/hyprland/task_launcher/wofi.nix :noweb tangle :mkdirp yes :eval never-html
{ config, pkgs, lib, user, flakeRoot, ... }:
let
xdgDataHome = config.home-manager.users.${user.username}.xdg.dataHome;
in
{ lib, config, pkgs, flakeRoot, ... }:
{
# NixOS: Install Wofi system-wide (optional)
environment.systemPackages = with pkgs; [ wofi ];
# Install Wofi and its dependencies
environment.systemPackages = with pkgs; [
wofi
];
# Home Manager: User-specific Wofi config
home-manager.users.${user.username} = {
# Install Wofi for the user
home.packages = with pkgs; [ wofi ];
# Home Manager configuration for Wofi
home-manager.users.henrov = {
# Ensure the config and theme directories exist
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/style.css".source = "${flakeRoot}/.assets/hyprland/conf/wofi/theming.css";
};
# Wofi configuration
xdg.configFile."wofi/config".text = ''
dark
width=500
height=800
lines=10
columns=1
cache_dir=${xdgDataHome}/wofi
allow_images=true
allow_markup=true
show_drun=true
'';
/*
# Catppuccin Mocha theme for Wofi
xdg.configFile."wofi/style.css".source = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "wofi";
rev = "d4c8c0a6b57e2e97a0d7b87e186322e933a8d9e0"; # Example commit hash (replace with a valid one)
sha256 = "sha256-0Rn9CKPm0v3rXlx7nyXD3QJ5Xq3XZvBwgqXzWmOyZkA="; # Replace with the correct hash
} + "/mocha.css"; # Correct file name
*/
# Environment variables for Wofi
home.sessionVariables = {
WOFI_CONFIG = "$HOME/.config/wofi/config";
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";
};
}
#+END_SRC
@@ -1302,16 +1298,22 @@ in
** =generated/system/applications/terminal_shell/starship.nix=
This file sets up starship prompt
#+BEGIN_SRC nix :tangle generated/system/applications/terminal_shell/starship.nix :noweb tangle :mkdirp yes :eval never-html
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
flakeRoot,
...
}:
let
starshipConfig = lib.importTOML (flakeRoot + "/assets/system/conf/starship.toml");
in
{
programs.starship = {
enable = true;
# Load your custom starship.toml directly
settings = builtins.readFile ./assets/system/conf/starship.toml;
settings = starshipConfig;
};
}
#+END_SRC
** =generated/system/applications/terminal_shell/zsh.nix=
@@ -0,0 +1,69 @@
/* Catppuccin Mocha theme for Wofi */
@define-color base #1E1E2E;
@define-color surface0 #313244;
@define-color surface1 #45475A;
@define-color surface2 #585B70;
@define-color text #CDD6F4;
@define-color lavender #B4BEFE;
@define-color blue #89B4FA;
@define-color sapphire #74C7EC;
@define-color teal #94E2D5;
@define-color green #A6E3A1;
@define-color yellow #F9E2AF;
@define-color peach #FAB387;
@define-color maroon #EBA0AC;
@define-color red #F38BA8;
@define-color mauve #CBA6F7;
@define-color pink #F5C2E7;
@define-color flamingo #F2CDCD;
@define-color rosewater #F5E0DC;
* {
background-color: @base;
color: @text;
font-family: "JetBrainsMono Nerd Font", monospace;
font-size: 12pt;
}
#main {
border: 1px solid @surface0;
border-radius: 10px;
padding: 20px;
}
#input {
background-color: @surface0;
color: @text;
border: 1px solid @surface1;
border-radius: 5px;
padding: 5px 10px;
margin-bottom: 10px;
}
#entry {
background-color: @surface0;
color: @text;
border-radius: 5px;
padding: 5px 10px;
}
#entry:focus {
background-color: @surface1;
color: @lavender;
}
#entry:selected {
background-color: @surface2;
color: @text;
}
#scrollbar {
background-color: @surface0;
border-radius: 5px;
}
#scrollbar.handle {
background-color: @blue;
border-radius: 5px;
}
@@ -0,0 +1,37 @@
[global]
allow_images = true
allow_markup = true
show_drun = true:apps,false:others
show_run = true
show_files = false
show_windowed = false
show_dmenu = false
show_ssh = false
show_power = false
width = 800
height = 600
x = center
y = center
lines = 10
columns = 1
sort_order = last-used
sort_method = fuzzy
allow_scrolling = true
scroll_wrap = true
scroll_step = 10
cycle = true
hide_scroll = false
hide_search = false
show_labels = true
label_search = true
label_run = Run
label_files = Files
label_windowed = Windows
label_drun = Applications
label_dmenu = Commands
label_ssh = SSH
label_power = Power
prompt = >
@@ -1,36 +1,32 @@
{ config, pkgs, lib, user, flakeRoot, ... }:
let
xdgDataHome = config.home-manager.users.${user.username}.xdg.dataHome;
in
{ lib, config, pkgs, flakeRoot, ... }:
{
# NixOS: Install Wofi system-wide (optional)
environment.systemPackages = with pkgs; [ wofi ];
# Install Wofi and its dependencies
environment.systemPackages = with pkgs; [
wofi
];
# Home Manager: User-specific Wofi config
home-manager.users.${user.username} = {
# Install Wofi for the user
home.packages = with pkgs; [ wofi ];
# Home Manager configuration for Wofi
home-manager.users.henrov = {
# Ensure the config and theme directories exist
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/style.css".source = "${flakeRoot}/.assets/hyprland/conf/wofi/theming.css";
};
# Wofi configuration
xdg.configFile."wofi/config".text = ''
dark
width=500
height=800
lines=10
columns=1
cache_dir=${xdgDataHome}/wofi
allow_images=true
allow_markup=true
show_drun=true
'';
/*
# Catppuccin Mocha theme for Wofi
xdg.configFile."wofi/style.css".source = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "wofi";
rev = "d4c8c0a6b57e2e97a0d7b87e186322e933a8d9e0"; # Example commit hash (replace with a valid one)
sha256 = "sha256-0Rn9CKPm0v3rXlx7nyXD3QJ5Xq3XZvBwgqXzWmOyZkA="; # Replace with the correct hash
} + "/mocha.css"; # Correct file name
*/
# Environment variables for Wofi
home.sessionVariables = {
WOFI_CONFIG = "$HOME/.config/wofi/config";
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";
};
}
@@ -5,7 +5,6 @@
flakeRoot,
...
}:
let
starshipConfig = lib.importTOML (flakeRoot + "/assets/system/conf/starship.toml");
in