forked from fabian/nix_config
configure sway (this is a huge rice)
This commit is contained in:
parent
4316165e9d
commit
5d1408254a
16 changed files with 381 additions and 799 deletions
74
home/modules/gui/wofi.nix
Normal file
74
home/modules/gui/wofi.nix
Normal file
|
@ -0,0 +1,74 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.local.gui;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
programs = {
|
||||
wofi = {
|
||||
enable = true;
|
||||
settings = {
|
||||
prompt = "";
|
||||
width = "25%";
|
||||
height = "30%";
|
||||
};
|
||||
style = ''
|
||||
window {
|
||||
background-color: rgb(0, 0, 0);
|
||||
color: #eaeaea;
|
||||
font-family: monospace;
|
||||
font-size: 12px;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
padding: 0;
|
||||
width: 50%; /* half screen width */
|
||||
}
|
||||
|
||||
/* Search input */
|
||||
#input {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
color: #ffffff;
|
||||
padding: 4px 6px;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Results list container */
|
||||
#inner-box {
|
||||
background-color: transparent;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Entries */
|
||||
#entry {
|
||||
padding: 2px 6px;
|
||||
margin: 0;
|
||||
border-radius: 0;
|
||||
background-color: transparent;
|
||||
color: #cccccc;
|
||||
}
|
||||
|
||||
/* Text inside entries */
|
||||
#text {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Scrollbar */
|
||||
scrollbar {
|
||||
background: transparent;
|
||||
}
|
||||
scrollbar slider {
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue