configure rofi

This commit is contained in:
CDaut 2024-02-24 00:30:05 +01:00
parent e0b88992f5
commit d7934e2107
Signed by: clara
GPG key ID: 223391B52FAD4463
6 changed files with 117 additions and 5 deletions

48
flake.lock generated Normal file
View file

@ -0,0 +1,48 @@
{
"nodes": {
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1708591310,
"narHash": "sha256-8mQGVs8JccWTnORgoLOTh9zvf6Np+x2JzhIc+LDcJ9s=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "0e0e9669547e45ea6cca2de4044c1a384fd0fe55",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1708655239,
"narHash": "sha256-ZrP/yACUvDB+zbqYJsln4iwotbH6CTZiTkANJ0AgDv4=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "cbc4211f0afffe6dfd2478a62615dd5175a13f9a",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View file

@ -20,8 +20,9 @@ in
home.stateVersion = "24.05"; # Please read the comment before changing. home.stateVersion = "24.05"; # Please read the comment before changing.
imports = [ imports = [
./git.nix ./programm_configs/git.nix
./vscode.nix ./programm_configs/vscode.nix
./programm_configs/rofi.nix
]; ];
# The home.packages option allows you to install Nix packages into your # The home.packages option allows you to install Nix packages into your
@ -37,7 +38,10 @@ in
# dotfiles # dotfiles
home.file = { home.file = {
rofitheme = {
source = ./programm_configs/slate.rasi;
target = ".config/rofi/slate.rasi";
};
}; };
# envars # envars

17
programm_configs/rofi.nix Normal file
View file

@ -0,0 +1,17 @@
{ pkgs, ... }:
{
programs.rofi = {
enable = true;
font = "hack 10";
theme = "slate";
terminal = "alacritty";
location = "top-left";
extraConfig = {
modi = "window,drun,ssh,combi";
combi-modi = "window,drun,ssh";
icon-theme = "Papirus";
dpi = 100;
show-icons = true;
};
};
}

View file

@ -0,0 +1,43 @@
* {
background-color: #282C33;
border-color: #2e343f;
text-color: #8ca0aa;
spacing: 0;
width: 30%;
}
inputbar {
border: 0 0 1px 0;
children: [entry];
}
prompt {
padding: 16px;
border: 0 1px 0 0;
}
textbox {
background-color: #2e343f;
border: 0 0 1px 0;
border-color: #282C33;
padding: 8px 16px;
}
entry {
padding: 16px;
}
listview {
cycle: false;
margin: 0 0 -1px 0;
scrollbar: false;
}
element {
border: 0 0 1px 0;
padding: 16px;
}
element selected {
background-color: #2e343f;
}