[UPDATE][I3] Make rofi use dmenu skin

I wanted the launcher to take the same size as my previous dmenu
launcher when invoked with `mod+d` or `mod+Shift+d` instead of my usual
rofi theme.

The default dmenu theme is too big so I adapted it for my needs.
This commit is contained in:
Bruno BELANYI 2019-10-07 17:49:18 +02:00
parent 4563bd4038
commit 113928f08e
2 changed files with 45 additions and 2 deletions

View File

@ -34,11 +34,11 @@ bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Shift+q kill
# start rofi (a program launcher)
bindsym $mod+Shift+d exec rofi -show run
bindsym $mod+Shift+d exec --no-startup-id rofi -show run -width 100 -disable-history -theme my_dmenu
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
bindsym $mod+d exec --no-startup-id rofi -show drun -width 100 -disable-history -theme my_dmenu
# change focus
bindsym $mod+h focus left

View File

@ -0,0 +1,43 @@
/**
* ROFI Color theme
* Derived from the official dmenu theme
* Original Copyright to Dave Davenport
*/
* {
background-color: Black;
border-color: White;
text-color: White;
font: "Mono Sans 9";
}
#window {
anchor: north;
location: north;
width: 100%;
padding: 4px;
children: [ horibox ];
}
#horibox {
orientation: horizontal;
children: [ prompt, entry, listview ];
}
#listview {
layout: horizontal;
spacing: 5px;
lines: 100;
}
#entry {
expand: false;
width: 10em;
}
#element {
padding: 0px 2px;
}
#element selected {
background-color: SteelBlue;
}