working on wofi
This commit is contained in:
+372
-370
File diff suppressed because it is too large
Load Diff
+38
-36
@@ -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=
|
** =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
|
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
|
#+BEGIN_SRC nix :tangle generated/hyprland/task_launcher/wofi.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{ config, pkgs, lib, user, flakeRoot, ... }:
|
{ lib, config, pkgs, flakeRoot, ... }:
|
||||||
let
|
|
||||||
xdgDataHome = config.home-manager.users.${user.username}.xdg.dataHome;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
# NixOS: Install Wofi system-wide (optional)
|
# Install Wofi and its dependencies
|
||||||
environment.systemPackages = with pkgs; [ wofi ];
|
environment.systemPackages = with pkgs; [
|
||||||
|
wofi
|
||||||
|
];
|
||||||
|
|
||||||
# Home Manager: User-specific Wofi config
|
# Home Manager configuration for Wofi
|
||||||
home-manager.users.${user.username} = {
|
home-manager.users.henrov = {
|
||||||
# Install Wofi for the user
|
# Ensure the config and theme directories exist
|
||||||
home.packages = with pkgs; [ wofi ];
|
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
|
# Environment variables for Wofi
|
||||||
xdg.configFile."wofi/config".text = ''
|
home.sessionVariables = {
|
||||||
dark
|
WOFI_CONFIG = "$HOME/.config/wofi/config";
|
||||||
width=500
|
WOFI_STYLE = "$HOME/.config/wofi/style.css";
|
||||||
height=800
|
};
|
||||||
lines=10
|
};
|
||||||
columns=1
|
|
||||||
cache_dir=${xdgDataHome}/wofi
|
# Systemd service to ensure Wofi is available (optional)
|
||||||
allow_images=true
|
systemd.user.services.wofi = {
|
||||||
allow_markup=true
|
description = "Wofi Application Launcher";
|
||||||
show_drun=true
|
wantedBy = [ "default.target" ];
|
||||||
'';
|
serviceConfig.Type = "oneshot";
|
||||||
/*
|
serviceConfig.ExecStart = "${pkgs.wofi}/bin/wofi --show drun";
|
||||||
# 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
|
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
@@ -1302,16 +1298,22 @@ in
|
|||||||
** =generated/system/applications/terminal_shell/starship.nix=
|
** =generated/system/applications/terminal_shell/starship.nix=
|
||||||
This file sets up starship prompt
|
This file sets up starship prompt
|
||||||
#+BEGIN_SRC nix :tangle generated/system/applications/terminal_shell/starship.nix :noweb tangle :mkdirp yes :eval never-html
|
#+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 = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# Load your custom starship.toml directly
|
settings = starshipConfig;
|
||||||
settings = builtins.readFile ./assets/system/conf/starship.toml;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =generated/system/applications/terminal_shell/zsh.nix=
|
** =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, ... }:
|
{ lib, config, pkgs, flakeRoot, ... }:
|
||||||
let
|
|
||||||
xdgDataHome = config.home-manager.users.${user.username}.xdg.dataHome;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
# NixOS: Install Wofi system-wide (optional)
|
# Install Wofi and its dependencies
|
||||||
environment.systemPackages = with pkgs; [ wofi ];
|
environment.systemPackages = with pkgs; [
|
||||||
|
wofi
|
||||||
|
];
|
||||||
|
|
||||||
# Home Manager: User-specific Wofi config
|
# Home Manager configuration for Wofi
|
||||||
home-manager.users.${user.username} = {
|
home-manager.users.henrov = {
|
||||||
# Install Wofi for the user
|
# Ensure the config and theme directories exist
|
||||||
home.packages = with pkgs; [ wofi ];
|
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
|
# Environment variables for Wofi
|
||||||
xdg.configFile."wofi/config".text = ''
|
home.sessionVariables = {
|
||||||
dark
|
WOFI_CONFIG = "$HOME/.config/wofi/config";
|
||||||
width=500
|
WOFI_STYLE = "$HOME/.config/wofi/style.css";
|
||||||
height=800
|
};
|
||||||
lines=10
|
};
|
||||||
columns=1
|
|
||||||
cache_dir=${xdgDataHome}/wofi
|
# Systemd service to ensure Wofi is available (optional)
|
||||||
allow_images=true
|
systemd.user.services.wofi = {
|
||||||
allow_markup=true
|
description = "Wofi Application Launcher";
|
||||||
show_drun=true
|
wantedBy = [ "default.target" ];
|
||||||
'';
|
serviceConfig.Type = "oneshot";
|
||||||
/*
|
serviceConfig.ExecStart = "${pkgs.wofi}/bin/wofi --show drun";
|
||||||
# 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
|
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
flakeRoot,
|
flakeRoot,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
starshipConfig = lib.importTOML (flakeRoot + "/assets/system/conf/starship.toml");
|
starshipConfig = lib.importTOML (flakeRoot + "/assets/system/conf/starship.toml");
|
||||||
in
|
in
|
||||||
|
|||||||
Reference in New Issue
Block a user