Add wofi
This commit is contained in:
parent
13cf73e576
commit
f5fe583f2d
|
@ -1,4 +1,4 @@
|
|||
{ system, inputs, config, lib, pkgs, ... }: let
|
||||
{ system, inputs, config, lib, pkgs, impurity, ... }: let
|
||||
username = "admin";
|
||||
homeDirectory = "/home/${username}";
|
||||
in {
|
||||
|
@ -59,7 +59,7 @@ in {
|
|||
|
||||
home-manager = {
|
||||
extraSpecialArgs = {
|
||||
inherit system inputs;
|
||||
inherit system inputs impurity;
|
||||
};
|
||||
|
||||
# use system nixpkgs instead of home-manager nixpkgs
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
home-manager.users.${config.main-user} = homeInputs: let
|
||||
homeConfig = homeInputs.config;
|
||||
in {
|
||||
imports = [
|
||||
./modules/wofi
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
ark
|
||||
kwrite
|
||||
|
|
20
modules/user/modules/wofi/default.nix
Normal file
20
modules/user/modules/wofi/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ pkgs, impurity, ... }: {
|
||||
programs.wofi = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
mode = "drun";
|
||||
style = "${impurity.link ./style.css}";
|
||||
term = "alacritty";
|
||||
prompt = "";
|
||||
|
||||
insensitive = true;
|
||||
allowImages = true;
|
||||
hideScroll = true;
|
||||
noActions = true;
|
||||
|
||||
width = 500;
|
||||
height = 450;
|
||||
};
|
||||
};
|
||||
}
|
30
modules/user/modules/wofi/style.css
Normal file
30
modules/user/modules/wofi/style.css
Normal file
|
@ -0,0 +1,30 @@
|
|||
#window {
|
||||
background-color: rgba(0x20,0x25,0x30,0.55);
|
||||
border-radius: 10px;
|
||||
border: 2px solid rgba(0x40,0x40,0x50,0.70);
|
||||
}
|
||||
|
||||
#outer-box {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
#input {
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
background-color: rgba(0,0,0,0.3);
|
||||
padding: 2px;
|
||||
margin-bottom: 7px;
|
||||
}
|
||||
|
||||
#entry {
|
||||
padding: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#entry:selected {
|
||||
background-color: rgba(255,255,255,0.1);
|
||||
}
|
||||
|
||||
#img {
|
||||
padding-right: 10px;
|
||||
}
|
Loading…
Reference in a new issue