Use new rofi config format
Required changing theme, too.
This commit is contained in:
parent
4461ff674d
commit
cb96e16cc8
3 changed files with 161 additions and 23 deletions
|
@ -1,21 +0,0 @@
|
|||
! ------------------------------------------------------------------------------
|
||||
! ROFI Color theme
|
||||
! ------------------------------------------------------------------------------
|
||||
rofi.color-enabled: true
|
||||
rofi.color-window: #393939, #393939, #268bd2
|
||||
rofi.color-normal: #393939, #ffffff, #393939, #268bd2, #ffffff
|
||||
rofi.color-active: #393939, #268bd2, #393939, #268bd2, #205171
|
||||
rofi.color-urgent: #393939, #f3843d, #393939, #268bd2, #ffc39c
|
||||
|
||||
rofi.show-icons: true
|
||||
rofi.modi: window,ssh,drun
|
||||
rofi.no-show-match: true
|
||||
rofi.lines: 10
|
||||
rofi.width: 40
|
||||
rofi.sort: true
|
||||
rofi.matching: glob
|
||||
|
||||
rofi.kb-mode-next: Alt+Right
|
||||
rofi.kb-mode-previous: Alt+Left
|
||||
|
||||
rofi.ssh-command: alacritty -e {ssh-client} {host}
|
159
files/rofi.rasi
Normal file
159
files/rofi.rasi
Normal file
|
@ -0,0 +1,159 @@
|
|||
configuration {
|
||||
modi: "window,ssh,drun";
|
||||
width: 40;
|
||||
lines: 10;
|
||||
show-icons: true;
|
||||
ssh-command: "alacritty -e {ssh-client} {host}";
|
||||
sort: true;
|
||||
matching: "glob";
|
||||
kb-mode-next: "Alt+Right";
|
||||
kb-mode-previous: "Alt+Left";
|
||||
}
|
||||
|
||||
/**
|
||||
* ROFI Color theme
|
||||
* User: mbfraga
|
||||
* Copyright: Martin B. Fraga
|
||||
* Copied from https://github.com/davatorium/rofi-themes/blob/master/User%20Themes/flat-orange.rasi, with modifications
|
||||
*/
|
||||
|
||||
/* global settings and color variables */
|
||||
* {
|
||||
maincolor: #ed8712;
|
||||
highlight: bold #ed8712;
|
||||
urgentcolor: #e53714;
|
||||
|
||||
fgwhite: #cfcfcf;
|
||||
blackdarkest: #1d1d1d;
|
||||
blackwidget: #262626;
|
||||
blackentry: #292929;
|
||||
blackselect: #303030;
|
||||
darkgray: #848484;
|
||||
scrollbarcolor: #505050;
|
||||
font: "DejaVu Sans Mono Regular 12";
|
||||
background-color: @blackdarkest;
|
||||
}
|
||||
|
||||
window {
|
||||
background-color: @blackdarkest;
|
||||
anchor: center;
|
||||
location: center;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
background-color: @blackdarkest;
|
||||
spacing:0px;
|
||||
children: [inputbar, message, mode-switcher, listview];
|
||||
}
|
||||
|
||||
message {
|
||||
padding: 6px 10px;
|
||||
background-color:@blackwidget;
|
||||
}
|
||||
|
||||
textbox {
|
||||
text-color:@darkgray;
|
||||
background-color:@blackwidget;
|
||||
}
|
||||
|
||||
listview {
|
||||
fixed-height: false;
|
||||
dynamic: true;
|
||||
scrollbar: true;
|
||||
spacing: 0px;
|
||||
padding: 1px 0px 0px 0px;
|
||||
margin: 0px 0px 1px 0px;
|
||||
background: @blackdarkest;
|
||||
}
|
||||
|
||||
element {
|
||||
padding: 2px 15px;
|
||||
}
|
||||
|
||||
element normal.normal {
|
||||
padding: 0px 15px;
|
||||
background-color: @blackentry;
|
||||
text-color: @fgwhite;
|
||||
}
|
||||
|
||||
element normal.urgent {
|
||||
background-color: @blackentry;
|
||||
text-color: @urgentcolor;
|
||||
}
|
||||
|
||||
element normal.active {
|
||||
background-color: @blackentry;
|
||||
text-color: @maincolor;
|
||||
}
|
||||
|
||||
element selected.normal {
|
||||
background-color: @blackselect;
|
||||
text-color: @fgwhite;
|
||||
}
|
||||
|
||||
element selected.urgent {
|
||||
background-color: @urgentcolor;
|
||||
text-color: @blackdarkest;
|
||||
}
|
||||
|
||||
element selected.active {
|
||||
background-color: @maincolor;
|
||||
text-color: @blackdarkest;
|
||||
}
|
||||
|
||||
element alternate.normal {
|
||||
background-color: @blackentry;
|
||||
text-color: @fgwhite;
|
||||
}
|
||||
|
||||
element alternate.urgent {
|
||||
background-color: @blackentry;
|
||||
text-color: @urgentcolor;
|
||||
}
|
||||
|
||||
element alternate.active {
|
||||
background-color: @blackentry;
|
||||
text-color: @maincolor;
|
||||
}
|
||||
|
||||
scrollbar {
|
||||
background-color: @blackwidget;
|
||||
handle-color: @darkgray;
|
||||
handle-width: 15px;
|
||||
}
|
||||
|
||||
mode-switcher {
|
||||
background-color: @blackwidget;
|
||||
}
|
||||
|
||||
button {
|
||||
background-color: @blackwidget;
|
||||
text-color: @darkgray;
|
||||
}
|
||||
|
||||
button selected {
|
||||
text-color: @maincolor;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
background-color: @blackdarkest;
|
||||
spacing: 0px;
|
||||
}
|
||||
|
||||
prompt {
|
||||
padding:6px 9px;
|
||||
background-color: @maincolor;
|
||||
text-color:@blackwidget;
|
||||
}
|
||||
|
||||
entry {
|
||||
padding:6px 10px;
|
||||
background-color:@blackwidget;
|
||||
text-color:@fgwhite;
|
||||
}
|
||||
|
||||
case-indicator {
|
||||
padding:6px 10px;
|
||||
text-color:@maincolor;
|
||||
background-color:@blackwidget;
|
||||
}
|
|
@ -91,8 +91,8 @@
|
|||
|
||||
- name: Create rofi config
|
||||
copy:
|
||||
src: ./files/rofi.conf
|
||||
dest: "{{ home }}/.config/rofi/config"
|
||||
src: ./files/rofi.rasi
|
||||
dest: "{{ home }}/.config/rofi/config.rasi"
|
||||
mode: 0644
|
||||
owner: "{{ user }}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue