From db3b8fc0cea69e73bd546baebc7df375728b40a9 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 17 Feb 2025 02:09:11 +0900 Subject: fixed width on some rofi configs --- config/rofi/config-calc.rasi | 4 ++++ config/rofi/config-emoji.rasi | 5 +++++ config/rofi/config-waybar-layout.rasi | 13 +++++++++---- config/rofi/config-waybar-style.rasi | 6 +++++- 4 files changed, 23 insertions(+), 5 deletions(-) (limited to 'config/rofi') diff --git a/config/rofi/config-calc.rasi b/config/rofi/config-calc.rasi index 1dfd1887..87082d76 100644 --- a/config/rofi/config-calc.rasi +++ b/config/rofi/config-calc.rasi @@ -10,6 +10,10 @@ mainbox { height: inherit; } +/* ---- Window ---- */ +window { + width: 30%; +} /* ---- Entry ---- */ entry { diff --git a/config/rofi/config-emoji.rasi b/config/rofi/config-emoji.rasi index c107bdc3..4a698957 100644 --- a/config/rofi/config-emoji.rasi +++ b/config/rofi/config-emoji.rasi @@ -9,6 +9,11 @@ mainbox { [ "inputbar", "message", "listview"]; } +/* ---- Window ---- */ +window { + width: 45%; +} + /* ---- Entry ---- */ entry { width: 37%; diff --git a/config/rofi/config-waybar-layout.rasi b/config/rofi/config-waybar-layout.rasi index c179a362..ae47f30d 100644 --- a/config/rofi/config-waybar-layout.rasi +++ b/config/rofi/config-waybar-layout.rasi @@ -3,15 +3,20 @@ @import "~/.config/rofi/config.rasi" +/* ---- Mainbox ---- */ +mainbox { + children: + [ "inputbar", "listview"]; +} + /* ---- Configuration ---- */ configuration { modi: "drun"; } -/* ---- Mainbox ---- */ -mainbox { - children: - [ "inputbar", "listview"]; +/* ---- Window ---- */ +window { + width: 45%; } /* ---- Entry ---- */ diff --git a/config/rofi/config-waybar-style.rasi b/config/rofi/config-waybar-style.rasi index 12c5a757..e0e6161a 100644 --- a/config/rofi/config-waybar-style.rasi +++ b/config/rofi/config-waybar-style.rasi @@ -14,13 +14,17 @@ configuration { modi: "drun"; } +/* ---- Window ---- */ +window { + width: 45%; +} + /* ---- Entry ---- */ entry { expand: true; placeholder: " ๐Ÿ–ผ๏ธ Search / Choose Waybar Style"; } - /* ---- Listview ---- */ listview { columns: 2; -- cgit v1.2.3 From 2efef290d65b1a44a5291113c0b9a5f7d6d8e89e Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 17 Feb 2025 10:33:43 +0900 Subject: improved some rofi themes --- config/rofi/themes/KooL_LonerOrZ.rasi | 2 +- config/rofi/themes/KooL_style-10-Fancy-v2.rasi | 12 ++++++------ config/rofi/themes/KooL_style-11-Win11-list-dark.rasi | 3 ++- config/rofi/themes/KooL_style-11-Win11-list-light.rasi | 5 +++-- config/rofi/themes/KooL_style-12-TOP-Docu.rasi | 8 ++++---- config/rofi/themes/KooL_style-3-Fullscreen-v2.rasi | 2 +- config/rofi/themes/KooL_style-4.rasi | 9 ++++----- config/rofi/themes/KooL_style-5.rasi | 8 ++++---- config/rofi/themes/KooL_style-6.rasi | 8 ++++---- config/rofi/themes/KooL_style-7.rasi | 2 +- config/rofi/themes/KooL_style-8.rasi | 4 ++-- config/rofi/themes/KooL_style-9.rasi | 2 +- 12 files changed, 33 insertions(+), 32 deletions(-) (limited to 'config/rofi') diff --git a/config/rofi/themes/KooL_LonerOrZ.rasi b/config/rofi/themes/KooL_LonerOrZ.rasi index 5afd1f6b..ca8e30c9 100644 --- a/config/rofi/themes/KooL_LonerOrZ.rasi +++ b/config/rofi/themes/KooL_LonerOrZ.rasi @@ -65,7 +65,7 @@ entry { placeholder-color: @FG; expand: true; horizontal-align: 0; - placeholder: "Search..."; + placeholder: "Search ๐Ÿ‘€ NOTE: CTRL TAB to change MODE"; blink: true; border: 0px 0px 2px 0px; border-color: @BDR; diff --git a/config/rofi/themes/KooL_style-10-Fancy-v2.rasi b/config/rofi/themes/KooL_style-10-Fancy-v2.rasi index 3e4a55c7..21c5c41e 100644 --- a/config/rofi/themes/KooL_style-10-Fancy-v2.rasi +++ b/config/rofi/themes/KooL_style-10-Fancy-v2.rasi @@ -69,12 +69,12 @@ listview { } /* ---- Scrollbar ---- */ scrollbar { - border: 1px; - border-radius: 10px; - background-color: @blue; - handle-color: @orange; - handle-width: 5px ; - padding: 0; + border: 1px; + border-radius: 10px; + background-color: @blue; + handle-color: @orange; + handle-width: 5px ; + padding: 0; } element { border: 0px; diff --git a/config/rofi/themes/KooL_style-11-Win11-list-dark.rasi b/config/rofi/themes/KooL_style-11-Win11-list-dark.rasi index 229a5297..ed8544ba 100644 --- a/config/rofi/themes/KooL_style-11-Win11-list-dark.rasi +++ b/config/rofi/themes/KooL_style-11-Win11-list-dark.rasi @@ -77,8 +77,9 @@ icon-search { } entry { - placeholder : "Type here to search"; + placeholder : "Search ๐Ÿ‘€ NOTE: CTRL TAB to change MODE"; text-color : @fg1; + horizontal-align : 0.5; } listview { diff --git a/config/rofi/themes/KooL_style-11-Win11-list-light.rasi b/config/rofi/themes/KooL_style-11-Win11-list-light.rasi index 8d5082e6..1c2b8fa5 100644 --- a/config/rofi/themes/KooL_style-11-Win11-list-light.rasi +++ b/config/rofi/themes/KooL_style-11-Win11-list-light.rasi @@ -77,8 +77,9 @@ icon-search { } entry { - placeholder : "Type here to search"; - placeholder-color : @fg1; + placeholder : "Search ๐Ÿ‘€ NOTE: CTRL TAB to change MODE"; + text-color : @fg1; + horizontal-align : 0.5; } listview { diff --git a/config/rofi/themes/KooL_style-12-TOP-Docu.rasi b/config/rofi/themes/KooL_style-12-TOP-Docu.rasi index 55fbb0b7..f70896f5 100644 --- a/config/rofi/themes/KooL_style-12-TOP-Docu.rasi +++ b/config/rofi/themes/KooL_style-12-TOP-Docu.rasi @@ -11,10 +11,10 @@ configuration { modi: "drun,run,filebrowser"; show-icons: true; - display-drun: "Apps"; - display-run: "Run"; - display-filebrowser: "Files"; - display-window: "Windows"; + display-drun: "๏†ฒโ€‰ "; + display-run: "๏„ โ€‰ "; + display-filebrowser: "๏ผโ€‰ "; + display-window: "๏‹โ€‰ "; drun-display-format: "{name}"; window-format: "{w} ยท {c} ยท {t}"; dpi: 1; diff --git a/config/rofi/themes/KooL_style-3-Fullscreen-v2.rasi b/config/rofi/themes/KooL_style-3-Fullscreen-v2.rasi index 0dbf45bc..3b66d2b7 100644 --- a/config/rofi/themes/KooL_style-3-Fullscreen-v2.rasi +++ b/config/rofi/themes/KooL_style-3-Fullscreen-v2.rasi @@ -124,7 +124,7 @@ entry { background-color: transparent; text-color: @foreground; cursor: text; - placeholder: " Search"; + placeholder: " Search ๐Ÿ‘€ NOTE: CTRL TAB to change MODE"; placeholder-color: inherit; } diff --git a/config/rofi/themes/KooL_style-4.rasi b/config/rofi/themes/KooL_style-4.rasi index 7eb03c45..73ab3dfa 100644 --- a/config/rofi/themes/KooL_style-4.rasi +++ b/config/rofi/themes/KooL_style-4.rasi @@ -6,11 +6,10 @@ configuration { modi: "drun,run,filebrowser"; show-icons: true; - display-drun: "๏€‰ Apps"; - display-run: "๏„  Run"; - display-filebrowser: "๏ป Files"; - display-window: "๏‹ Window"; - display-ssh: "๏„ˆ SSH"; + display-drun: "๏†ฒโ€‰ apps"; + display-run: "๏„ โ€‰ term"; + display-filebrowser: "๏ผโ€‰ file"; + display-window: "๏‹โ€‰ window"; drun-display-format: "{name}"; window-format: "{w} ยท {c} ยท {t}"; dpi: 1; diff --git a/config/rofi/themes/KooL_style-5.rasi b/config/rofi/themes/KooL_style-5.rasi index 8609dcaf..e943abde 100644 --- a/config/rofi/themes/KooL_style-5.rasi +++ b/config/rofi/themes/KooL_style-5.rasi @@ -5,10 +5,10 @@ configuration { modi: "drun,run,filebrowser"; show-icons: true; - display-drun: "Apps"; - display-run: "Run"; - display-filebrowser: "Files"; - display-window: "Windows"; + display-drun: "๏†ฒโ€‰ "; + display-run: "๏„ โ€‰ "; + display-filebrowser: "๏ผโ€‰ "; + display-window: "๏‹โ€‰ "; drun-display-format: "{name}"; hover-select: true; me-select-entry: "MouseSecondary"; diff --git a/config/rofi/themes/KooL_style-6.rasi b/config/rofi/themes/KooL_style-6.rasi index 369c0854..7fb90079 100644 --- a/config/rofi/themes/KooL_style-6.rasi +++ b/config/rofi/themes/KooL_style-6.rasi @@ -6,10 +6,10 @@ configuration { modi: "drun,run,filebrowser"; show-icons: true; - display-drun: "Apps"; - display-run: "Run"; - display-filebrowser: "Files"; - display-window: "Windows"; + display-drun: "๏†ฒโ€‰ apps"; + display-run: "๏„ โ€‰ term"; + display-filebrowser: "๏ผโ€‰ files"; + display-window: "๏‹โ€‰ window"; drun-display-format: "{name}"; hover-select: true; me-select-entry: "MouseSecondary"; diff --git a/config/rofi/themes/KooL_style-7.rasi b/config/rofi/themes/KooL_style-7.rasi index 2ad7f714..e70c2fb5 100644 --- a/config/rofi/themes/KooL_style-7.rasi +++ b/config/rofi/themes/KooL_style-7.rasi @@ -102,7 +102,7 @@ entry { background-color: inherit; text-color: @foreground; cursor: text; - placeholder: "Search..."; + placeholder: "Search... ๐Ÿ‘€ NOTE: CTRL TAB to change MODE"; placeholder-color: inherit; } diff --git a/config/rofi/themes/KooL_style-8.rasi b/config/rofi/themes/KooL_style-8.rasi index 5d24a2ed..916e74b6 100644 --- a/config/rofi/themes/KooL_style-8.rasi +++ b/config/rofi/themes/KooL_style-8.rasi @@ -8,8 +8,8 @@ configuration { show-icons: true; display-drun: "๏†ฒโ€‰ apps"; display-run: "๏„ โ€‰ term"; - display-filebrowser: " ๏ผโ€‰ file"; - display-window: " ๏‹โ€‰ window"; + display-filebrowser: "๏ผโ€‰ files"; + display-window: "๏‹โ€‰ window"; drun-display-format: "{name}"; window-format: "{w} ยท {c} ยท {t}"; dpi: 1; diff --git a/config/rofi/themes/KooL_style-9.rasi b/config/rofi/themes/KooL_style-9.rasi index 7c49d929..8a1fc972 100644 --- a/config/rofi/themes/KooL_style-9.rasi +++ b/config/rofi/themes/KooL_style-9.rasi @@ -77,7 +77,7 @@ entry { placeholder-color: @FG; expand: true; horizontal-align: 0; - placeholder: " Search..."; + placeholder: " Search ๐Ÿ‘€ NOTE: CTRL TAB to change MODE"; blink: true; border: 0px 0px 2px 0px; border-color: @BDR; -- cgit v1.2.3 From 88cdae74a39fff66d19549a2fcbdddba624d72e4 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 17 Feb 2025 10:44:02 +0900 Subject: I better slow down. Cant please everybody anyway --- config/rofi/themes/KooL_style-1.rasi | 8 ++++---- config/rofi/themes/KooL_style-2-Dark.rasi | 8 ++++---- config/rofi/themes/KooL_style-2-Light.rasi | 8 ++++---- config/rofi/themes/KooL_style-3-FullScreen-v1.rasi | 8 ++++---- config/rofi/themes/KooL_style-3-Fullscreen-v2.rasi | 8 ++++---- config/rofi/themes/KooL_style-4.rasi | 2 +- 6 files changed, 21 insertions(+), 21 deletions(-) (limited to 'config/rofi') diff --git a/config/rofi/themes/KooL_style-1.rasi b/config/rofi/themes/KooL_style-1.rasi index 9ac62fd7..a80e6100 100644 --- a/config/rofi/themes/KooL_style-1.rasi +++ b/config/rofi/themes/KooL_style-1.rasi @@ -6,10 +6,10 @@ configuration { modi: "drun,run,filebrowser"; show-icons: true; - display-drun: "Apps"; - display-run: "Run"; - display-filebrowser: "Files"; - display-window: "Windows"; + display-drun: "๏†ฒโ€‰ apps"; + display-run: "๏„ โ€‰ term"; + display-filebrowser: "๏ผโ€‰ files"; + display-window: "๏‹โ€‰ window"; drun-display-format: "{name}"; window-format: "{w} ยท {c} ยท {t}"; dpi: 1; diff --git a/config/rofi/themes/KooL_style-2-Dark.rasi b/config/rofi/themes/KooL_style-2-Dark.rasi index 73c3eee7..03ba7e30 100644 --- a/config/rofi/themes/KooL_style-2-Dark.rasi +++ b/config/rofi/themes/KooL_style-2-Dark.rasi @@ -7,10 +7,10 @@ configuration { modi: "drun,filebrowser,window"; show-icons: true; - display-drun: "APPS"; - display-run: "RUN"; - display-filebrowser: "FILES"; - display-window: "WINDOW"; + display-drun: "๏†ฒโ€‰ apps"; + display-run: "๏„ โ€‰ term"; + display-filebrowser: "๏ผโ€‰ files"; + display-window: "๏‹โ€‰ window"; drun-display-format: "{name}"; window-format: "{w} ยท {c} ยท {t}"; dpi: 1; diff --git a/config/rofi/themes/KooL_style-2-Light.rasi b/config/rofi/themes/KooL_style-2-Light.rasi index 29ea7188..8b501645 100644 --- a/config/rofi/themes/KooL_style-2-Light.rasi +++ b/config/rofi/themes/KooL_style-2-Light.rasi @@ -7,10 +7,10 @@ configuration { modi: "drun,filebrowser,window"; show-icons: true; - display-drun: "APPS"; - display-run: "RUN"; - display-filebrowser: "FILES"; - display-window: "WINDOW"; + display-drun: "๏†ฒโ€‰ apps"; + display-run: "๏„ โ€‰ term"; + display-filebrowser: "๏ผโ€‰ files"; + display-window: "๏‹โ€‰ window"; drun-display-format: "{name}"; window-format: "{w} ยท {c} ยท {t}"; dpi: 1; diff --git a/config/rofi/themes/KooL_style-3-FullScreen-v1.rasi b/config/rofi/themes/KooL_style-3-FullScreen-v1.rasi index a98a6fa8..48e64a96 100644 --- a/config/rofi/themes/KooL_style-3-FullScreen-v1.rasi +++ b/config/rofi/themes/KooL_style-3-FullScreen-v1.rasi @@ -6,10 +6,10 @@ configuration { modi: "drun,run,filebrowser"; show-icons: true; - display-drun: "Apps"; - display-run: "Run"; - display-filebrowser: "Files"; - display-window: "Windows"; + display-drun: "๏†ฒโ€‰ apps"; + display-run: "๏„ โ€‰ term"; + display-filebrowser: "๏ผโ€‰ files"; + display-window: "๏‹โ€‰ window"; drun-display-format: "{name}"; window-format: "{w} ยท {c} ยท {t}"; dpi: 1; diff --git a/config/rofi/themes/KooL_style-3-Fullscreen-v2.rasi b/config/rofi/themes/KooL_style-3-Fullscreen-v2.rasi index 3b66d2b7..f1d9c6c0 100644 --- a/config/rofi/themes/KooL_style-3-Fullscreen-v2.rasi +++ b/config/rofi/themes/KooL_style-3-Fullscreen-v2.rasi @@ -6,10 +6,10 @@ configuration { modi: "drun,run,filebrowser"; show-icons: true; - display-drun: "๏€‰ Apps"; - display-run: "๏„  Run"; - display-filebrowser: "๏ป Files"; - display-window: "๏‹ Windows"; + display-drun: "๏†ฒโ€‰ apps"; + display-run: "๏„ โ€‰ term"; + display-filebrowser: "๏ผโ€‰ files"; + display-window: "๏‹โ€‰ window"; display-ssh: "๏„ˆ SSH"; drun-display-format: "{name}"; window-format: "{w} ยท {c} ยท {t}"; diff --git a/config/rofi/themes/KooL_style-4.rasi b/config/rofi/themes/KooL_style-4.rasi index 73ab3dfa..db3b3fdb 100644 --- a/config/rofi/themes/KooL_style-4.rasi +++ b/config/rofi/themes/KooL_style-4.rasi @@ -8,7 +8,7 @@ configuration { show-icons: true; display-drun: "๏†ฒโ€‰ apps"; display-run: "๏„ โ€‰ term"; - display-filebrowser: "๏ผโ€‰ file"; + display-filebrowser: "๏ผโ€‰ files"; display-window: "๏‹โ€‰ window"; drun-display-format: "{name}"; window-format: "{w} ยท {c} ยท {t}"; -- cgit v1.2.3 From 68bad271f91fc8f332d852bb57b0f64868bf43fc Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 17 Feb 2025 14:31:13 +0900 Subject: updated wlogout logic and quick edit menu --- config/hypr/UserScripts/QuickEdit.sh | 39 ++++++++-------- config/hypr/scripts/Wlogout.sh | 88 ++++++++++++++++++------------------ config/rofi/config-edit.rasi | 2 +- 3 files changed, 64 insertions(+), 65 deletions(-) (limited to 'config/rofi') diff --git a/config/hypr/UserScripts/QuickEdit.sh b/config/hypr/UserScripts/QuickEdit.sh index c71fb166..09530881 100755 --- a/config/hypr/UserScripts/QuickEdit.sh +++ b/config/hypr/UserScripts/QuickEdit.sh @@ -10,40 +10,41 @@ tty=kitty configs="$HOME/.config/hypr/configs" UserConfigs="$HOME/.config/hypr/UserConfigs" rofi_theme="~/.config/rofi/config-edit.rasi" +msg=' โ‰๏ธ Choose which config to View or Edit โ‰๏ธ' # Function to display the menu options menu() { cat < /dev/null; then pkill -x "wlogout" exit 0 fi -# Detect monitor resolution and scaling factor -resolution=$(hyprctl -j monitors | jq -r '.[] | select(.focused==true) | .height / .scale' | awk -F'.' '{print $1}') -hypr_scale=$(hyprctl -j monitors | jq -r '.[] | select(.focused==true) | .scale') +# Detect the current monitor's native resolution and scale +monitor_info=$(hyprctl -j monitors | jq -r '.[] | select(.focused==true)') +# extract some info +resolution=$(echo "$monitor_info" | jq -r '.height') +width=$(echo "$monitor_info" | jq -r '.width') +hypr_scale=$(echo "$monitor_info" | jq -r '.scale') + +# If hypr_scale >= 1.25 or resolution can't be detected, run wlogout with -b 3 +if [[ -z "$resolution" || ! "$resolution" =~ ^[0-9]+$ || -z "$hypr_scale" || $(awk "BEGIN {exit !($hypr_scale >= 1.25)}") -eq 1 ]]; then + echo "Hypr_scale is greater than or equal to 1.25 or resolution could not be detected, running wlogout with -b 3" + wlogout --protocol layer-shell -b 3 -T 100 -B 100 & + exit 0 +fi -# Set parameters based on screen resolution and scaling factor +# Determine the appropriate resolution range and calculate T and B values if ((resolution >= 2160)); then - T_val=$(awk "BEGIN {printf \"%.0f\", $A_2160 * 2160 * $hypr_scale / $resolution}") - B_val=$(awk "BEGIN {printf \"%.0f\", $B_2160 * 2160 * $hypr_scale / $resolution}") - echo "Setting parameters for resolution >= 4k" - wlogout --protocol layer-shell -b 6 -T $T_val -B $B_val & -elif ((resolution >= 1600 && resolution < 2160)); then - T_val=$(awk "BEGIN {printf \"%.0f\", $A_1600 * 1600 * $hypr_scale / $resolution}") - B_val=$(awk "BEGIN {printf \"%.0f\", $B_1600 * 1600 * $hypr_scale / $resolution}") - echo "Setting parameters for resolution >= 2.5k and < 4k" - wlogout --protocol layer-shell -b 6 -T $T_val -B $B_val & -elif ((resolution >= 1440 && resolution < 1600)); then - T_val=$(awk "BEGIN {printf \"%.0f\", $A_1440 * 1440 * $hypr_scale / $resolution}") - B_val=$(awk "BEGIN {printf \"%.0f\", $B_1440 * 1440 * $hypr_scale / $resolution}") - echo "Setting parameters for resolution >= 2k and < 2.5k" - wlogout --protocol layer-shell -b 6 -T $T_val -B $B_val & -elif ((resolution >= 1080 && resolution < 1440)); then - T_val=$(awk "BEGIN {printf \"%.0f\", $A_1080 * 1080 * $hypr_scale / $resolution}") - B_val=$(awk "BEGIN {printf \"%.0f\", $B_1080 * 1080 * $hypr_scale / $resolution}") - echo "Setting parameters for resolution >= 1080p and < 2k" - wlogout --protocol layer-shell -b 6 -T $T_val -B $B_val & -elif ((resolution >= 720 && resolution < 1080)); then - T_val=$(awk "BEGIN {printf \"%.0f\", $A_720 * 720 * $hypr_scale / $resolution}") - B_val=$(awk "BEGIN {printf \"%.0f\", $B_720 * 720 * $hypr_scale / $resolution}") - echo "Setting parameters for resolution >= 720p and < 1080p" - wlogout --protocol layer-shell -b 3 -T $T_val -B $B_val & + res_key=2160 +elif ((resolution >= 1600)); then + res_key=1600 +elif ((resolution >= 1440)); then + res_key=1440 +elif ((resolution >= 1080)); then + res_key=1080 else - echo "Setting default parameters" - wlogout & + res_key=720 fi + +# Calculate T and B values based on selected resolution and scale +T_val=$(awk "BEGIN {printf \"%.0f\", ${resolutions[$res_key]} * $res_key * $hypr_scale / $resolution}") +B_val=$(awk "BEGIN {printf \"%.0f\", ${resolutions[$res_key]} * $res_key * $hypr_scale / $resolution}") + +# Output the resolution setting for debugging purposes +echo "Setting parameters for resolution >= $res_key" + +# Run wlogout with -b 6 and calculated T/B values +wlogout --protocol layer-shell -b 6 -T $T_val -B $B_val & \ No newline at end of file diff --git a/config/rofi/config-edit.rasi b/config/rofi/config-edit.rasi index 60d18e34..1902ab35 100644 --- a/config/rofi/config-edit.rasi +++ b/config/rofi/config-edit.rasi @@ -6,7 +6,7 @@ /* ---- Mainbox ---- */ mainbox { children: - [ "inputbar", "listview"]; + [ "inputbar", "message", "listview"]; } -- cgit v1.2.3 From edf24ead93cd5110fa0b19650db3ad197591e18c Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 17 Feb 2025 14:56:27 +0900 Subject: updated some rofi configs. Increased some additional width for compatibility with users with scaling --- config/rofi/config-Animations.rasi | 4 ++-- config/rofi/config-edit.rasi | 2 +- config/rofi/config-rofi-Beats-menu.rasi | 4 ++-- config/rofi/config-rofi-Beats.rasi | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'config/rofi') diff --git a/config/rofi/config-Animations.rasi b/config/rofi/config-Animations.rasi index 7c458b09..ef7adc6c 100644 --- a/config/rofi/config-Animations.rasi +++ b/config/rofi/config-Animations.rasi @@ -11,12 +11,12 @@ mainbox { /* ---- Window ---- */ window { - width: 30%; + width: 45%; } /* ---- Entry ---- */ entry { - width: 28%; + width: 43%; placeholder: " โœจ Search / Choose which Animations to load"; } diff --git a/config/rofi/config-edit.rasi b/config/rofi/config-edit.rasi index 1902ab35..1e2bc848 100644 --- a/config/rofi/config-edit.rasi +++ b/config/rofi/config-edit.rasi @@ -17,7 +17,7 @@ configuration { /* ---- Window ---- */ window { - width: 45%; + width: 50%; } diff --git a/config/rofi/config-rofi-Beats-menu.rasi b/config/rofi/config-rofi-Beats-menu.rasi index b6a573f8..c4691bba 100644 --- a/config/rofi/config-rofi-Beats-menu.rasi +++ b/config/rofi/config-rofi-Beats-menu.rasi @@ -12,13 +12,13 @@ mainbox { /* ---- Entry ---- */ entry { expand: false; - width: 17%; + width: 27%; placeholder: " ๐Ÿ“ป Choose Music Source"; } /* ---- Window ---- */ window { - width: 20%; + width: 30%; } /* ---- Listview ---- */ diff --git a/config/rofi/config-rofi-Beats.rasi b/config/rofi/config-rofi-Beats.rasi index b8121286..a20e39a9 100644 --- a/config/rofi/config-rofi-Beats.rasi +++ b/config/rofi/config-rofi-Beats.rasi @@ -13,7 +13,7 @@ mainbox { children: [ "inputbar", "listview"]; } - +R /* ---- Entry ---- */ entry { placeholder: " ๐Ÿ“ป Choose Media or Stations to play"; -- cgit v1.2.3 From 6905e2bf038fce27cb49f1f3aba6d36279091bd4 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 18 Feb 2025 17:53:14 +0900 Subject: updated rofi configs --- config/rofi/config-Animations.rasi | 3 +- config/rofi/config-clipboard.rasi | 2 +- config/rofi/config-emoji.rasi | 2 +- config/rofi/config-keybinds.rasi | 2 +- config/rofi/config-rofi-Beats-menu.rasi | 5 +- config/rofi/config-rofi-Beats.rasi | 3 +- config/rofi/config-rofi-theme.rasi | 2 +- config/rofi/config-wallpaper-effect.rasi | 2 +- config/rofi/config-waybar-layout.rasi | 2 +- config/rofi/config-waybar-style.rasi | 2 +- config/rofi/config.rasi | 11 ++- config/rofi/themes/KooL_LonerOrZ.rasi | 3 +- config/rofi/themes/KooL_style-1.rasi | 4 +- config/rofi/themes/KooL_style-10-Fancy-v2.rasi | 4 +- config/rofi/themes/KooL_style-10-Fancy.rasi | 4 +- .../rofi/themes/KooL_style-11-Win11-list-dark.rasi | 4 +- .../themes/KooL_style-11-Win11-list-light.rasi | 4 +- config/rofi/themes/KooL_style-12-TOP-Docu.rasi | 6 +- config/rofi/themes/KooL_style-2-Dark.rasi | 4 +- config/rofi/themes/KooL_style-2-Light.rasi | 4 +- config/rofi/themes/KooL_style-3-FullScreen-v1.rasi | 4 +- config/rofi/themes/KooL_style-3-Fullscreen-v2.rasi | 2 +- config/rofi/themes/KooL_style-4.rasi | 2 +- config/rofi/themes/KooL_style-5.rasi | 2 +- config/rofi/themes/KooL_style-6.rasi | 2 +- config/rofi/themes/KooL_style-7.rasi | 4 +- config/rofi/themes/KooL_style-8.rasi | 9 ++- config/rofi/themes/KooL_style-9.rasi | 19 ++--- config/rofi/wallust/colors-rofi.rasi | 82 +++++++++++----------- copy.sh | 2 +- 30 files changed, 107 insertions(+), 94 deletions(-) (limited to 'config/rofi') diff --git a/config/rofi/config-Animations.rasi b/config/rofi/config-Animations.rasi index ef7adc6c..315eb2b9 100644 --- a/config/rofi/config-Animations.rasi +++ b/config/rofi/config-Animations.rasi @@ -23,9 +23,10 @@ entry { /* ---- Listview ---- */ listview { columns: 2; - lines: 9; + lines: 7; fixed-height: false; margin: 10px; + scrollbar: true; } /* ---- Elements ---- */ diff --git a/config/rofi/config-clipboard.rasi b/config/rofi/config-clipboard.rasi index 4b6ba384..4a7bf662 100644 --- a/config/rofi/config-clipboard.rasi +++ b/config/rofi/config-clipboard.rasi @@ -23,7 +23,7 @@ entry { /* ---- Listview ---- */ listview { columns: 1; - lines: 8; + lines: 7; fixed-height: false; } diff --git a/config/rofi/config-emoji.rasi b/config/rofi/config-emoji.rasi index 4a698957..04bc0215 100644 --- a/config/rofi/config-emoji.rasi +++ b/config/rofi/config-emoji.rasi @@ -24,7 +24,7 @@ entry { /* ---- Listview ---- */ listview { columns: 2; - lines: 8; + lines: 7; fixed-height: false; scrollbar: true; } diff --git a/config/rofi/config-keybinds.rasi b/config/rofi/config-keybinds.rasi index 2b19c271..9977bb9d 100644 --- a/config/rofi/config-keybinds.rasi +++ b/config/rofi/config-keybinds.rasi @@ -19,7 +19,7 @@ entry { /* ---- Listview ---- */ listview { columns: 2; - lines: 12; + lines: 8; fixed-height: false; scrollbar: true; } diff --git a/config/rofi/config-rofi-Beats-menu.rasi b/config/rofi/config-rofi-Beats-menu.rasi index c4691bba..67892681 100644 --- a/config/rofi/config-rofi-Beats-menu.rasi +++ b/config/rofi/config-rofi-Beats-menu.rasi @@ -12,13 +12,14 @@ mainbox { /* ---- Entry ---- */ entry { expand: false; - width: 27%; + width: 25%; placeholder: " ๐Ÿ“ป Choose Music Source"; + horizontal-align: 0.5; } /* ---- Window ---- */ window { - width: 30%; + width: 28%; } /* ---- Listview ---- */ diff --git a/config/rofi/config-rofi-Beats.rasi b/config/rofi/config-rofi-Beats.rasi index a20e39a9..d3e6df3b 100644 --- a/config/rofi/config-rofi-Beats.rasi +++ b/config/rofi/config-rofi-Beats.rasi @@ -22,9 +22,10 @@ entry { /* ---- Listview ---- */ listview { columns: 2; - lines: 8; + lines: 7; fixed-height: false; margin: 10px; + scrollbar: true; } /* ---- Elements ---- */ diff --git a/config/rofi/config-rofi-theme.rasi b/config/rofi/config-rofi-theme.rasi index d660f1f9..285c026f 100644 --- a/config/rofi/config-rofi-theme.rasi +++ b/config/rofi/config-rofi-theme.rasi @@ -17,7 +17,7 @@ mainbox { /* ---- Listview ---- */ listview { columns: 2; - lines: 8; + lines: 7; fixed-height: false; scrollbar: true; } diff --git a/config/rofi/config-wallpaper-effect.rasi b/config/rofi/config-wallpaper-effect.rasi index 6a4dbfe5..67c0f1b2 100644 --- a/config/rofi/config-wallpaper-effect.rasi +++ b/config/rofi/config-wallpaper-effect.rasi @@ -24,7 +24,7 @@ window { /* ---- Listview ---- */ listview { columns: 2; - lines: 8; + lines: 7; fixed-height: false; scrollbar: true; } diff --git a/config/rofi/config-waybar-layout.rasi b/config/rofi/config-waybar-layout.rasi index ae47f30d..be9d5ac5 100644 --- a/config/rofi/config-waybar-layout.rasi +++ b/config/rofi/config-waybar-layout.rasi @@ -28,7 +28,7 @@ entry { /* ---- Listview ---- */ listview { columns: 2; - lines: 9; + lines: 7; fixed-height: false; margin: 10px; scrollbar: true; diff --git a/config/rofi/config-waybar-style.rasi b/config/rofi/config-waybar-style.rasi index e0e6161a..67954bff 100644 --- a/config/rofi/config-waybar-style.rasi +++ b/config/rofi/config-waybar-style.rasi @@ -28,7 +28,7 @@ entry { /* ---- Listview ---- */ listview { columns: 2; - lines: 9; + lines: 7; fixed-height: false; margin: 10px; scrollbar: true; diff --git a/config/rofi/config.rasi b/config/rofi/config.rasi index b52ef00e..5769b508 100644 --- a/config/rofi/config.rasi +++ b/config/rofi/config.rasi @@ -21,4 +21,13 @@ configuration { /* note: Element-text font and size, edit configs in ~/.config/rofi/themes/ */ -@theme "~/.config/rofi/themes/KooL_style-2-Dark.rasi" +//@theme "~/.config/rofi/themes/KooL_style-2-Dark.rasi" +//@theme "~/.config/rofi/themes/KooL_style-1.rasi" +//@theme "~/.config/rofi/themes/KooL_LonerOrZ.rasi" +//@theme "~/.config/rofi/themes/KooL_style-1.rasi" +//@theme "~/.config/rofi/themes/KooL_style-10-Fancy-v2.rasi" +//@theme "~/.config/rofi/themes/KooL_style-10-Fancy.rasi" +//@theme "~/.config/rofi/themes/KooL_style-11-Win11-list-dark.rasi" +//@theme "~/.config/rofi/themes/KooL_style-2-Dark.rasi" +//@theme "~/.config/rofi/themes/KooL_style-12-TOP-Docu.rasi" +@theme "~/.config/rofi/themes/KooL_style-4.rasi" diff --git a/config/rofi/themes/KooL_LonerOrZ.rasi b/config/rofi/themes/KooL_LonerOrZ.rasi index ca8e30c9..bfa17b6b 100644 --- a/config/rofi/themes/KooL_LonerOrZ.rasi +++ b/config/rofi/themes/KooL_LonerOrZ.rasi @@ -1,6 +1,7 @@ /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ /* KooL Style LonerOrZ */ /* Submitted by https://github.com/lonerOrz */ +/* Edited by Ja */ @@ -109,7 +110,7 @@ scrollbar { border-radius: 10px; background-color: transparent; handle-color: @BDR; - handle-width: 5px ; + handle-width: 2px ; padding: 0; } diff --git a/config/rofi/themes/KooL_style-1.rasi b/config/rofi/themes/KooL_style-1.rasi index a80e6100..9391e491 100644 --- a/config/rofi/themes/KooL_style-1.rasi +++ b/config/rofi/themes/KooL_style-1.rasi @@ -148,11 +148,11 @@ button selected { /* ---- Scrollbar ---- */ scrollbar { - border: 1px; + border: 0px; border-radius: 10px; border-color: @color12; handle-color: @color11; - handle-width: 10px ; + handle-width: 2px ; padding: 0; } diff --git a/config/rofi/themes/KooL_style-10-Fancy-v2.rasi b/config/rofi/themes/KooL_style-10-Fancy-v2.rasi index 21c5c41e..0a1d1b21 100644 --- a/config/rofi/themes/KooL_style-10-Fancy-v2.rasi +++ b/config/rofi/themes/KooL_style-10-Fancy-v2.rasi @@ -69,11 +69,11 @@ listview { } /* ---- Scrollbar ---- */ scrollbar { - border: 1px; + border: 0px; border-radius: 10px; background-color: @blue; handle-color: @orange; - handle-width: 5px ; + handle-width: 2px ; padding: 0; } element { diff --git a/config/rofi/themes/KooL_style-10-Fancy.rasi b/config/rofi/themes/KooL_style-10-Fancy.rasi index b503f549..612d4246 100644 --- a/config/rofi/themes/KooL_style-10-Fancy.rasi +++ b/config/rofi/themes/KooL_style-10-Fancy.rasi @@ -222,11 +222,11 @@ element.alternate.active { } /* ---- Scrollbar ---- */ scrollbar { - border: 1px; + border: 0px; border-radius: 10px; background-color: @selected-normal-background; handle-color: @separatorcolor; - handle-width: 5px ; + handle-width: 2px ; padding: 0; } sidebar { diff --git a/config/rofi/themes/KooL_style-11-Win11-list-dark.rasi b/config/rofi/themes/KooL_style-11-Win11-list-dark.rasi index ed8544ba..1dcadb81 100644 --- a/config/rofi/themes/KooL_style-11-Win11-list-dark.rasi +++ b/config/rofi/themes/KooL_style-11-Win11-list-dark.rasi @@ -129,11 +129,11 @@ element-text { /* ---- Scrollbar ---- */ scrollbar { - border: 1px; + border: 0px; border-radius: 10px; background-color: inherit; handle-color: @accent; - handle-width: 5px ; + handle-width: 2px ; padding: 0; } diff --git a/config/rofi/themes/KooL_style-11-Win11-list-light.rasi b/config/rofi/themes/KooL_style-11-Win11-list-light.rasi index 1c2b8fa5..b722d44f 100644 --- a/config/rofi/themes/KooL_style-11-Win11-list-light.rasi +++ b/config/rofi/themes/KooL_style-11-Win11-list-light.rasi @@ -129,11 +129,11 @@ element-text { /* ---- Scrollbar ---- */ scrollbar { - border: 1px; + border: 0px; border-radius: 10px; background-color: inherit; handle-color: @accent; - handle-width: 5px ; + handle-width: 1px ; padding: 0; } diff --git a/config/rofi/themes/KooL_style-12-TOP-Docu.rasi b/config/rofi/themes/KooL_style-12-TOP-Docu.rasi index f70896f5..0a5e0575 100644 --- a/config/rofi/themes/KooL_style-12-TOP-Docu.rasi +++ b/config/rofi/themes/KooL_style-12-TOP-Docu.rasi @@ -84,7 +84,7 @@ window { location: north; width: 100%; background-color: black / 50%; - padding: 1em; + padding: 0.5em; border-color: black; border: 0em 0.2em 0.2em; chilren: [ inputbar, message, listview ]; @@ -109,7 +109,7 @@ element { border-color: darkgrey; background-color: grey; cursor: pointer; - padding: 4px; + padding: 2px; } element selected { @@ -133,7 +133,7 @@ scrollbar { border-radius: 10px; background-color: transparent; handle-color: darkgrey; - handle-width: 5px ; + handle-width: 2px ; padding: 0; } diff --git a/config/rofi/themes/KooL_style-2-Dark.rasi b/config/rofi/themes/KooL_style-2-Dark.rasi index 03ba7e30..7be669d8 100644 --- a/config/rofi/themes/KooL_style-2-Dark.rasi +++ b/config/rofi/themes/KooL_style-2-Dark.rasi @@ -53,7 +53,7 @@ mainbox { enabled: true; spacing: 20px; margin: 10px; - padding: 40px; + padding: 20px; border-radius: 12px; background-color: black/90%; children: [ "inputbar", "mode-switcher", "message", "listview" ]; @@ -110,7 +110,7 @@ scrollbar { border-radius: 10px; background-color: inherit; handle-color: #719DF9; - handle-width: 5px ; + handle-width: 2px ; padding: 0; } diff --git a/config/rofi/themes/KooL_style-2-Light.rasi b/config/rofi/themes/KooL_style-2-Light.rasi index 8b501645..551759db 100644 --- a/config/rofi/themes/KooL_style-2-Light.rasi +++ b/config/rofi/themes/KooL_style-2-Light.rasi @@ -53,7 +53,7 @@ mainbox { enabled: true; spacing: 20px; margin: 10px; - padding: 40px; + padding: 20px; border-radius: 12px; background-color: white/90%; children: [ "inputbar", "mode-switcher", "message", "listview" ]; @@ -110,7 +110,7 @@ scrollbar { border-radius: 10px; background-color: transparent; handle-color: gray/50%; - handle-width: 5px ; + handle-width: 2px ; padding: 0; } diff --git a/config/rofi/themes/KooL_style-3-FullScreen-v1.rasi b/config/rofi/themes/KooL_style-3-FullScreen-v1.rasi index 48e64a96..fc9c3dfb 100644 --- a/config/rofi/themes/KooL_style-3-FullScreen-v1.rasi +++ b/config/rofi/themes/KooL_style-3-FullScreen-v1.rasi @@ -161,10 +161,10 @@ button selected { /* ---- Scrollbar ---- */ scrollbar { - border: 0; + border: 0px; handle-color: @background-alt; handle-width: 2px ; - padding: 0; + padding: 0px; } /* ---- Elements ---- */ diff --git a/config/rofi/themes/KooL_style-3-Fullscreen-v2.rasi b/config/rofi/themes/KooL_style-3-Fullscreen-v2.rasi index f1d9c6c0..a26ac7ca 100644 --- a/config/rofi/themes/KooL_style-3-Fullscreen-v2.rasi +++ b/config/rofi/themes/KooL_style-3-Fullscreen-v2.rasi @@ -152,7 +152,7 @@ listview { cursor: "default"; } scrollbar { - handle-width: 5px ; + handle-width: 2px ; handle-color: @selected; border-radius: 0px; background-color: @background-alt; diff --git a/config/rofi/themes/KooL_style-4.rasi b/config/rofi/themes/KooL_style-4.rasi index db3b3fdb..b440189b 100644 --- a/config/rofi/themes/KooL_style-4.rasi +++ b/config/rofi/themes/KooL_style-4.rasi @@ -190,7 +190,7 @@ listview { cursor: "default"; } scrollbar { - handle-width: 5px ; + handle-width: 2px ; handle-color: @handle-color; border-radius: 10px; background-color: @alternate-background; diff --git a/config/rofi/themes/KooL_style-5.rasi b/config/rofi/themes/KooL_style-5.rasi index e943abde..d2a6c125 100644 --- a/config/rofi/themes/KooL_style-5.rasi +++ b/config/rofi/themes/KooL_style-5.rasi @@ -176,7 +176,7 @@ scrollbar { border-radius: 10px; background-color: transparent; handle-color: @active; - handle-width: 5px ; + handle-width: 2px ; padding: 0; } diff --git a/config/rofi/themes/KooL_style-6.rasi b/config/rofi/themes/KooL_style-6.rasi index 7fb90079..175f6ee9 100644 --- a/config/rofi/themes/KooL_style-6.rasi +++ b/config/rofi/themes/KooL_style-6.rasi @@ -127,7 +127,7 @@ scrollbar { border-radius: 10px; background-color: transparent; handle-color: @active; - handle-width: 5px ; + handle-width: 2px ; padding: 0; } /* ---- Dummy ---- */ diff --git a/config/rofi/themes/KooL_style-7.rasi b/config/rofi/themes/KooL_style-7.rasi index e70c2fb5..3b444baa 100644 --- a/config/rofi/themes/KooL_style-7.rasi +++ b/config/rofi/themes/KooL_style-7.rasi @@ -40,7 +40,7 @@ window { location: center; anchor: center; fullscreen: false; - width: 800px; + width: 40%; x-offset: 0px; y-offset: 0px; @@ -130,7 +130,7 @@ listview { cursor: "default"; } scrollbar { - handle-width: 5px ; + handle-width: 2px ; handle-color: @selected; border-radius: 0px; background-color: @background-alt; diff --git a/config/rofi/themes/KooL_style-8.rasi b/config/rofi/themes/KooL_style-8.rasi index 916e74b6..7a264ad7 100644 --- a/config/rofi/themes/KooL_style-8.rasi +++ b/config/rofi/themes/KooL_style-8.rasi @@ -101,7 +101,7 @@ listbox { /* ---- Listview ---- */ listview { - padding: 1.5em; + padding: 0.5em; spacing: 0.5em; enabled: true; columns: 2; @@ -142,10 +142,9 @@ button selected { /* ---- Scrollbar ---- */ scrollbar { - border: @border-width; - border-color: @color11; - handle-color: @color12; - handle-width: 10px ; + border: 0px; + handle-color: @color11; + handle-width: 2px ; padding: 0; } diff --git a/config/rofi/themes/KooL_style-9.rasi b/config/rofi/themes/KooL_style-9.rasi index 8a1fc972..c585329d 100644 --- a/config/rofi/themes/KooL_style-9.rasi +++ b/config/rofi/themes/KooL_style-9.rasi @@ -54,6 +54,13 @@ window { y-offset: 0; } +mainbox { + background-color: @BG; + children: [ inputbar, listview ]; + spacing: 15px; + padding: 15px; +} + prompt { enabled: true; padding: 8px; @@ -114,22 +121,16 @@ listview { dynamic: true; layout: vertical; scrollbar: true; -} - -mainbox { - background-color: @BG; - children: [ inputbar, listview ]; - spacing: 15px; - padding: 15px; + padding: 10px; } /* ---- Scrollbar ---- */ scrollbar { - border: 1px; + border: 0px; border-radius: 10px; border-color: @color12; handle-color: @color11; - handle-width: 10px ; + handle-width: 2px ; padding: 0; } diff --git a/config/rofi/wallust/colors-rofi.rasi b/config/rofi/wallust/colors-rofi.rasi index b54ab670..7fb97349 100644 --- a/config/rofi/wallust/colors-rofi.rasi +++ b/config/rofi/wallust/colors-rofi.rasi @@ -2,48 +2,48 @@ /* wallust template - colors-rofi */ * { -active-background: #718A90; -active-foreground: #ABF1E1; -normal-background: #212826; -normal-foreground: #ABF1E1; -urgent-background: #44AE9B; -urgent-foreground: #ABF1E1; - -alternate-active-background: #78858E; -alternate-active-foreground: #ABF1E1; -alternate-normal-background: #212826; -alternate-normal-foreground: #ABF1E1; -alternate-urgent-background: #212826; -alternate-urgent-foreground: #ABF1E1; - -selected-active-background: #44AE9B; -selected-active-foreground: #ABF1E1; -selected-normal-background: #44AE9B; -selected-normal-foreground: #ABF1E1; -selected-urgent-background: #718A90; -selected-urgent-foreground: #ABF1E1; - -background-color: #212826; +active-background: #784CA0; +active-foreground: #FAE8E1; +normal-background: #181519; +normal-foreground: #FAE8E1; +urgent-background: #CC659A; +urgent-foreground: #FAE8E1; + +alternate-active-background: #914B4B; +alternate-active-foreground: #FAE8E1; +alternate-normal-background: #181519; +alternate-normal-foreground: #FAE8E1; +alternate-urgent-background: #181519; +alternate-urgent-foreground: #FAE8E1; + +selected-active-background: #CC659A; +selected-active-foreground: #FAE8E1; +selected-normal-background: #CC659A; +selected-normal-foreground: #FAE8E1; +selected-urgent-background: #784CA0; +selected-urgent-foreground: #FAE8E1; + +background-color: #181519; background: rgba(0,0,0,0.7); -foreground: #ABF1E1; -border-color: #718A90; - -color0: #464D4C; -color1: #02211D; -color2: #02613F; -color3: #5A646A; -color4: #55686C; -color5: #338375; -color6: #0CA27F; -color7: #7FE3CC; -color8: #599F8E; -color9: #022C27; -color10: #028154; -color11: #78858E; -color12: #718A90; -color13: #44AE9B; -color14: #10D8A9; -color15: #7FE3CC; +foreground: #FAE8E1; +border-color: #784CA0; + +color0: #3F3C40; +color1: #1A1022; +color2: #492E61; +color3: #6D3838; +color4: #5A3978; +color5: #994C74; +color6: #B58E80; +color7: #F0D6CC; +color8: #A8958F; +color9: #23152D; +color10: #613D81; +color11: #914B4B; +color12: #784CA0; +color13: #CC659A; +color14: #F2BDAA; +color15: #F0D6CC; } diff --git a/copy.sh b/copy.sh index 722ca214..84a1a215 100755 --- a/copy.sh +++ b/copy.sh @@ -333,7 +333,7 @@ if [ "$resolution" == "< 1440p" ]; then # Change rofi font size find "$themes_dir" -type f | while read -r file; do if grep -Pzoq 'element-text {\n font: "JetBrainsMono Nerd Font SemiBold 12";\n}' "$file"; then - sed -i 's/font: "JetBrainsMono Nerd Font SemiBold 12"/font: "JetBrainsMono Nerd Font SemiBold 11"/' "$file" + sed -i 's/font: "JetBrainsMono Nerd Font SemiBold 12"/font: "JetBrainsMono Nerd Font SemiBold 10"/' "$file" fi done -- cgit v1.2.3 From 5678aa496a365804f53cc096c3fbb382dea2083a Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 18 Feb 2025 23:02:05 +0900 Subject: minor update on wallpaper menu to have dynamically icon size depending on monitor sizes. Idea from @Abhra00 --- config/hypr/UserScripts/WallpaperEffects.sh | 6 +++--- config/hypr/UserScripts/WallpaperSelect.sh | 19 +++++++++++++++---- config/rofi/config-wallpaper.rasi | 19 ++++++++++++++----- config/rofi/config.rasi | 11 +---------- 4 files changed, 33 insertions(+), 22 deletions(-) (limited to 'config/rofi') diff --git a/config/hypr/UserScripts/WallpaperEffects.sh b/config/hypr/UserScripts/WallpaperEffects.sh index 2573f5e0..06c1d3ff 100755 --- a/config/hypr/UserScripts/WallpaperEffects.sh +++ b/config/hypr/UserScripts/WallpaperEffects.sh @@ -7,7 +7,7 @@ terminal=kitty wallpaper_current="$HOME/.config/hypr/wallpaper_effects/.wallpaper_current" wallpaper_output="$HOME/.config/hypr/wallpaper_effects/.wallpaper_modified" SCRIPTSDIR="$HOME/.config/hypr/scripts" -focused_monitor=$(hyprctl monitors | awk '/^Monitor/{name=$2} /focused: yes/{print name}') +focused_monitor=$(hyprctl monitors -j | jq -r '.[] | select(.focused) | .name') rofi_theme="~/.config/rofi/config-wallpaper-effect.rasi" # Directory for swaync @@ -15,9 +15,9 @@ iDIR="$HOME/.config/swaync/images" iDIRi="$HOME/.config/swaync/icons" # swww transition config -FPS=60 +FPS=30 TYPE="wipe" -DURATION=2 +DURATION=1 BEZIER=".43,1.19,1,.4" SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION" diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh index 86264775..a53b88d7 100755 --- a/config/hypr/UserScripts/WallpaperSelect.sh +++ b/config/hypr/UserScripts/WallpaperSelect.sh @@ -8,17 +8,28 @@ wallDIR="$HOME/Pictures/wallpapers" SCRIPTSDIR="$HOME/.config/hypr/scripts" wallpaper_current="$HOME/.config/hypr/wallpaper_effects/.wallpaper_current" +rofi_override="element-icon{size:${icon_size}px;}" + # Directory for swaync iDIR="$HOME/.config/swaync/images" iDIRi="$HOME/.config/swaync/icons" # variables rofi_theme="~/.config/rofi/config-wallpaper.rasi" -focused_monitor=$(hyprctl monitors | awk '/^Monitor/{name=$2} /focused: yes/{print name}') +focused_monitor=$(hyprctl monitors -j | jq -r '.[] | select(.focused) | .name') + +# Get monitor width and DPI +monitor_width=$(hyprctl monitors -j | jq -r --arg mon "$focused_monitor" '.[] | select(.name == $mon) | .width') +scale_factor=$(hyprctl monitors -j | jq -r --arg mon "$focused_monitor" '.[] | select(.name == $mon) | .scale') + +# Calculate icon size for rofi +icon_size=$(echo "scale=1; ($monitor_width * 14) / ($scale_factor * 100)" | bc) +rofi_override="element-icon{size:${icon_size}px;}" + # swww transition config -FPS=60 +FPS=30 TYPE="any" -DURATION=2 +DURATION=1 BEZIER=".43,1.19,1,.4" SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION" @@ -34,7 +45,7 @@ RANDOM_PIC="${PICS[$((RANDOM % ${#PICS[@]}))]}" RANDOM_PIC_NAME=". random" # Rofi command -rofi_command="rofi -i -show -dmenu -config $rofi_theme" +rofi_command="rofi -i -show -dmenu -config $rofi_theme -theme-str $rofi_override" # Sorting Wallpapers menu() { diff --git a/config/rofi/config-wallpaper.rasi b/config/rofi/config-wallpaper.rasi index eab47606..ca2789d8 100644 --- a/config/rofi/config-wallpaper.rasi +++ b/config/rofi/config-wallpaper.rasi @@ -21,26 +21,35 @@ mainbox { entry { expand: true; placeholder: " ๐ŸŽž๏ธ Search / Choose Wallpaper"; - horizontal-align: 0.0; + horizontal-align: 0.5; } /* ---- Listview ---- */ listview { - columns: 5; - lines: 3; + columns: 4; + lines: 2; + spacing: 10px; + padding: 10px; flow: horizontal; + fixed-width: false; + fixed-height: true; } /* ---- Element ---- */ element { orientation: vertical; + border-radius: 12px; + spacing: 20px; + padding: 6px; } element-icon { - size: 10%; + vertical-align: 0.5; } element-text { - vertical-align: 0.5; + vertical-align: 1.0; horizontal-align: 0.5; + padding: 0px; + margin: 0px; } diff --git a/config/rofi/config.rasi b/config/rofi/config.rasi index 5769b508..b52ef00e 100644 --- a/config/rofi/config.rasi +++ b/config/rofi/config.rasi @@ -21,13 +21,4 @@ configuration { /* note: Element-text font and size, edit configs in ~/.config/rofi/themes/ */ -//@theme "~/.config/rofi/themes/KooL_style-2-Dark.rasi" -//@theme "~/.config/rofi/themes/KooL_style-1.rasi" -//@theme "~/.config/rofi/themes/KooL_LonerOrZ.rasi" -//@theme "~/.config/rofi/themes/KooL_style-1.rasi" -//@theme "~/.config/rofi/themes/KooL_style-10-Fancy-v2.rasi" -//@theme "~/.config/rofi/themes/KooL_style-10-Fancy.rasi" -//@theme "~/.config/rofi/themes/KooL_style-11-Win11-list-dark.rasi" -//@theme "~/.config/rofi/themes/KooL_style-2-Dark.rasi" -//@theme "~/.config/rofi/themes/KooL_style-12-TOP-Docu.rasi" -@theme "~/.config/rofi/themes/KooL_style-4.rasi" +@theme "~/.config/rofi/themes/KooL_style-2-Dark.rasi" -- cgit v1.2.3