Rofi Config Update

- Updated rofi config to work with version 1.7 changes
- Change emacs mode to css for rasi source code blocks
- Remove rofi theme selection section, replace with "theme" setting
  in main configuration block
- Add element-text background & text color as inherit
- Add element-icon background color as inherit
This commit is contained in:
Sravan Balaji
2021-08-30 15:37:26 -04:00
parent e7bea847f4
commit 4fe5777004
8 changed files with 273 additions and 193 deletions

View File

@@ -53,7 +53,7 @@ configuration {
/* window-format: "{w} {c} {t}";*/
/* click-to-exit: true;*/
/* show-match: true;*/
/* theme: ;*/
theme: "centertab-dracula";
/* color-normal: ;*/
/* color-urgent: ;*/
/* color-active: ;*/
@@ -89,8 +89,8 @@ configuration {
/* kb-accept-custom: "Control+Return";*/
/* kb-accept-alt: "Shift+Return";*/
/* kb-delete-entry: "Shift+Delete";*/
kb-mode-next: "Shift+Right,Control+Tab,Control+l";
kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab,Control+h";
kb-mode-next: "Shift+Right,Control+Tab";
kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab";
/* kb-row-left: "Control+Page_Up";*/
/* kb-row-right: "Control+Page_Down";*/
kb-row-up: "Up,Control+k,Control+p,ISO_Left_Tab";
@@ -143,10 +143,3 @@ configuration {
/* me-accept-entry: "MouseDPrimary";*/
/* me-accept-custom: "Control+MouseDPrimary";*/
}
@import "./themes/centertab-dracula.rasi"
/* @import "./themes/dmenu-dracula.rasi" */
/* @import "./themes/dracula-blurry-full.rasi" */
/* @import "./themes/dracula.rasi" */
/* @import "./themes/sidetab-dracula.rasi" */
/* @import "./themes/slate-dracula.rasi" */

View File

@@ -15,28 +15,31 @@ configuration {
}
* {
background-color: #282a36;
text-color: #f8f8f2;
selbg: #8be9fd;
actbg: #44475a;
urgbg: #ff5555;
winbg: #8be9fd;
background-color: #282a36ff;
text-color: #f8f8f2ff;
selbg: #8be9fdff;
actbg: #44475aff;
urgbg: #ff5555ff;
winbg: #8be9fdff;
selected-normal-foreground: @winbg;
normal-foreground: @text-color;
selected-normal-background: @actbg;
normal-background: @background-color;
selected-urgent-foreground: @background-color;
selected-normal-foreground: @winbg;
selected-normal-background: @actbg;
urgent-foreground: @text-color;
selected-urgent-background: @urgbg;
urgent-background: @background-color;
selected-active-foreground: @winbg;
selected-urgent-foreground: @background-color;
selected-urgent-background: @urgbg;
active-foreground: @background-color;
selected-active-background: @actbg;
active-background: @selbg;
selected-active-foreground: @winbg;
selected-active-background: @actbg;
line-margin: 2;
line-padding: 2;
separator-style: "none";
@@ -142,3 +145,12 @@ element alternate.active {
background-color: @active-background;
text-color: @active-foreground;
}
element-text {
background-color: inherit;
text-color: inherit;
}
element-icon {
background-color: inherit;
}

View File

@@ -41,3 +41,12 @@
background-color: #bd93f9;
text-color: #282a36;
}
#element-text {
background-color: inherit;
text-color: inherit;
}
#element-icon {
background-color: inherit;
}

View File

@@ -98,11 +98,14 @@ element {
}
element-icon {
background-color: inherit;
size: 65px;
border: 0px;
}
element-text {
background-color: inherit;
text-color: inherit;
expand: true;
horizontal-align: 0.5;
vertical-align: 0.5;

View File

@@ -80,6 +80,13 @@
background-color: @active-background;
text-color: @foreground;
}
#element-text {
background-color: inherit;
text-color: inherit;
}
#element-icon {
background-color: inherit;
}
#scrollbar {
width: 2px ;
border: 0;

View File

@@ -135,3 +135,12 @@ element alternate.active {
background-color: @active-background;
text-color: @active-foreground;
}
element-text {
background-color: inherit;
text-color: inherit;
}
element-icon {
background-color: inherit;
}

View File

