rofi: Fix duplicate, whitespaces, bindings & more

Fix the duplicate config by replacing `config` with a symlink. `config`
only exists for the `conf` function in zsh.

Remove *.font since it is overriden by the Xresources setting.
TODO: Keep rofi form reading the Xresources file?

Remove *.lines setting, since it is overridden by window.height.
Convert spaces to tabs.
Add Vim like keybindings for navigation.
Set matching-type to fuzzy.
Remove unused commented lines.
This commit is contained in:
2020-11-12 23:43:23 +01:00
parent 0e5dd20db4
commit 97ab5d64a6
2 changed files with 83 additions and 174 deletions

View File

@@ -1,95 +0,0 @@
// vi: ft=css
configuration {
modi: "drun,run,window";
matching: "glob";
drun-match-fields: "all";
/*display-drun: "Apps";*/
/*display-window: "Window";*/
show-icons: true;
// continous scrolling
scroll-method: 1;
// Automatically select when only one item is left
auto-select: true;
}
* {
lines: 5;
columns: 1;
background-color: #00000090;
// background-color: #00000065;
border-color: #00000000;
text-color: #EFEFEF;
font: "Hack 20";
}
#window {
border: 0;
border-radius: 4px;
padding: 30;
width: 40%;
height: 60%;
}
#scrollbar {
handle-color: #00a0e6;
border-color: #00a0e6;
}
#mainbox {
background-color: #00000000;
children: [inputbar, listview];
spacing: 10px;
/*margin: 20%;*/
padding: 7px 0;
border: 1px;
border-color: @base0D;
}
#listview {
background-color: #00000000;
fixed-height: 0;
border: 0px;
spacing: 5px;
scrollbar: true;
padding: 10px 10px 0px;
}
#element {
background-color: #00000000;
border: 0;
border-radius: 15px;
padding: 3 0 3 4 ;
}
#element selected {
background-color: #00a0e6;
text-color: #EFEFEF;
}
#inputbar {
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
background-color: #00000000;
}
#case-indicator {
background-color: #00000000;
spacing: 0;
}
#entry {
background-color: #00000000;
spacing: 0;
}
#prompt {
background-color: #00000000;
spacing: 0;
}
#textbox-prompt-colon {
background-color: #00000000;
expand: false;
str: ":";
margin: 0px 0.3em 0em 0em ;
}

1
.config/rofi/config Symbolic link
View File

@@ -0,0 +1 @@
config.rasi