From e0adc4a334bd427a7c2c46937321ee79fc80271c Mon Sep 17 00:00:00 2001 From: EinEtwas Date: Fri, 1 Nov 2024 11:47:08 +0100 Subject: [PATCH] feat(wm): switch from wofi to rofi --- home/wm/default.nix | 2 +- home/wm/rofi/catppuccin-mocha.rasi | 117 +++++++++++++++++++++++++++++ home/wm/rofi/default.nix | 10 +++ home/wm/wofi.nix | 47 ------------ 4 files changed, 128 insertions(+), 48 deletions(-) create mode 100644 home/wm/rofi/catppuccin-mocha.rasi create mode 100644 home/wm/rofi/default.nix delete mode 100644 home/wm/wofi.nix diff --git a/home/wm/default.nix b/home/wm/default.nix index 9dfd067..579434b 100644 --- a/home/wm/default.nix +++ b/home/wm/default.nix @@ -4,8 +4,8 @@ ./dunst.nix ./gtk.nix ./hyprland.nix + ./rofi ./swaylock.nix ./waybar - ./wofi.nix ]; } diff --git a/home/wm/rofi/catppuccin-mocha.rasi b/home/wm/rofi/catppuccin-mocha.rasi new file mode 100644 index 0000000..4be2a08 --- /dev/null +++ b/home/wm/rofi/catppuccin-mocha.rasi @@ -0,0 +1,117 @@ +// adapted from: https://github.com/catppuccin/rofi/blob/main/basic/.local/share/rofi/themes/catppuccin-mocha.rasi +* { + bg-col: #1e1e2e; + bg-col-light: #1e1e2e; + border-col: #cba6f7; + selected-col: #1e1e2e; + blue: #89b4fa; + fg-col: #cdd6f4; + fg-col2: #f38ba8; + grey: #6c7086; + + width: 600; +} + +element-text, element-icon , mode-switcher { + background-color: inherit; + text-color: inherit; +} + +window { + height: 360px; + border: 2px; + border-radius: 10px; + transparency: "real"; + 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; +} + +error-message { + background-color: @bg-col-light; +} \ No newline at end of file diff --git a/home/wm/rofi/default.nix b/home/wm/rofi/default.nix new file mode 100644 index 0000000..d384a9f --- /dev/null +++ b/home/wm/rofi/default.nix @@ -0,0 +1,10 @@ +{ pkgs, ... }: +{ + programs.rofi = { + enable = true; + + plugins = [ pkgs.rofi-emoji ]; + + theme = ./catppuccin-mocha.rasi; + }; +} diff --git a/home/wm/wofi.nix b/home/wm/wofi.nix deleted file mode 100644 index 5e4181e..0000000 --- a/home/wm/wofi.nix +++ /dev/null @@ -1,47 +0,0 @@ -{ - programs.wofi = { - enable = true; - - style = '' - window { - margin: 0px; - border: 1px solid #88c0d0; - background-color: #2e3440; - } - - #input { - margin: 5px; - border: none; - color: #d8dee9; - background-color: #3b4252; - } - - #inner-box { - margin: 5px; - border: none; - background-color: #2e3440; - } - - #outer-box { - margin: 5px; - border: none; - background-color: #2e3440; - } - - #scroll { - margin: 0px; - border: none; - } - - #text { - margin: 5px; - border: none; - color: #d8dee9; - } - - #entry:selected { - background-color: #3b4252; - } - ''; - }; -}