97af03266ae14f27f8521e679e508739b9fda10a

Author
Pavle Portic <git@theedgeofrage.com>
Committer
Pavle Portic <git@theedgeofrage.com>
Date

Message

Update rofi config files to new format

Diff

This diff is truncated to protect this page.

  1diff --git a/dot_config/rofi/config b/dot_config/rofi/config
  2deleted file mode 100644
  3index 61617584a04f93c6ad5770b4cecb7e5f6684ae3b..0000000000000000000000000000000000000000
  4--- a/dot_config/rofi/config
  5+++ /dev/null
  6@@ -1,23 +0,0 @@
  7-! vim: set ft=xdefaults:
  8-! General settings
  9-rofi.levenshtein-sort: false
 10-rofi.matching: fuzzy
 11-rofi.modi: drun,ssh
 12-
 13-! Styling
 14-rofi.color-window: #1d2021,#665c54
 15-rofi.color-normal: #1d2021,#665c54,#1d2021,#665c54,#1d2021
 16-rofi.bc: #1d2021
 17-rofi.location: 0
 18-rofi.lines: 10
 19-rofi.bw: 0
 20-rofi.hide-scrollbar: true
 21-rofi.font: Pragmata Pro 13
 22-rofi.separator-style: none
 23-rofi.show-icons: false
 24-
 25-! Running
 26-rofi.terminal: terminator
 27-rofi.ssh-command: {terminal} -x "{ssh-client} {host}"
 28-rofi.run-command: {cmd}
 29-rofi.run-shell-command: {terminal} -c "{cmd}"
 30diff --git a/dot_config/rofi/config.rasi b/dot_config/rofi/config.rasi
 31new file mode 100644
 32index 0000000000000000000000000000000000000000..e15b4bde58a1a8775b55d997b42c2459fee09db6
 33--- /dev/null
 34+++ b/dot_config/rofi/config.rasi
 35@@ -0,0 +1,14 @@
 36+configuration {
 37+	modi: "drun,ssh";
 38+	fixed-num-lines: true;
 39+	font: "Pragmata Pro 13";
 40+	location: 0;
 41+	show-icons: false;
 42+	terminal: "terminator";
 43+	ssh-command: "{terminal} -x "{ssh-client} {host}"";
 44+	run-command: "{cmd}";
 45+	run-shell-command: "{terminal} -c "{cmd}"";
 46+	matching: "fuzzy";
 47+}
 48+
 49+@import "gruvbox.rasi"
 50diff --git a/dot_config/rofi/gruvbox-common.inc.rasi b/dot_config/rofi/gruvbox-common.inc.rasi
 51new file mode 100644
 52index 0000000000000000000000000000000000000000..f7a168d9a2e1347446b009184eea7a55b9448f62
 53--- /dev/null
 54+++ b/dot_config/rofi/gruvbox-common.inc.rasi
 55@@ -0,0 +1,127 @@
 56+/* ==========================================================================
 57+   File: gruvbox-common.rasi
 58+   Desc: Shared rules between all gruvbox themes
 59+   Author: bardisty <b@bah.im>
 60+   Source: https://github.com/bardisty/gruvbox-rofi
 61+   Modified: Mon Feb 12 2018 06:06:47 PST -0800
 62+   ========================================================================== */
 63+
 64+window {
 65+    background-color: @background;
 66+    border:           2;
 67+    padding:          2;
 68+}
 69+
 70+mainbox {
 71+    border:  0;
 72+    padding: 0;
 73+}
 74+
 75+message {
 76+    border:       2px 0 0;
 77+    border-color: @separatorcolor;
 78+    padding:      1px;
 79+}
 80+
 81+textbox {
 82+    highlight:  @highlight;
 83+    text-color: @foreground;
 84+}
 85+
 86+listview {
 87+    border:       2px solid 0 0;
 88+    padding:      2px 0 0;
 89+    border-color: @separatorcolor;
 90+    spacing:      2px;
 91+    scrollbar:    @scrollbar;
 92+}
 93+
 94+element {
 95+    border:  0;
 96+    padding: 2px;
 97+}
 98+
 99+element.normal.normal {
100+    background-color: @normal-background;
101+    text-color:       @normal-foreground;
102+}
103+
104+element.normal.urgent {
105+    background-color: @urgent-background;
106+    text-color:       @urgent-foreground;
107+}
108+
109+element.normal.active {
110+    background-color: @active-background;
111+    text-color:       @active-foreground;
112+}
113+
114+element.selected.normal {
115+    background-color: @selected-normal-background;
116+    text-color:       @selected-normal-foreground;
117+}
118+
119+element.selected.urgent {
120+    background-color: @selected-urgent-background;
121+    text-color:       @selected-urgent-foreground;
122+}
123+
124+element.selected.active {
125+    background-color: @selected-active-background;
126+    text-color:       @selected-active-foreground;
127+}
128+
129+element.alternate.normal {
130+    background-color: @alternate-normal-background;
131+    text-color:       @alternate-normal-foreground;
132+}
133+
134+element.alternate.urgent {
135+    background-color: @alternate-urgent-background;
136+    text-color:       @alternate-urgent-foreground;
137+}
138+
139+element.alternate.active {
140+    background-color: @alternate-active-background;
141+    text-color:       @alternate-active-foreground;
142+}
143+
144+scrollbar {
145+    width:        4px;
146+    border:       0;
147+    handle-color: @scrollbar-handle;
148+    handle-width: 8px;
149+    padding:      0;
150+}
151+
152+sidebar {
153+    border:       2px 0 0;
154+    border-color: @separatorcolor;
155diff --git a/dot_config/rofi/gruvbox.rasi b/dot_config/rofi/gruvbox.rasi
156new file mode 100644
157index 0000000000000000000000000000000000000000..8fdf734631d355c15ae52c9d5023522b96ce4ecd
158--- /dev/null
159+++ b/dot_config/rofi/gruvbox.rasi
160@@ -0,0 +1,47 @@
161+* {
162+    /* Theme settings */
163+    highlight: bold italic;
164+    scrollbar: false;
165+
166+    /* Gruvbox dark colors */
167+    gruvbox-dark-bg0-soft:     #1d2021;
168+    gruvbox-dark-bg1:          #3c3836;
169+    gruvbox-dark-fg0:          #1d2021;
170+    gruvbox-dark-fg1:          #665c54;
171+    gruvbox-dark-red-dark:     #cc241d;
172+    gruvbox-dark-red-light:    #fb4934;
173+    gruvbox-dark-yellow-dark:  #d79921;
174+    gruvbox-dark-yellow-light: #fabd2f;
175+    gruvbox-dark-gray:         #a89984;
176+
177+    /* Theme colors */
178+    background:                  @gruvbox-dark-bg0-soft;
179+    background-color:            @background;
180+    foreground:                  @gruvbox-dark-fg1;
181+    border-color:                @background;
182+    separatorcolor:              @border-color;
183+    scrollbar-handle:            @border-color;
184+
185+    normal-background:           @background;
186+    normal-foreground:           @foreground;
187+    alternate-normal-background: @background;
188+    alternate-normal-foreground: @foreground;
189+    selected-normal-background:  @gruvbox-dark-fg1;
190+    selected-normal-foreground:  @gruvbox-dark-fg0;
191+
192+    active-background:           @gruvbox-dark-yellow-dark;
193+    active-foreground:           @background;
194+    alternate-active-background: @active-background;
195+    alternate-active-foreground: @active-foreground;
196+    selected-active-background:  @gruvbox-dark-yellow-light;
197+    selected-active-foreground:  @active-foreground;
198+
199+    urgent-background:           @gruvbox-dark-red-dark;
200+    urgent-foreground:           @background;
201+    alternate-urgent-background: @urgent-background;
202+    alternate-urgent-foreground: @urgent-foreground;
203+    selected-urgent-background:  @gruvbox-dark-red-light;
204+    selected-urgent-foreground:  @urgent-foreground;
205+}
206+
207+@import "gruvbox-common.inc"
208diff --git a/dot_spacevim b/dot_spacevim
209index b3a3deaa30ccfbdbc4b0e63e182ef03f82b7bb65..3680b98f6be8d48a0199f587716b895298670ba8 100644
210--- a/dot_spacevim
211+++ b/dot_spacevim
212@@ -212,6 +212,7 @@ function! UserConfig()
213 
214 	augroup filetypedetect
215 		autocmd BufNew,BufNewFile,BufRead *.network,*.netdev :setfiletype systemd
216+		autocmd BufNew,BufNewFile,BufRead *.rasi setf css
217 	augroup END
218 
219 	" Don't insert title into new files