Added rofi config
authorCian Bagshaw <cian@cianb.xyz>
Mon, 18 Sep 2023 20:30:25 +0000 (21:30 +0100)
committerCian Bagshaw <cian@cianb.xyz>
Mon, 18 Sep 2023 20:30:25 +0000 (21:30 +0100)
Wrote a proper rofi configuration/theme file and fixed calls in i3 config file.

.config/i3
.config/rofi [new file with mode: 0644]

index cd07643..c510f7a 100755 (executable)
@@ -20,8 +20,8 @@ bindsym $mod+Shift+Return     exec alacritty --config-file "$XDG_CONFIG_HOME/alacrit
 bindsym $mod+Shift+q kill
 
 # rofi menu
-bindsym $mod+d exec rofi -show run -icon-theme "Papirus" -show-icons
-bindsym $mod+n exec spass sel rofi -dmenu
+bindsym $mod+d exec                            rofi -show drun -show-icons     -config "$XDG_CONFIG_HOME/rofi"
+bindsym $mod+n exec spass sel  rofi -dmenu -p "logins:"        -config "$XDG_CONFIG_HOME/rofi"
 
 # gaps
 gaps outer 2
diff --git a/.config/rofi b/.config/rofi
new file mode 100644 (file)
index 0000000..e65757e
--- /dev/null
@@ -0,0 +1,25 @@
+// vim: ft=css
+
+configuration { display-drun: "Applications:"; }
+
+@theme "/dev/null"
+
+* {
+  lines:       10;
+  width:       400px;
+  spacing:     0;
+
+  bg:          rgb(30, 30, 45);        fg:             rgb(125, 130, 155);
+  bg-sel:      rgb(90, 90, 110);       fg-sel: rgb(205, 215, 245);
+}
+
+window                         { background-color: @bg;                text-color: @fg;         width: @width;  }
+mainbox                                { background-color: inherit;    text-color: inherit; }
+inputbar                       { background-color: @bg-sel;    text-color: @fg-sel; children: [prompt, entry]; }
+prompt                         { background-color: inherit;    text-color: inherit; padding: 12px 0px 0px 12px; }
+entry                          { background-color: inherit;    text-color: inherit; padding: 12px; }
+listview                       { background-color: inherit;    text-color: inherit; lines: @lines; }
+element                                { background-color: inherit;    text-color: inherit; padding: 8px 12px 8px 12px; }
+element selected       { background-color: @bg-sel;    text-color: @fg-sel; }
+element-text           { background-color: inherit;    text-color: inherit; }
+element-icon           { background-color: inherit;    text-color: inherit; padding: 0px 10px 0px 0px; size: 14px; }