From 670d4c73cad491159e69f7f934e9147941973a24 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 2 Apr 2022 01:34:55 -0700 Subject: [PATCH] Update Rofi configuration Make it prettier --- oni/home/data/config.scm | 91 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 82 insertions(+), 9 deletions(-) diff --git a/oni/home/data/config.scm b/oni/home/data/config.scm index bb43d7b..daa37f2 100644 --- a/oni/home/data/config.scm +++ b/oni/home/data/config.scm @@ -35,17 +35,90 @@ (service home-rofi-service-type (home-rofi-configuration (config - '((kb-cancel . "Escape,Control+bracketleft,Control+g"))) + '((kb-cancel . "Escape,Control+g") + (window-format . "{c} {t}"))) (theme - '((window - ((background-color . "#222424"))) - (entry - ((text-color . "#bfbfbf"))) - (prompt - ((text-color . "#bfbfbf"))) + '((* ((text-color . "#bfbfbf") + (background-color . "#3f4242") + (lightbg . "#5b6161") + (red . "#a85454") + (orange . "#faa41a") + (blue . "#1f2c3f") + + (selected-normal-foreground . "@foreground") + (normal-foreground . "@foreground") + (alternate-normal-background . "@background") + (selected-urgent-foreground . "@foreground") + (urgent-foreground . "@foreground") + (alternate-urgent-background . "@background") + (active-foreground . "@text-color") + (selected-active-foreground . "@foreground") + (alternate-normal-foreground . "@foreground") + (alternate-active-background . "@blue") + (bordercolor . "@foreground") + (normal-background . "@background") + (selected-normal-background . "@blue") + (separatorcolor . "@orange") + (spacing . 2) + (urgent-background . "@red") + (alternate-urgent-foreground . "@foreground") + (selected-urgent-background . "@red") + (alternate-active-foreground . "@foreground") + (selected-active-background . "@blue") + (active-background . "@red") + + (font . "Fantasque Sans Mono 14"))) + (window ((border . 0) + (text-color . "@foreground") + (background-color . "rgba(0, 0, 0, 0%)") + (padding . 5) + (text-color . "@bordercolor") + (background-color . "@background"))) + (mainbox ((border . 0) + (padding . 0))) + (message ((border . "1px dash 0px 0px") + (text-color . "@separatorcolor") + (padding . "2px 0px 0px"))) + (textbox ((text-color . "@foreground"))) + (listview ((fixed-height . 0) + (border . "2px 0px 0px") + (padding . "2px 0px 0px") + (text-color . "@separatorcolor"))) + (element ((border . 0) + (children "element-icon" "element-text") + (spacing . "5px"))) (element-text - ((background-color . "#222424") - (text-color . "#bfbfbf"))))))) + element-icon ((background-color . "inherit") + (text-color . "inherit"))) + (element.normal.normal ((text-color . "@normal-foreground") + (background-color . "@normal-background"))) + (element.normal.urgent ((text-color . "@urgent-foreground") + (background-color . "@urgent-background"))) + (element.normal.active ((text-color . "@active-foreground") + (background-color . "@active-background"))) + (element.selected.normal ((text-color . "@selected-normal-foreground") + (background-color . "@selected-normal-background"))) + (element.selected.urgent ((text-color . "@selected-urgent-foreground") + (background-color . "@selected-urgent-background"))) + (element.selected.active ((text-color . "@selected-active-foreground") + (background-color . "@selected-active-foreground"))) + (element.alternate.normal ((text-color . "@alternate-normal-foreground") + (background-color . "@alternate-normal-background"))) + (element.alternate.urgent ((text-color . "@alternate-urgent-foreground") + (background-color . "@alternate-urgent-background"))) + (element.alternate.active ((text-color . "@alternate-active-foreground") + (background-color . "@alternate-active-background"))) + (mode-switcher ((border . "1px dash 0px 0px"))) + (#{button selected}# ((text-color . "@selected-normal-foreground") + (background-color . "@selected-normal-background"))) + (inputbar ((spacing . 0) + (border . "0px") + (children "prompt" "textbox-prompt-colon" "entry" "case-indicator"))) + (#{button normal}# ((text-color . "@foreground"))) + (text-prompt-color ((expand . #f) + (str . ":") + (margin . "0px 0.3em 0em 0em") + (text-color . "@normal-foreground"))))))) (service home-xmodmap-service-type (home-xmodmap-configuration