From e9e6dfa2d30246066ec865d8b5fc19d6a3fa9966 Mon Sep 17 00:00:00 2001 From: sudacode Date: Sun, 1 Feb 2026 12:20:52 -0800 Subject: [PATCH] update --- .config/rofi/catppuccin-default.rasi | 49 +++++++++++++++------- .config/rofi/config.rasi | 1 + .config/rofi/launchers/type-3/style-4.rasi | 25 +++++++++-- .config/rofi/scripts/rofi-wallpaper.sh | 2 +- 4 files changed, 59 insertions(+), 18 deletions(-) diff --git a/.config/rofi/catppuccin-default.rasi b/.config/rofi/catppuccin-default.rasi index 2dfabce..689efbb 100644 --- a/.config/rofi/catppuccin-default.rasi +++ b/.config/rofi/catppuccin-default.rasi @@ -1,12 +1,35 @@ -@import "catppuccin-macchiato.rasi" - -configuration { - show-icons: true; - icon-theme: "Dracula"; - dpi: 144; -} +// @import "catppuccin-latte" +// @import "catppuccin-frappe" +// @import "catppuccin-macchiato" +// @import "catppuccin-mocha" * { + rosewater: #f4dbd6; + flamingo: #f0c6c6; + pink: #f5bde6; + mauve: #c6a0f6; + red: #ed8796; + maroon: #ee99a0; + peach: #f5a97f; + yellow: #eed49f; + green: #a6da95; + teal: #8bd5ca; + sky: #91d7e3; + sapphire: #7dc4e4; + blue: #8aadf4; + lavender: #b7bdf8; + text: #cad3f5; + subtext1: #b8c0e0; + subtext0: #a5adcb; + overlay2: #939ab7; + overlay1: #8087a2; + overlay0: #6e738d; + surface2: #5b6078; + surface1: #494d64; + surface0: #363a4f; + base: #24273a; + mantle: #1e2030; + crust: #181926; selected-active-foreground: @background; lightfg: @text; separatorcolor: @foreground; @@ -35,6 +58,11 @@ configuration { alternate-active-foreground: @blue; } +configuration { + show-icons: true; + icon-theme: "Dracula"; + dpi: 144; +} element { padding: 1px ; cursor: pointer; @@ -90,12 +118,6 @@ element-icon { text-color: inherit; } window { - border: 4; - padding: 12px; - border-radius: 12px; - anchor: center; - location: center; - padding: 5; background-color: @background; border: 1; @@ -180,4 +202,3 @@ textbox-prompt-colon { str: ":"; text-color: inherit; } - diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi index c3becc4..9b891b3 100644 --- a/.config/rofi/config.rasi +++ b/.config/rofi/config.rasi @@ -30,6 +30,7 @@ configuration { show-icons: true; icon-theme: "Dracula"; dpi: 144; + modes: "window,run,ssh,drun,filebrowser"; } #window { diff --git a/.config/rofi/launchers/type-3/style-4.rasi b/.config/rofi/launchers/type-3/style-4.rasi index db9386b..411e5ec 100644 --- a/.config/rofi/launchers/type-3/style-4.rasi +++ b/.config/rofi/launchers/type-3/style-4.rasi @@ -2,7 +2,7 @@ * * Author : Aditya Shakya (adi1090x) * Github : @adi1090x - * + * * Rofi Theme File * Rofi Version: 1.7.3 **/ @@ -49,7 +49,7 @@ mainbox { border-radius: 0px 0px 0px 0px; border-color: @selected; background-color: transparent; - children: [ "inputbar", "listview" ]; + children: [ "inputbar", "listview-split" ]; } /*****----- Inputbar -----*****/ @@ -99,7 +99,7 @@ listview { reverse: false; fixed-height: true; fixed-columns: true; - + spacing: 0px; margin: 0px; padding: 0px; @@ -110,6 +110,18 @@ listview { text-color: @foreground; cursor: "default"; } +listview-split { + orientation: horizontal; + children: [listview, icon-current-entry]; + spacing: 1em; + background-color: @background; +} +icon-current-entry { + expand: true; + size: 40%; + background-color: transparent; + border-radius: 8px; +} scrollbar { handle-width: 5px ; handle-color: @selected; @@ -173,3 +185,10 @@ textbox { horizontal-align: 0.0; highlight: none; } +scrollbar { + width: 4px; + handle-color: @surface2; + handle-width: 4px; + background-color: @surface0; +} + diff --git a/.config/rofi/scripts/rofi-wallpaper.sh b/.config/rofi/scripts/rofi-wallpaper.sh index 0e81e44..b3aa575 100755 --- a/.config/rofi/scripts/rofi-wallpaper.sh +++ b/.config/rofi/scripts/rofi-wallpaper.sh @@ -4,7 +4,7 @@ set -Eeuo pipefail THEME="$HOME/.config/rofi/launchers/type-3/style-4.rasi" DIR="$HOME/Pictures/wallpapers/favorites" -SELECTED_WALL=$(cd "$DIR" && for a in *.jpg *.png; do echo -en "$a\0icon\x1f$a\n"; done | rofi -dmenu -i -no-custom -theme "$THEME" -p "Select a wallpaper" -theme-str 'configuration {icon-size: 128; dpi: 96;} window {width: 45%; height: 45%;}') +SELECTED_WALL=$(cd "$DIR" && for a in *.jpg *.png; do echo -en "$a\0icon\x1f$a\n"; done | rofi -dmenu -i -no-custom -theme "$THEME" -p "Select a wallpaper" -theme-str 'configuration {icon-size: 256; dpi: 96;} window {width: 75%; height: 69%;} listview {rows: 5; lines: 7;}') PTH="$(printf "%s" "$DIR/$SELECTED_WALL" | tr -s '/')" hyprctl hyprpaper wallpaper "DP-1, $PTH" notify-send -a "rofi-wallpaper" "Wallpaper set to" -i "$PTH" "$PTH"