From 8391dd8471d6c501713a06f0390acb3f5e9082a2 Mon Sep 17 00:00:00 2001 From: timoxa0 Date: Wed, 1 Jan 2025 15:50:01 +0500 Subject: [PATCH] rofi: change theme --- dot-config/rofi/colors.rasi | 47 ----- dot-config/rofi/config.rasi | 197 ++---------------- dot-config/rofi/powermenu.rasi | 150 ------------- .../share/rofi/themes/catppuccin-frappe.rasi | 111 ++++++++++ .../share/rofi/themes/catppuccin-latte.rasi | 111 ++++++++++ .../rofi/themes/catppuccin-macchiato.rasi | 111 ++++++++++ .../share/rofi/themes/catppuccin-mocha.rasi | 112 ++++++++++ 7 files changed, 462 insertions(+), 377 deletions(-) delete mode 100644 dot-config/rofi/colors.rasi delete mode 100644 dot-config/rofi/powermenu.rasi create mode 100644 dot-local/share/rofi/themes/catppuccin-frappe.rasi create mode 100644 dot-local/share/rofi/themes/catppuccin-latte.rasi create mode 100644 dot-local/share/rofi/themes/catppuccin-macchiato.rasi create mode 100644 dot-local/share/rofi/themes/catppuccin-mocha.rasi diff --git a/dot-config/rofi/colors.rasi b/dot-config/rofi/colors.rasi deleted file mode 100644 index 11a86a4..0000000 --- a/dot-config/rofi/colors.rasi +++ /dev/null @@ -1,47 +0,0 @@ -* { - primary: #b4c5ff; - primary-fixed: #dbe1ff; - primary-fixed-dim: #b4c5ff; - on-primary: #1a2d60; - on-primary-fixed: #00174b; - on-primary-fixed-variant: #334478; - primary-container: #334478; - on-primary-container: #dbe1ff; - secondary: #c1c5dd; - secondary-fixed: #dde1f9; - secondary-fixed-dim: #c1c5dd; - on-secondary: #2b3042; - on-secondary-fixed: #161b2c; - on-secondary-fixed-variant: #414659; - secondary-container: #414659; - on-secondary-container: #dde1f9; - tertiary: #e2bbdb; - tertiary-fixed: #ffd6f8; - tertiary-fixed-dim: #e2bbdb; - on-tertiary: #422741; - on-tertiary-fixed: #2b122b; - on-tertiary-fixed-variant: #5a3d58; - tertiary-container: #5a3d58; - on-tertiary-container: #ffd6f8; - error: #ffb4ab; - on-error: #690005; - error-container: #93000a; - on-error-container: #ffdad6; - surface: #121318; - on-surface: #e3e2e9; - on-surface-variant: #c5c6d0; - outline: #8f909a; - outline-variant: #45464f; - shadow: #000000; - scrim: #000000; - inverse-surface: #e3e2e9; - inverse-on-surface: #2f3036; - inverse-primary: #4b5c92; - surface-dim: #121318; - surface-bright: #38393f; - surface-container-lowest: #0d0e13; - surface-container-low: #1a1b21; - surface-container: #1e1f25; - surface-container-high: #292a2f; - surface-container-highest: #34343a; -} diff --git a/dot-config/rofi/config.rasi b/dot-config/rofi/config.rasi index 58a5e0d..c6e80a8 100644 --- a/dot-config/rofi/config.rasi +++ b/dot-config/rofi/config.rasi @@ -1,181 +1,18 @@ -/** - * - * Author : Aditya Shakya (adi1090x) - * Github : @adi1090x - * - * Configuration For Rofi Version: 1.7.3 - **/ - -configuration { - /*---------- General setting ----------*/ - modi: "drun,run,filebrowser,window"; - case-sensitive: false; - cycle: true; - filter: ""; - scroll-method: 0; - normalize-match: true; - show-icons: true; - icon-theme: "Papirus"; -/* cache-dir: ;*/ - steal-focus: false; -/* dpi: -1;*/ - - /*---------- Matching setting ----------*/ - matching: "normal"; - tokenize: true; - - /*---------- SSH settings ----------*/ - ssh-client: "ssh"; - ssh-command: "{terminal} -e {ssh-client} {host} [-p {port}]"; - parse-hosts: true; - parse-known-hosts: true; - - /*---------- Drun settings ----------*/ - drun-categories: ""; - drun-match-fields: "name,generic,exec,categories,keywords"; - drun-display-format: "{name} [({generic})]"; - drun-show-actions: false; - drun-url-launcher: "xdg-open"; - drun-use-desktop-cache: false; - drun-reload-desktop-cache: false; - drun { - /** Parse user desktop files. */ - parse-user: true; - /** Parse system desktop files. */ - parse-system: true; - } - - /*---------- Run settings ----------*/ - run-command: "{cmd}"; - run-list-command: ""; - run-shell-command: "{terminal} -e {cmd}"; - - /*---------- Fallback Icon ----------*/ - run,drun { - fallback-icon: "application-x-addon"; - } - - /*---------- Window switcher settings ----------*/ - window-match-fields: "title,class,role,name,desktop"; - window-command: "wmctrl -i -R {window}"; - window-format: "{w} - {c} - {t:0}"; - window-thumbnail: false; - - /*---------- Combi settings ----------*/ -/* combi-modi: "window,run";*/ -/* combi-hide-mode-prefix: false;*/ -/* combi-display-format: "{mode} {text}";*/ - - /*---------- History and Sorting ----------*/ - disable-history: false; - sorting-method: "normal"; - max-history-size: 25; - - /*---------- Display setting ----------*/ - display-window: "Windows"; - display-windowcd: "Window CD"; - display-run: "Run"; - display-ssh: "SSH"; - display-drun: "Apps"; - display-combi: "Combi"; - display-keys: "Keys"; - display-filebrowser: "Files"; - - /*---------- Misc setting ----------*/ - terminal: "rofi-sensible-terminal"; - font: "Mono 12"; - sort: false; - threads: 0; - click-to-exit: true; -/* ignored-prefixes: "";*/ -/* pid: "/run/user/1000/rofi.pid";*/ - - /*---------- File browser settings ----------*/ - filebrowser { -/* directory: "/home";*/ - directories-first: true; - sorting-method: "name"; - } - - /*---------- Other settings ----------*/ - timeout { - action: "kb-cancel"; - delay: 0; - } - - /*---------- Keybindings ----------*/ -/* - kb-primary-paste: "Control+V,Shift+Insert"; - kb-secondary-paste: "Control+v,Insert"; - kb-clear-line: "Control+w"; - kb-move-front: "Control+a"; - kb-move-end: "Control+e"; - kb-move-word-back: "Alt+b,Control+Left"; - kb-move-word-forward: "Alt+f,Control+Right"; - kb-move-char-back: "Left,Control+b"; - kb-move-char-forward: "Right,Control+f"; - kb-remove-word-back: "Control+Alt+h,Control+BackSpace"; - kb-remove-word-forward: "Control+Alt+d"; - kb-remove-char-forward: "Delete,Control+d"; - kb-remove-char-back: "BackSpace,Shift+BackSpace,Control+h"; - kb-remove-to-eol: "Control+k"; - kb-remove-to-sol: "Control+u"; - kb-accept-entry: "Control+j,Control+m,Return,KP_Enter"; - kb-accept-custom: "Control+Return"; - kb-accept-custom-alt: "Control+Shift+Return"; - kb-accept-alt: "Shift+Return"; - kb-delete-entry: "Shift+Delete"; - kb-mode-next: "Shift+Right,Control+Tab"; - kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab"; - kb-mode-complete: "Control+l"; - kb-row-left: "Control+Page_Up"; - kb-row-right: "Control+Page_Down"; - kb-row-down: "Down,Control+n"; - kb-page-prev: "Page_Up"; - kb-page-next: "Page_Down"; - kb-row-first: "Home,KP_Home"; - kb-row-last: "End,KP_End"; - kb-row-select: "Control+space"; - kb-screenshot: "Alt+S"; - kb-ellipsize: "Alt+period"; - kb-toggle-case-sensitivity: "grave,dead_grave"; - kb-toggle-sort: "Alt+grave"; - kb-cancel: "Escape,Control+g,Control+bracketleft"; - kb-custom-1: "Alt+1"; - kb-custom-2: "Alt+2"; - kb-custom-3: "Alt+3"; - kb-custom-4: "Alt+4"; - kb-custom-5: "Alt+5"; - kb-custom-6: "Alt+6"; - kb-custom-7: "Alt+7"; - kb-custom-8: "Alt+8"; - kb-custom-9: "Alt+9"; - kb-custom-10: "Alt+0"; - kb-custom-11: "Alt+exclam"; - kb-custom-12: "Alt+at"; - kb-custom-13: "Alt+numbersign"; - kb-custom-14: "Alt+dollar"; - kb-custom-15: "Alt+percent"; - kb-custom-16: "Alt+dead_circumflex"; - kb-custom-17: "Alt+ampersand"; - kb-custom-18: "Alt+asterisk"; - kb-custom-19: "Alt+parenleft"; - kb-select-1: "Super+1"; - kb-select-2: "Super+2"; - kb-select-3: "Super+3"; - kb-select-4: "Super+4"; - kb-select-5: "Super+5"; - kb-select-6: "Super+6"; - kb-select-7: "Super+7"; - kb-select-8: "Super+8"; - kb-select-9: "Super+9"; - kb-select-10: "Super+0"; - ml-row-left: "ScrollLeft"; - ml-row-right: "ScrollRight"; - ml-row-up: "ScrollUp"; - ml-row-down: "ScrollDown"; - me-select-entry: "MousePrimary"; - me-accept-entry: "MouseDPrimary"; - me-accept-custom: "Control+MouseDPrimary"; -*/ +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/dot-config/rofi/powermenu.rasi b/dot-config/rofi/powermenu.rasi deleted file mode 100644 index 6e2ab31..0000000 --- a/dot-config/rofi/powermenu.rasi +++ /dev/null @@ -1,150 +0,0 @@ -/** - * - * Author : Aditya Shakya (adi1090x) - * Github : @adi1090x - * - * Rofi Theme File - * Rofi Version: 1.7.3 - **/ - -@import "colors.rasi" - -/*****----- Configuration -----*****/ -configuration { - show-icons: false; -} - -/*****----- Global Properties -----*****/ -* { - font: "JetBrainsMono Nerd Font Mono 11"; - background: @on-primary-fixed; - background-alt: @on-primary-fixed-variant; - foreground: @primary-fixed; - selected: @primary-fixed-dim; - selected-fg: @on-primary-fixed; - active: @primary-fixed; - urgent: @error; -} - -/* -USE_BUTTONS=YES -*/ - -/*****----- Main Window -----*****/ -window { - transparency: "real"; - location: center; - anchor: center; - fullscreen: false; - width: 550px; - x-offset: 0px; - y-offset: 0px; - - padding: 0px; - border: 0px solid; - border-radius: 20px; - border-color: @selected; - cursor: "default"; - background-color: @background; -} - -/*****----- Main Box -----*****/ -mainbox { - enabled: true; - spacing: 0px; - margin: 0px; - padding: 0px; - border: 0px solid; - border-radius: 0px; - border-color: @selected; - background-color: transparent; - children: [ "inputbar", "listview", "message" ]; -} - -/*****----- Inputbar -----*****/ -inputbar { - enabled: true; - spacing: 0px; - padding: 100px 80px; - background-color: transparent; - background-image: url("~/.config/hypr/wallpaper.png", width); - children: [ "textbox-prompt-colon", "dummy","prompt"]; -} - -dummy { - background-color: transparent; -} - -textbox-prompt-colon { - enabled: true; - expand: false; - str: " Power menu"; - padding: 12px; - border-radius: 100%; - background-color: @background; - text-color: @foreground; -} -prompt { - enabled: true; - padding: 12px; - border-radius: 100%; - background-color: @background; - text-color: @foreground; -} - -/*****----- Listview -----*****/ -listview { - enabled: true; - columns: 4; - lines: 1; - cycle: true; - dynamic: true; - scrollbar: false; - layout: vertical; - reverse: false; - fixed-height: true; - fixed-columns: true; - - spacing: 15px; - margin: 15px; - background-color: transparent; - cursor: "default"; -} - -/*****----- Elements -----*****/ -element { - enabled: true; - padding: 28px 10px; - border-radius: 100%; - background-color: @background-alt; - text-color: @foreground; - cursor: pointer; -} -element-text { - font: "JetBrainsMono Nerd Font Mono 32"; - background-color: transparent; - text-color: inherit; - cursor: inherit; - vertical-align: 0.5; - horizontal-align: 0.5; -} -element selected.normal { - background-color: var(selected); - text-color: var(selected-fg); -} - -/*****----- Message -----*****/ -message { - enabled: true; - margin: 0px 15px 15px 15px; - padding: 15px; - border-radius: 100%; - background-color: @background-alt; - text-color: @foreground; -} -textbox { - background-color: inherit; - text-color: inherit; - vertical-align: 0.5; - horizontal-align: 0.5; -} diff --git a/dot-local/share/rofi/themes/catppuccin-frappe.rasi b/dot-local/share/rofi/themes/catppuccin-frappe.rasi new file mode 100644 index 0000000..e6e8783 --- /dev/null +++ b/dot-local/share/rofi/themes/catppuccin-frappe.rasi @@ -0,0 +1,111 @@ +* { + bg-col: #303446; + bg-col-light: #303446; + border-col: #303446; + selected-col: #303446; + blue: #8caaee; + fg-col: #c6d0f5; + fg-col2: #e78284; + grey: #737994; + + width: 600; + font: "JetBrainsMono Nerd Font 14"; +} + +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; +} diff --git a/dot-local/share/rofi/themes/catppuccin-latte.rasi b/dot-local/share/rofi/themes/catppuccin-latte.rasi new file mode 100644 index 0000000..6826db6 --- /dev/null +++ b/dot-local/share/rofi/themes/catppuccin-latte.rasi @@ -0,0 +1,111 @@ +* { + bg-col: #eff1f5; + bg-col-light: #eff1f5; + border-col: #eff1f5; + selected-col: #eff1f5; + blue: #1e66f5; + fg-col: #4c4f69; + fg-col2: #d20f39; + grey: #9ca0b0; + + width: 600; + font: "JetBrainsMono Nerd Font 14"; +} + +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; +} diff --git a/dot-local/share/rofi/themes/catppuccin-macchiato.rasi b/dot-local/share/rofi/themes/catppuccin-macchiato.rasi new file mode 100644 index 0000000..696d769 --- /dev/null +++ b/dot-local/share/rofi/themes/catppuccin-macchiato.rasi @@ -0,0 +1,111 @@ +* { + bg-col: #24273a; + bg-col-light: #24273a; + border-col: #24273a; + selected-col: #24273a; + blue: #8aadf4; + fg-col: #cad3f5; + fg-col2: #ed8796; + grey: #6e738d; + + width: 600; + font: "JetBrainsMono Nerd Font 14"; +} + +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; +} diff --git a/dot-local/share/rofi/themes/catppuccin-mocha.rasi b/dot-local/share/rofi/themes/catppuccin-mocha.rasi new file mode 100644 index 0000000..8b0839b --- /dev/null +++ b/dot-local/share/rofi/themes/catppuccin-mocha.rasi @@ -0,0 +1,112 @@ +* { + bg-col: #1e1e2e; + bg-col-light: #1e1e2e; + border-col: #1e1e2e; + selected-col: #1e1e2e; + blue: #89b4fa; + fg-col: #cdd6f4; + fg-col2: #f38ba8; + grey: #6c7086; + + width: 600; + font: "JetBrainsMono Nerd Font 14"; +} + +element-text, element-icon , mode-switcher { + background-color: inherit; + text-color: inherit; +} + +window { + height: 360px; + border: 3px; + border-radius: 10px; + border-color: @blue; + 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: 20px; + 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; +}