[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:
parent
4563bd4038
commit
113928f08e
|
@ -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
|
||||
|
|
43
rofi/.config/rofi/my_dmenu.rasi
Normal file
43
rofi/.config/rofi/my_dmenu.rasi
Normal 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;
|
||||
}
|
||||
|
Loading…
Reference in a new issue