From d7934e2107c0a831517e201d0be9f81c29c8c93a Mon Sep 17 00:00:00 2001 From: CDaut Date: Sat, 24 Feb 2024 00:30:05 +0100 Subject: [PATCH] configure rofi --- flake.lock | 48 +++++++++++++++++++++++ home.nix | 14 ++++--- git.nix => programm_configs/git.nix | 0 programm_configs/rofi.nix | 17 ++++++++ programm_configs/slate.rasi | 43 ++++++++++++++++++++ vscode.nix => programm_configs/vscode.nix | 0 6 files changed, 117 insertions(+), 5 deletions(-) create mode 100644 flake.lock rename git.nix => programm_configs/git.nix (100%) create mode 100644 programm_configs/rofi.nix create mode 100644 programm_configs/slate.rasi rename vscode.nix => programm_configs/vscode.nix (100%) diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..6cb003b --- /dev/null +++ b/flake.lock @@ -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 +} diff --git a/home.nix b/home.nix index fab2602..d5bc7b0 100644 --- a/home.nix +++ b/home.nix @@ -20,8 +20,9 @@ in home.stateVersion = "24.05"; # Please read the comment before changing. imports = [ - ./git.nix - ./vscode.nix + ./programm_configs/git.nix + ./programm_configs/vscode.nix + ./programm_configs/rofi.nix ]; # The home.packages option allows you to install Nix packages into your @@ -36,12 +37,15 @@ in ]; # dotfiles - home.file = { - + home.file = { + rofitheme = { + source = ./programm_configs/slate.rasi; + target = ".config/rofi/slate.rasi"; + }; }; # envars home.sessionVariables = { - EDITOR = "vim"; + EDITOR = "vim"; }; } diff --git a/git.nix b/programm_configs/git.nix similarity index 100% rename from git.nix rename to programm_configs/git.nix diff --git a/programm_configs/rofi.nix b/programm_configs/rofi.nix new file mode 100644 index 0000000..1f429b2 --- /dev/null +++ b/programm_configs/rofi.nix @@ -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; + }; + }; +} diff --git a/programm_configs/slate.rasi b/programm_configs/slate.rasi new file mode 100644 index 0000000..fe3adcc --- /dev/null +++ b/programm_configs/slate.rasi @@ -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; +} \ No newline at end of file diff --git a/vscode.nix b/programm_configs/vscode.nix similarity index 100% rename from vscode.nix rename to programm_configs/vscode.nix