configure rofi
This commit is contained in:
parent
e0b88992f5
commit
d7934e2107
6 changed files with 117 additions and 5 deletions
48
flake.lock
generated
Normal file
48
flake.lock
generated
Normal 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
|
||||||
|
}
|
||||||
12
home.nix
12
home.nix
|
|
@ -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,11 +38,14 @@ in
|
||||||
|
|
||||||
# dotfiles
|
# dotfiles
|
||||||
home.file = {
|
home.file = {
|
||||||
|
rofitheme = {
|
||||||
|
source = ./programm_configs/slate.rasi;
|
||||||
|
target = ".config/rofi/slate.rasi";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# envars
|
# envars
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "vim";
|
EDITOR = "vim";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
17
programm_configs/rofi.nix
Normal file
17
programm_configs/rofi.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
43
programm_configs/slate.rasi
Normal file
43
programm_configs/slate.rasi
Normal 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;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue