From 4b6b7f1acdaebf290136a533f9e6fa576cf504f4 Mon Sep 17 00:00:00 2001 From: Laurent Le Houerou Date: Wed, 22 May 2024 16:39:22 +0400 Subject: [PATCH] setup rofi instead of dmenu --- i3/.config/i3/config | 3 +- rofi/.config/rofi/config.rasi | 17 +++ .../share/rofi/themes/catppuccin-mocha.rasi | 112 ++++++++++++++++++ 3 files changed, 131 insertions(+), 1 deletion(-) create mode 100644 rofi/.config/rofi/config.rasi create mode 100644 rofi/.local/share/rofi/themes/catppuccin-mocha.rasi diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 6ee4b00..eed0ace 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -58,7 +58,8 @@ bindsym $mod+Return exec alacritty bindsym $mod+Shift+a kill # start dmenu (a program launcher) -bindsym $mod+d exec --no-startup-id dmenu_run +#bindsym $mod+d exec --no-startup-id dmenu_run +bindsym $mod+d exec rofi -show drun # A more modern dmenu replacement is rofi: # bindcode $mod+40 exec "rofi -modi drun,run -show drun" # There also is i3-dmenu-desktop which only displays applications shipping a diff --git a/rofi/.config/rofi/config.rasi b/rofi/.config/rofi/config.rasi new file mode 100644 index 0000000..4c839a4 --- /dev/null +++ b/rofi/.config/rofi/config.rasi @@ -0,0 +1,17 @@ +configuration{ + modi: "run,drun,window"; + icon-theme: "Oranchelo"; + show-icons: true; + terminal: "alacritty"; + drun-display-format: "{icon} {name}"; + location: 0; + disable-history: false; + hide-scrollbar: true; + display-drun: "  Apps "; + display-run: "  Run "; + display-window: " 﩯 Window"; + display-Network: " 󰤨 Network"; + sidebar-mode: true; +} + +@theme "catppuccin-mocha" diff --git a/rofi/.local/share/rofi/themes/catppuccin-mocha.rasi b/rofi/.local/share/rofi/themes/catppuccin-mocha.rasi new file mode 100644 index 0000000..7f1c2de --- /dev/null +++ b/rofi/.local/share/rofi/themes/catppuccin-mocha.rasi @@ -0,0 +1,112 @@ +* { + bg-col: #1e1e2e; + bg-col-light: #1e1e2e; + border-col: #96CDFBff; + selected-col: #1e1e2e; + blue: #89b4fa; + fg-col: #cdd6f4; + fg-col2: #f38ba8; + grey: #6c7086; + + width: 600; + font: "FiraCode Nerd Font Mono 12"; +} + +element-text, element-icon , mode-switcher { + background-color: inherit; + text-color: inherit; +} + +window { + height: 360px; + border: 3px; + border-color: @border-col; + background-color: @bg-col; +} + +mainbox { + background-color: @bg-col; +} + +inputbar { + children: [prompt,entry]; + background-color: @bg-col; + border-radius: 5px; + padding: 2px; +} + +prompt { + background-color: @blue; + padding: 6px; + text-color: @bg-col; + border-radius: 3px; + margin: 20px 0px 0px 20px; +} + +textbox-prompt-colon { + expand: false; + str: ":"; +} + +entry { + padding: 6px; + margin: 20px 0px 0px 10px; + text-color: @fg-col; + background-color: @bg-col; +} + +listview { + border: 0px 0px 0px; + padding: 6px 0px 0px; + margin: 10px 0px 0px 20px; + columns: 2; + lines: 5; + background-color: @bg-col; +} + +element { + padding: 5px; + background-color: @bg-col; + text-color: @fg-col ; +} + +element-icon { + size: 25px; +} + +element selected { + background-color: @selected-col ; + text-color: @fg-col2 ; +} + +mode-switcher { + spacing: 0; + } + +button { + padding: 10px; + background-color: @bg-col-light; + text-color: @grey; + vertical-align: 0.5; + horizontal-align: 0.5; +} + +button selected { + background-color: @bg-col; + text-color: @blue; +} + +message { + background-color: @bg-col-light; + margin: 2px; + padding: 2px; + border-radius: 5px; +} + +textbox { + padding: 6px; + margin: 20px 0px 0px 20px; + text-color: @blue; + background-color: @bg-col-light; +} +