From 8cd047fcde9dc62f80c2afde4dc9a9c8102f4775 Mon Sep 17 00:00:00 2001 From: KKV9 Date: Wed, 14 Feb 2024 22:09:37 +0000 Subject: Refactor rofi configs Remove duplicated code by using imports --- config/rofi/config-clipboard.rasi | 216 +------------------------------------- 1 file changed, 4 insertions(+), 212 deletions(-) (limited to 'config/rofi/config-clipboard.rasi') diff --git a/config/rofi/config-clipboard.rasi b/config/rofi/config-clipboard.rasi index d0c9549d..e99cb3fd 100644 --- a/config/rofi/config-clipboard.rasi +++ b/config/rofi/config-clipboard.rasi @@ -1,217 +1,9 @@ /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ -/* Main Config (long) */ +/* Clipboard Config (long) */ -/* ---- Configuration ---- */ -configuration { - modi: "drun,run"; - font: "Fira Code SemiBold 14"; - show-icons: true; - display-drun: "๎ฏ†"; - display-run: "๏„ "; - display-filebrowser: "๎ซฐ"; - display-window: "๏‹"; - drun-display-format: "{name}"; - hover-select: true; - me-select-entry: "MouseSecondary"; - me-accept-entry: "MousePrimary"; - window-format: "{w} ยท {c} ยท {t}"; - dpi: 1; - -} - -/* ---- Load pywal colors (custom wal template) ---- */ -@import "~/.config/rofi/pywal-color/pywal-theme.rasi" - -/* ---- Window ---- */ -window { - width: 700px; - /*height: 500px;*/ - x-offset: 0px; - y-offset: 0px; - spacing: 0px; - padding: 2px; - margin: 0px; - border: 2px; - border-color: @active-background; - cursor: "default"; - location: center; - anchor: center; - fullscreen: false; - enabled: true; - border-radius: 12px; - background-image: url("~/.config/rofi/.current_wallpaper", height); - -} - -/* ---- Mainbox ---- */ -mainbox { - enabled: true; - orientation: vertical; - padding: 8px; - background-color: transparent; - children: [ "imagebox" ]; - border-radius: 12px; -} - -/* ---- Imagebox ---- */ -imagebox { - background-color: transparent; - orientation: vertical; - children: [ "inputbar", "message", "listbox"]; -} - -/* ---- Listbox ---- */ -listbox { - spacing: 4px; - orientation: vertical; - children: [ "listview", "mode-switcher" ]; - border-radius: 10px; - border: 1px; - border-color: @active-background; - background-color: @background; -} - -/* ---- Inputbar ---- */ -inputbar { - enabled: true; - text-color: @foreground; - spacing: 10px; - padding: 6px; - border-radius: 10px; - border-color: @foreground; - background-color: @background; - children: [ "textbox-prompt-colon", "entry" ]; - border: 1px; - border-color: @active-background; -} - -textbox-prompt-colon { - enabled: true; - expand: false; - str: "๐Ÿ”Ž "; - text-color: inherit; - background-color: transparent; -} +@import "~/.config/rofi/config-long.rasi" +/* ---- Entry ---- */ entry { - enabled: true; - text-color: inherit; - cursor: text; - placeholder: "CTRL Del - Cliphist del || Alt Del - cliphist wipe"; - placeholder-color: inherit; - background-color: transparent; -} - -/* ---- Listview ---- */ -listview { - enabled: true; - columns: 1; - lines: 9; - spacing: 4px; - dynamic: true; - cycle: true; - scrollbar: true; - layout: vertical; - reverse: false; - fixed-height: true; - fixed-columns: true; - background-color: transparent; - border-radius: 10px; -} - -/* ---- Element ---- */ -element { - enabled: true; - padding: 2px; - margin: 2px; - cursor: pointer; - background-color: transparent; - border-radius: 10px; -} - -element normal.normal { - background-color: inherit; - text-color: @foreground; -} - -element normal.urgent { - background-color: inherit; - text-color: @foreground; -} - -element normal.active { - background-color: inherit; - text-color: @foreground; -} - -element selected.normal { - background-color: @selected-normal-background; - text-color: @foreground; -} - -element selected.urgent { - background-color: inherit; - text-color: @foreground; -} - -element selected.active { - background-color: inherit; - text-color: @foreground; -} - -element alternate.normal { - background-color: inherit; - text-color: @foreground; -} - -element alternate.urgent { - background-color: inherit; - text-color: @foreground; -} - -element alternate.active { - background-color: inherit; - text-color: @foreground; -} - -element-icon { - background-color: transparent; - text-color: inherit; - size: 32px; - cursor: inherit; -} - -element-text { - background-color: transparent; - text-color: inherit; - cursor: inherit; - vertical-align: 0.5; - horizontal-align: 0.0; -} - -/*****----- Message -----*****/ -message { - background-color: transparent; - border: 0px; - margin: 20px 0px 0px 0px; - padding: 0px; - spacing: 0px; - border-radius: 10px; -} - -textbox { - padding: 6px; - margin: 0px; - border-radius: 0px; - background-color: transparent; - text-color: @foreground; - vertical-align: 0.5; - horizontal-align: 0.0; -} - -error-message { - padding: 6px; - border-radius: 20px; - background-color: @background; - text-color: @foreground; + placeholder: "CTRL Del - Cliphist del || Alt Del - cliphist wipe"; } -- cgit v1.2.3 From 5940c2ed930bc528f6917a3560eafac1be8a5e9f Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 3 May 2024 19:37:17 +0900 Subject: updated rofi configs --- config/rofi/config-clipboard.rasi | 1 + config/rofi/config-compact.rasi | 1 + config/rofi/config-long.rasi | 2 +- config/rofi/config.rasi | 6 +++--- config/rofi/resolution/1080p/config.rasi | 4 ++-- config/rofi/resolution/1440p/config.rasi | 6 +++--- 6 files changed, 11 insertions(+), 9 deletions(-) (limited to 'config/rofi/config-clipboard.rasi') diff --git a/config/rofi/config-clipboard.rasi b/config/rofi/config-clipboard.rasi index e99cb3fd..ddc9a9d0 100644 --- a/config/rofi/config-clipboard.rasi +++ b/config/rofi/config-clipboard.rasi @@ -5,5 +5,6 @@ /* ---- Entry ---- */ entry { + width: 600px; placeholder: "CTRL Del - Cliphist del || Alt Del - cliphist wipe"; } diff --git a/config/rofi/config-compact.rasi b/config/rofi/config-compact.rasi index 1d5fb9e8..d41fefde 100644 --- a/config/rofi/config-compact.rasi +++ b/config/rofi/config-compact.rasi @@ -22,6 +22,7 @@ imagebox { } entry { + width: 400px; placeholder: "๏„ View / Edit Hyprland Configs"; } diff --git a/config/rofi/config-long.rasi b/config/rofi/config-long.rasi index 4b594d5c..99f35d69 100644 --- a/config/rofi/config-long.rasi +++ b/config/rofi/config-long.rasi @@ -21,7 +21,7 @@ inputbar { entry { placeholder: "๐Ÿ”Ž Search"; - width: 22%; + width: 600px; } /* ---- Listview ---- */ diff --git a/config/rofi/config.rasi b/config/rofi/config.rasi index 47782dab..a48a7d3c 100644 --- a/config/rofi/config.rasi +++ b/config/rofi/config.rasi @@ -5,7 +5,7 @@ configuration { modi: "drun,run,filebrowser"; - font: "Fira Code SemiBold 10"; + font: "Fira Code SemiBold 12"; show-icons: true; display-drun: "Apps"; display-run: "Run"; @@ -129,7 +129,7 @@ mode-switcher{ background-color: transparent; } button { - width: 80px; + width: 100px; padding: 12px; border-radius: 12px; background-color: @background-alt; @@ -199,7 +199,7 @@ element-icon { } element-text { background-color: transparent; - font: "Fira Code SemiBold 14"; + font: "Fira Code SemiBold 15"; text-color: inherit; cursor: inherit; vertical-align: 0.5; diff --git a/config/rofi/resolution/1080p/config.rasi b/config/rofi/resolution/1080p/config.rasi index a77b0570..b778616b 100644 --- a/config/rofi/resolution/1080p/config.rasi +++ b/config/rofi/resolution/1080p/config.rasi @@ -1,11 +1,11 @@ /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ -/* Main Config 1440p */ +/* Main Config 1080p */ /* ---- Configuration ---- */ configuration { modi: "drun,run,filebrowser"; - font: "Fira Code SemiBold 9"; + font: "Fira Code SemiBold 10"; show-icons: true; display-drun: "Apps"; display-run: "Run"; diff --git a/config/rofi/resolution/1440p/config.rasi b/config/rofi/resolution/1440p/config.rasi index 47782dab..a48a7d3c 100644 --- a/config/rofi/resolution/1440p/config.rasi +++ b/config/rofi/resolution/1440p/config.rasi @@ -5,7 +5,7 @@ configuration { modi: "drun,run,filebrowser"; - font: "Fira Code SemiBold 10"; + font: "Fira Code SemiBold 12"; show-icons: true; display-drun: "Apps"; display-run: "Run"; @@ -129,7 +129,7 @@ mode-switcher{ background-color: transparent; } button { - width: 80px; + width: 100px; padding: 12px; border-radius: 12px; background-color: @background-alt; @@ -199,7 +199,7 @@ element-icon { } element-text { background-color: transparent; - font: "Fira Code SemiBold 14"; + font: "Fira Code SemiBold 15"; text-color: inherit; cursor: inherit; vertical-align: 0.5; -- cgit v1.2.3 From 6059d82374c4ea523f6715c338241c30c9b5d1be Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sat, 4 May 2024 15:33:56 +0900 Subject: RofiEmoji tweaked, new Rofi-Emoji Configs Tweaked rofi configs and used % instead of px --- config/hypr/scripts/RofiEmoji.sh | 2 +- config/rofi/config-clipboard.rasi | 6 +++--- config/rofi/config-compact.rasi | 12 ++++++++--- config/rofi/config-emoji.rasi | 10 +++++++++ config/rofi/config-long.rasi | 36 +++++--------------------------- config/rofi/config-rofi-Beats.rasi | 2 +- config/rofi/config-search.rasi | 2 +- config/rofi/config-zsh-theme.rasi | 2 +- config/rofi/config.rasi | 3 +-- config/rofi/resolution/1080p/config.rasi | 12 +++++------ config/rofi/resolution/1440p/config.rasi | 3 +-- 11 files changed, 39 insertions(+), 51 deletions(-) create mode 100644 config/rofi/config-emoji.rasi (limited to 'config/rofi/config-clipboard.rasi') diff --git a/config/hypr/scripts/RofiEmoji.sh b/config/hypr/scripts/RofiEmoji.sh index cf6bec55..c92aec87 100755 --- a/config/hypr/scripts/RofiEmoji.sh +++ b/config/hypr/scripts/RofiEmoji.sh @@ -3,7 +3,7 @@ # Rofi Emoticons. Not my own. Cant remember the source sed '1,/^# # DATA # #$/d' $0 | -rofi -i -dmenu -config ~/.config/rofi/config-long.rasi| +rofi -i -dmenu -config ~/.config/rofi/config-emoji.rasi| cut -d ' ' -f 1 | tr -d '\n' | wl-copy exit diff --git a/config/rofi/config-clipboard.rasi b/config/rofi/config-clipboard.rasi index ddc9a9d0..60d04149 100644 --- a/config/rofi/config-clipboard.rasi +++ b/config/rofi/config-clipboard.rasi @@ -1,10 +1,10 @@ /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ -/* Clipboard Config (long) */ +/* Clipboard Config (long) - Clipboard */ @import "~/.config/rofi/config-long.rasi" /* ---- Entry ---- */ entry { - width: 600px; - placeholder: "CTRL Del - Cliphist del || Alt Del - cliphist wipe"; + width: 45%; + placeholder: "๐Ÿ”Ž Search Clipboard **note** ๐Ÿ‘€ CTRL Del - Cliphist del or Alt Del - cliphist wipe"; } diff --git a/config/rofi/config-compact.rasi b/config/rofi/config-compact.rasi index d41fefde..bea90360 100644 --- a/config/rofi/config-compact.rasi +++ b/config/rofi/config-compact.rasi @@ -10,10 +10,15 @@ configuration { /* ---- Window ---- */ window { - width: 500px; + width: 20%; border-radius: 15px; } +/* ---- Inputbar ---- */ +inputbar { + background-image: url("~/.config/rofi/.current_wallpaper", height); +} + /* ---- Imagebox ---- */ imagebox { orientation: vertical; @@ -21,8 +26,9 @@ imagebox { [ "entry", "listview"]; } +/* ---- Entry input ---- */ entry { - width: 400px; + width: 16%; placeholder: "๏„ View / Edit Hyprland Configs"; } @@ -32,7 +38,7 @@ listview { lines: 10; spacing: 4px; scrollbar: false; - border-radius: 10px; + border-radius: 12px; } /* ---- Element ---- */ diff --git a/config/rofi/config-emoji.rasi b/config/rofi/config-emoji.rasi new file mode 100644 index 00000000..53a7ffb7 --- /dev/null +++ b/config/rofi/config-emoji.rasi @@ -0,0 +1,10 @@ +/* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ +/* Main Config (long) - emoji */ + +@import "~/.config/rofi/config-long.rasi" + +/* ---- Entry ---- */ +entry { + width: 45%; + placeholder: "๐Ÿ”Ž Search Emoji's **note** ๐Ÿ‘€ Click or Return to choose | Ctrl V to Paste"; +} diff --git a/config/rofi/config-long.rasi b/config/rofi/config-long.rasi index 99f35d69..b75d3d5e 100644 --- a/config/rofi/config-long.rasi +++ b/config/rofi/config-long.rasi @@ -3,44 +3,18 @@ @import "~/.config/rofi/config.rasi" -/* ---- Configuration ---- */ -configuration { - modi: "drun"; -} - /* ---- Window ---- */ window { - width: 700px; -} - -/* ---- Inputbar ---- */ -inputbar { - children: - ["entry"]; + width: 50%; } +/* ---- Entry ---- */ entry { - placeholder: "๐Ÿ”Ž Search"; - width: 600px; + placeholder: "๐Ÿ”Ž Search "; } /* ---- Listview ---- */ listview { columns: 1; - lines: 9; - spacing: 4px; - fixed-columns: true; - border-radius: 10px; - scrollbar: false; -} - -/*****----- Message -----*****/ -message { - background-color: transparent; - border-radius: 10px; -} - -textbox { - padding: 6px; - background-color: transparent; -} + lines: 10; +} \ No newline at end of file diff --git a/config/rofi/config-rofi-Beats.rasi b/config/rofi/config-rofi-Beats.rasi index 5f7872f2..efd67033 100644 --- a/config/rofi/config-rofi-Beats.rasi +++ b/config/rofi/config-rofi-Beats.rasi @@ -10,5 +10,5 @@ entry { /* ---- Listview ---- */ listview { - lines: 7; + lines: 10; } \ No newline at end of file diff --git a/config/rofi/config-search.rasi b/config/rofi/config-search.rasi index 149748da..2fc2f475 100644 --- a/config/rofi/config-search.rasi +++ b/config/rofi/config-search.rasi @@ -5,7 +5,7 @@ /* ---- Window ---- */ window { - width: 700px; + width: 40%; location: north; } diff --git a/config/rofi/config-zsh-theme.rasi b/config/rofi/config-zsh-theme.rasi index edc7a3ed..ffa8bd14 100644 --- a/config/rofi/config-zsh-theme.rasi +++ b/config/rofi/config-zsh-theme.rasi @@ -10,7 +10,7 @@ configuration { /* ---- Window ---- */ window { - width: 900px; + width: 40%; border-radius: 15px; } diff --git a/config/rofi/config.rasi b/config/rofi/config.rasi index f2353a62..1ed79730 100644 --- a/config/rofi/config.rasi +++ b/config/rofi/config.rasi @@ -49,7 +49,7 @@ window { anchor: center; // Style Values - width: 1100px; + width: 40%; background-color: #00000099; } @@ -218,7 +218,6 @@ textbox { background-color: @background-alt; text-color: @foreground; vertical-align: 0.5; - horizontal-align: 0.0; } error-message { padding: 12px; diff --git a/config/rofi/resolution/1080p/config.rasi b/config/rofi/resolution/1080p/config.rasi index 907c7ad0..55c2f76c 100644 --- a/config/rofi/resolution/1080p/config.rasi +++ b/config/rofi/resolution/1080p/config.rasi @@ -1,11 +1,11 @@ /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ -/* Main Config 1080p */ +/* Main Config 1440p */ /* ---- Configuration ---- */ configuration { modi: "drun,run,filebrowser"; - font: "Fira Code SemiBold 12"; + font: "Fira Code SemiBold 9"; show-icons: true; display-drun: "Apps"; display-run: "Run"; @@ -49,7 +49,7 @@ window { anchor: center; // Style Values - width: 800px; + width: 40%; background-color: #00000099; } @@ -82,7 +82,7 @@ entry { padding: 10px; border-radius: 12px; background-color: @background-alt; - text-color: @text-selected; + text-color: inherit; cursor: text; placeholder: "๏€‚ Search "; // << Search symbol placeholder-color: inherit; @@ -129,7 +129,7 @@ mode-switcher{ background-color: transparent; } button { - width: 95px; + width: 80px; padding: 12px; border-radius: 12px; background-color: @background-alt; @@ -199,7 +199,7 @@ element-icon { } element-text { background-color: transparent; - font: "Fira Code SemiBold 14"; + font: "Fira Code SemiBold 12"; text-color: inherit; cursor: inherit; vertical-align: 0.5; diff --git a/config/rofi/resolution/1440p/config.rasi b/config/rofi/resolution/1440p/config.rasi index f2353a62..1ed79730 100644 --- a/config/rofi/resolution/1440p/config.rasi +++ b/config/rofi/resolution/1440p/config.rasi @@ -49,7 +49,7 @@ window { anchor: center; // Style Values - width: 1100px; + width: 40%; background-color: #00000099; } @@ -218,7 +218,6 @@ textbox { background-color: @background-alt; text-color: @foreground; vertical-align: 0.5; - horizontal-align: 0.0; } error-message { padding: 12px; -- cgit v1.2.3