aboutsummaryrefslogtreecommitdiffstats
path: root/rofi
diff options
context:
space:
mode:
Diffstat (limited to 'rofi')
-rw-r--r--rofi/default.nix9
-rw-r--r--rofi/theme.nix89
2 files changed, 98 insertions, 0 deletions
diff --git a/rofi/default.nix b/rofi/default.nix
new file mode 100644
index 0000000..136550f
--- /dev/null
+++ b/rofi/default.nix
@@ -0,0 +1,9 @@
+{ config, ... }:
+
+{
+ programs.rofi = {
+ enable = true;
+ font = "FiraCode Nerd Font 16";
+ theme = import ./theme.nix config;
+ };
+}
diff --git a/rofi/theme.nix b/rofi/theme.nix
new file mode 100644
index 0000000..dfac2c3
--- /dev/null
+++ b/rofi/theme.nix
@@ -0,0 +1,89 @@
+config:
+
+with config.lib.stylix.colors.withHashtag;
+builtins.toFile "theme.rasi"
+''
+ configuration {
+ font: "${config.programs.rofi.font}";
+
+ drun {
+ display-name: " ";
+ }
+
+ run {
+ display-name: " ";
+ }
+
+ window {
+ display-name: " ";
+ }
+
+ ssh {
+ display-name: " ";
+ }
+
+ timeout {
+ delay: 10;
+ action: "kb-cancel";
+ }
+ }
+
+ * {
+ border: 1;
+ margin: 0;
+ padding: 0;
+ spacing: 0;
+
+ bg: ${base00};
+ bg-alt: ${base01};
+ fg: ${base05};
+ fg-alt: ${base04};
+
+ background-color: @bg;
+ text-color: @fg;
+ }
+
+ window {
+ transparency: "real";
+ }
+
+ mainbox {
+ children: [inputbar, listview];
+ }
+
+ inputbar {
+ background-color: @bg-alt;
+ children: [prompt, entry];
+ }
+
+ entry {
+ background-color: inherit;
+ padding: 12px 3px;
+ }
+
+ prompt {
+ background-color: inherit;
+ padding: 12px;
+ }
+
+ listview {
+ lines: 8;
+ }
+
+ element {
+ children: [element-text];
+ }
+
+ element-icon {
+ padding: 10px 10px;
+ }
+
+ element-text {
+ padding: 10px 10px;
+ text-color: @fg-alt;
+ }
+
+ element-text selected {
+ text-color: @fg;
+ }
+''