@@ -49,3 +49,12 @@ element {
element selected {
background-color: #44475a;
}
element-text {
background-color: inherit;
text-color: inherit;
}
element-icon {
background-color: inherit;
}

View File

@@ -1240,7 +1240,7 @@ Each label is represented as a clickable button in the notification center. The
*** Configuration
#+begin_src conf :tangle .config/rofi/config.rasi
#+begin_src css :tangle .config/rofi/config.rasi
configuration {
modi: "window,drun,combi,run,clipboard:greenclip print,ssh";
/* width: 50;*/
@@ -1296,7 +1296,7 @@ Each label is represented as a clickable button in the notification center. The
/* window-format: "{w} {c} {t}";*/
/* click-to-exit: true;*/
/* show-match: true;*/
/* theme: ;*/
theme: "centertab-dracula";
/* color-normal: ;*/
/* color-urgent: ;*/
/* color-active: ;*/
@@ -1332,8 +1332,8 @@ Each label is represented as a clickable button in the notification center. The
/* kb-accept-custom: "Control+Return";*/
/* kb-accept-alt: "Shift+Return";*/
/* kb-delete-entry: "Shift+Delete";*/
kb-mode-next: "Shift+Right,Control+Tab,Control+l";
kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab,Control+h";
kb-mode-next: "Shift+Right,Control+Tab";
kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab";
/* kb-row-left: "Control+Page_Up";*/
/* kb-row-right: "Control+Page_Down";*/
kb-row-up: "Up,Control+k,Control+p,ISO_Left_Tab";
@@ -1390,20 +1390,9 @@ Each label is represented as a clickable button in the notification center. The
*** Themes
**** Theme Selection
#+begin_src conf :tangle .config/rofi/config.rasi
@import "./themes/centertab-dracula.rasi"
/* @import "./themes/dmenu-dracula.rasi" */
/* @import "./themes/dracula-blurry-full.rasi" */
/* @import "./themes/dracula.rasi" */
/* @import "./themes/sidetab-dracula.rasi" */
/* @import "./themes/slate-dracula.rasi" */
#+end_src
**** Centertab Dracula
#+begin_src conf :tangle .config/rofi/themes/centertab-dracula.rasi
#+begin_src css :tangle .config/rofi/themes/centertab-dracula.rasi
/**
,* ROFI Color theme: centertab-dracula
,* User: balajsra
@@ -1421,28 +1410,31 @@ Each label is represented as a clickable button in the notification center. The
}
,* {
background-color: #282a36;
text-color: #f8f8f2;
selbg: #8be9fd;
actbg: #44475a;
urgbg: #ff5555;
winbg: #8be9fd;
background-color: #282a36ff;
text-color: #f8f8f2ff;
selbg: #8be9fdff;
actbg: #44475aff;
urgbg: #ff5555ff;
winbg: #8be9fdff;
selected-normal-foreground: @winbg;
normal-foreground: @text-color;
selected-normal-background: @actbg;
normal-background: @background-color;
selected-urgent-foreground: @background-color;
selected-normal-foreground: @winbg;
selected-normal-background: @actbg;
urgent-foreground: @text-color;
selected-urgent-background: @urgbg;
urgent-background: @background-color;
selected-active-foreground: @winbg;
selected-urgent-foreground: @background-color;
selected-urgent-background: @urgbg;
active-foreground: @background-color;
selected-active-background: @actbg;
active-background: @selbg;
selected-active-foreground: @winbg;
selected-active-background: @actbg;
line-margin: 2;
line-padding: 2;
separator-style: "none";
@@ -1548,11 +1540,20 @@ Each label is represented as a clickable button in the notification center. The
background-color: @active-background;
text-color: @active-foreground;
}
element-text {
background-color: inherit;
text-color: inherit;
}
element-icon {
background-color: inherit;
}
#+end_src
**** Dmenu Dracula
#+begin_src conf :tangle .config/rofi/themes/dmenu-dracula.rasi
#+begin_src css :tangle .config/rofi/themes/dmenu-dracula.rasi
/**
,* ROFI Color theme: dmenu-dracula
,* User: balajsra
@@ -1596,11 +1597,20 @@ Each label is represented as a clickable button in the notification center. The
background-color: #bd93f9;
text-color: #282a36;
}
#element-text {
background-color: inherit;
text-color: inherit;
}
#element-icon {
background-color: inherit;
}
#+end_src
**** Blurry Full Dracula
#+begin_src conf :tangle .config/rofi/themes/dracula-blurry-full.rasi
#+begin_src css :tangle .config/rofi/themes/dracula-blurry-full.rasi
/*
,*
,* Author : Aditya Shakya (adi1090x)
@@ -1701,11 +1711,14 @@ Each label is represented as a clickable button in the notification center. The
}
element-icon {
background-color: inherit;
size: 65px;
border: 0px;
}
element-text {
background-color: inherit;
text-color: inherit;
expand: true;
horizontal-align: 0.5;
vertical-align: 0.5;
@@ -1743,7 +1756,7 @@ Each label is represented as a clickable button in the notification center. The
**** Official Dracula Theme
#+begin_src conf :tangle .config/rofi/themes/dracula.rasi
#+begin_src css :tangle .config/rofi/themes/dracula.rasi
/*Dracula theme based on the Purple official rofi theme*/
,* {
@@ -1826,6 +1839,13 @@ Each label is represented as a clickable button in the notification center. The
background-color: @active-background;
text-color: @foreground;
}
#element-text {
background-color: inherit;
text-color: inherit;
}
#element-icon {
background-color: inherit;
}
#scrollbar {
width: 2px ;
border: 0;
@@ -1870,7 +1890,7 @@ Each label is represented as a clickable button in the notification center. The
**** Sidetab Dracula
#+begin_src conf :tangle .config/rofi/themes/sidetab-dracula.rasi
#+begin_src css :tangle .config/rofi/themes/sidetab-dracula.rasi
/**
,* ROFI Color theme: sidetab-dracula
,* User: balajsra
@@ -2008,11 +2028,20 @@ Each label is represented as a clickable button in the notification center. The
background-color: @active-background;
text-color: @active-foreground;
}
element-text {
background-color: inherit;
text-color: inherit;
}
element-icon {
background-color: inherit;
}
#+end_src
**** Slate Dracula
#+begin_src conf :tangle .config/rofi/themes/slate-dracula.rasi
#+begin_src css :tangle .config/rofi/themes/slate-dracula.rasi
/**
,* ROFI Color theme: slate-dracula
,* User: balajsra
@@ -2064,6 +2093,15 @@ Each label is represented as a clickable button in the notification center. The
element selected {
background-color: #44475a;
}
element-text {
background-color: inherit;
text-color: inherit;
}
element-icon {
background-color: inherit;
}
#+end_src
*** Greenclip Clipboard Manager