Added and configured rofi

This commit is contained in:
afonsofrancof 2022-10-16 20:22:49 +01:00
parent 79faa047ce
commit 61b48152eb
4 changed files with 139 additions and 3 deletions

View file

@ -15,9 +15,10 @@ size-transition = true
# Corners # # Corners #
################################# #################################
# requires: https://github.com/sdhand/compton or https://github.com/jonaburg/picom # requires: https://github.com/sdhand/compton or https://github.com/jonaburg/picom
corner-radius = 10.0; corner-radius = 4.0;
rounded-corners-exclude = [ rounded-corners-exclude = [
#"window_type = 'normal'", #"window_type = 'normal'",
"class_g = 'Rofi'",
"class_g = 'awesome'", "class_g = 'awesome'",
"class_g = 'URxvt'", "class_g = 'URxvt'",
"class_g = 'XTerm'", "class_g = 'XTerm'",

8
.config/rofi/config.rasi Normal file
View file

@ -0,0 +1,8 @@
configuration {
modi: "window,drun,ssh,combi";
font: "FiraCode Nerd Font Mono 10";
combi-modi: "window,drun,ssh";
}
@theme "~/.config/rofi/themes/teal.rasi"

View file

@ -0,0 +1,127 @@
/*Dracula theme based on the Purple official rofi theme*/
* {
font: "Jetbrains Mono 12";
foreground: #f8f8f2;
background-color: #282a36;
active-background: #006666;
urgent-background: #ff5555;
urgent-foreground: #282a36;
selected-background: @active-background;
selected-urgent-background: @urgent-background;
selected-active-background: @active-background;
separatorcolor: @active-background;
bordercolor: @active-background;
}
#window {
background-color: @background-color;
border: 1;
border-radius: 6;
border-color: @bordercolor;
padding: 5;
}
#mainbox {
border: 0;
padding: 0;
}
#message {
border: 1px dash 0px 0px ;
border-color: @separatorcolor;
padding: 1px ;
}
#textbox {
text-color: @foreground;
}
#listview {
fixed-height: 0;
border: 2px dash 0px 0px ;
border-color: @bordercolor;
spacing: 2px ;
scrollbar: false;
padding: 2px 0px 0px ;
}
#element {
border: 0;
padding: 1px ;
}
#element.normal.normal {
background-color: @background-color;
text-color: @foreground;
}
#element.normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
#element.normal.active {
background-color: @active-background;
text-color: @foreground;
}
#element.selected.normal {
background-color: @selected-background;
text-color: @foreground;
}
#element.selected.urgent {
background-color: @selected-urgent-background;
text-color: @foreground;
}
#element.selected.active {
background-color: @selected-active-background;
text-color: @foreground;
}
#element.alternate.normal {
background-color: @background-color;
text-color: @foreground;
}
#element.alternate.urgent {
background-color: @urgent-background;
text-color: @foreground;
}
#element.alternate.active {
background-color: @active-background;
text-color: @foreground;
}
#scrollbar {
width: 2px ;
border: 0;
handle-width: 8px ;
padding: 0;
}
#sidebar {
border: 2px dash 0px 0px ;
border-color: @separatorcolor;
}
#button.selected {
background-color: @selected-background;
text-color: @foreground;
}
#inputbar {
spacing: 0;
text-color: @foreground;
padding: 1px ;
}
#case-indicator {
spacing: 0;
text-color: @foreground;
}
#entry {
spacing: 0;
text-color: @foreground;
}
#prompt {
spacing: 0;
text-color: @foreground;
}
#inputbar {
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
}
#textbox-prompt-colon {
expand: false;
str: ":";
margin: 0px 0.3em 0em 0em ;
text-color: @foreground;
}
element-text, element-icon {
background-color: inherit;
text-color: inherit;
}

View file

@ -78,8 +78,8 @@ myKeys =
-- launch a terminal -- launch a terminal
[ ("M-x" ,spawn myTerminal ) [ ("M-x" ,spawn myTerminal )
-- launch dmenu -- launch rofi
, ("M-p", spawn "dmenu_run") , ("M-p", spawn "rofi -show run")
-- launch web browser -- launch web browser
, ("M-b", spawn myWebBrowser) , ("M-b", spawn myWebBrowser)