From 8b7de007e94a8b0d75ebf1e208c14f5e07621ce1 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 5 Sep 2019 21:15:50 +0200 Subject: [PATCH] Add dmenu-like application selector --- .config/rofi/themes/{layouts => }/dmenu.rasi | 12 +----------- .config/rofi/themes/layouts/list-horizontal.rasi | 7 ++++--- .config/sxhkd/sxhkdrc | 2 +- 3 files changed, 6 insertions(+), 15 deletions(-) rename .config/rofi/themes/{layouts => }/dmenu.rasi (65%) diff --git a/.config/rofi/themes/layouts/dmenu.rasi b/.config/rofi/themes/dmenu.rasi similarity index 65% rename from .config/rofi/themes/layouts/dmenu.rasi rename to .config/rofi/themes/dmenu.rasi index 1d3ea15..c062465 100644 --- a/.config/rofi/themes/layouts/dmenu.rasi +++ b/.config/rofi/themes/dmenu.rasi @@ -4,7 +4,7 @@ * */ -@import "../settings.rasi" +@import "layouts/list-horizontal.rasi" * { background-color: @background; border-color: @accent; @@ -17,16 +17,9 @@ location: north; width: 100%; padding: 4px; - children: [ horizbox ]; -} - -#horizbox { - orientation: horizontal; - children: [ prompt, entry, listview ]; } #listview { - layout: horizontal; spacing: 5px; lines: 100; } @@ -39,6 +32,3 @@ #element { padding: 0px 2px; } -#element selected { - background-color: @background-focus; -} diff --git a/.config/rofi/themes/layouts/list-horizontal.rasi b/.config/rofi/themes/layouts/list-horizontal.rasi index 2548bbe..151e67b 100644 --- a/.config/rofi/themes/layouts/list-horizontal.rasi +++ b/.config/rofi/themes/layouts/list-horizontal.rasi @@ -9,10 +9,11 @@ font: @text-font; } #window { -children: [ horibox ]; +children: [ horizbox ]; } -#horibox { -children: [ listview ]; +#horizbox { +orientation: horizontal; +children: [ prompt, entry, listview ]; } #listview { layout: horizontal; diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index c8059c6..7dfd384 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -6,7 +6,7 @@ super + Return # open quick start menu super + space - exec i3-dmenu-desktop + exec rofi -show drun -theme /themes/dmenu # System functionality