aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tools/rofi
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tools/rofi')
-rw-r--r--modules/tools/rofi/default.nix15
-rw-r--r--modules/tools/rofi/theme.mustache.rasi82
2 files changed, 97 insertions, 0 deletions
diff --git a/modules/tools/rofi/default.nix b/modules/tools/rofi/default.nix
new file mode 100644
index 0000000..9f2bcd2
--- /dev/null
+++ b/modules/tools/rofi/default.nix
@@ -0,0 +1,15 @@
+{ pkgs, lib, config, ... }:
+
+{
+ options.tools.rofi = {
+ enable = lib.mkEnableOption "Enables rofi.";
+ };
+
+ config = lib.mkIf config.tools.rofi.enable {
+ programs.rofi.enable = true;
+ programs.rofi.font = "${config.fonts.normal} ${toString config.fonts.size}";
+ # programs.rofi.theme = config.scheme {
+ # template = builtins.readFile ./theme.mustache.rasi;
+ # };
+ };
+}
diff --git a/modules/tools/rofi/theme.mustache.rasi b/modules/tools/rofi/theme.mustache.rasi
new file mode 100644
index 0000000..02cdaf3
--- /dev/null
+++ b/modules/tools/rofi/theme.mustache.rasi
@@ -0,0 +1,82 @@
+configuration {
+ 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-hex}};
+ bg-alt: #{{base01-hex}};
+ fg: #{{base07-hex}};
+ fg-alt: #{{base03-hex}};
+
+ background-color: @bg;
+ text-color: @fg;
+}
+
+window {
+ transparency: "real";
+ border-color: #{{base03-hex}};
+}
+
+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;
+}