diff --git a/config/hypr/assets/music.png b/config/hypr/assets/music.png deleted file mode 100644 index 92bf4c65..00000000 Binary files a/config/hypr/assets/music.png and /dev/null differ diff --git a/config/hypr/assets/reload.svg b/config/hypr/assets/reload.svg new file mode 100644 index 00000000..691de0f2 --- /dev/null +++ b/config/hypr/assets/reload.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/config/hypr/assets/rofi.png b/config/hypr/assets/rofi.png new file mode 100644 index 00000000..5006cee7 Binary files /dev/null and b/config/hypr/assets/rofi.png differ diff --git a/config/hypr/assets/screenshot.png b/config/hypr/assets/screenshot.png deleted file mode 100644 index 045395a6..00000000 Binary files a/config/hypr/assets/screenshot.png and /dev/null differ diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf index 46739513..dbe39782 100644 --- a/config/hypr/hyprlock.conf +++ b/config/hypr/hyprlock.conf @@ -1,13 +1,11 @@ -source = $HOME/.cache/wal/colors-hyprland - general { grace = 0 } background { monitor = - path = $HOME/dotfiles/rofi/.current_wallpaper # only png supported for now - color = $color7 + path = # only png supported for now + color = #6272a4 # all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations blur_size = 4 @@ -26,9 +24,9 @@ input-field { dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8 dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0 dots_center = true - outer_color = $color1 - inner_color = $color0 - font_color = $color7 + outer_color = #8be9fd + inner_color = #ffb86c + font_color = #bd93f9 fade_on_empty = true placeholder_text = Password... # Text rendered in the input box when it's empty. hide_input = false @@ -42,7 +40,7 @@ input-field { label { monitor = text = cmd[update:18000000] echo " "$(date +'%A, %-d %B %Y')" " - color = $color5 + color = #bd93f9 font_size = 34 font_family = JetBrains Mono Nerd Font 10 @@ -55,7 +53,7 @@ label { label { monitor = text = cmd[update:18000000] echo " "$(date +'Week %U')" " - color = $color7 + color = #bd93f9 font_size = 24 font_family = JetBrains Mono Nerd Font 10 @@ -68,7 +66,7 @@ label { label { monitor = text = cmd[update:1000] echo " $(date +"%I:%M:%S %p") " - color = $color7 + color = #bd93f9 font_size = 94 font_family = JetBrains Mono Nerd Font 10 @@ -80,7 +78,7 @@ label { label { monitor = text = ๏Šพ $USER - color = $color7 + color = #bd93f9 font_size = 18 font_family = Inter Display Medium @@ -92,7 +90,7 @@ label { label { monitor = text = cmd[update:60000] echo " "$(uptime -p)" " - color = $color12 + color = #bd93f9 font_size = 24 font_family = JetBrains Mono Nerd Font 10 position = 0, 0 @@ -103,7 +101,7 @@ label { label { monitor = text = cmd[update:3600000] curl -s 'wttr.in?format=2' # For specific location : wttr.in/Kohalpur?format=2 - color = $color10 + color = #bd93f9 font_size = 24 font_family = JetBrains Mono Nerd Font 10 position = 50, 0 diff --git a/config/hypr/initial-boot.sh b/config/hypr/initial-boot.sh index abe3f9c0..bcf6c3d4 100755 --- a/config/hypr/initial-boot.sh +++ b/config/hypr/initial-boot.sh @@ -6,7 +6,6 @@ # not necessary to do since this script is only designed to run only once as long as the marker exists # Variables -RunCMD=$HOME/.config/hypr/scripts/RunCMD.sh wallpaper=$HOME/Pictures/wallpapers/wall-08.png kvantum_theme="Dracula" @@ -19,9 +18,6 @@ effect="--transition-bezier .43,1.19,1,.4 --transition-fps 30 --transition-type # Initial scripts to load in order to have a proper wallpaper swww init || swww query && $swww "$wallpaper" $effect - # For Symbolic Link - $RunCMD linker > /dev/null 2>&1 - # initiate GTK dark mode and apply icon and cursor theme gsettings set org.gnome.desktop.interface gtk-theme Dracula > /dev/null 2>&1 & gsettings set org.gnome.desktop.wm.preferences theme Dracula > /dev/null 2>&1 & @@ -34,7 +30,7 @@ effect="--transition-bezier .43,1.19,1,.4 --transition-fps 30 --transition-type kvantummanager --set "$kvantum_theme" > /dev/null 2>&1 & #initiate the kb_layout - grep 'kb_layout=' "$HOME/.config/hypr/UserConfigs/UserSettings.conf" | cut -d '=' -f 2 | cut -d ',' -f 1 2>/dev/null > $HOME/.cache/kb_layout + grep 'kb_layout=' "$HOME/dotfiles/hypr/UserConfigs/UserSettings.conf" | cut -d '=' -f 2 | cut -d ',' -f 1 2>/dev/null > $HOME/.cache/kb_layout # Create a marker file to indicate that the script has been executed. touch $HOME/.cache/.initial_startup_done diff --git a/config/hypr/scripts/Ref.sh b/config/hypr/scripts/Ref.sh index f77bc349..75f72130 100755 --- a/config/hypr/scripts/Ref.sh +++ b/config/hypr/scripts/Ref.sh @@ -7,11 +7,12 @@ STATUS_FILE="$DIR/touchpad.status" # For Notification icon notif="$HOME/dotfiles/hypr/assets/bell.png" +reload="$HOME/dotfiles/hypr/assets/reload.png" # Scripts DIR SCRIPTSDIR="$HOME/dotfiles/hypr/scripts" UserSCRIPTSDIR="$HOME/dotfiles/hypr/UserScripts" -linker="$SCRIPTSDIR/RunCMD.sh linker" + # For Random Wallpaper wallDIR="$HOME/Pictures/wallpapers" diff --git a/config/hypr/scripts/Rofi_cmd.sh b/config/hypr/scripts/Rofi_cmd.sh index 6d1cf3fe..c5d0654b 100755 --- a/config/hypr/scripts/Rofi_cmd.sh +++ b/config/hypr/scripts/Rofi_cmd.sh @@ -54,7 +54,7 @@ edit() { ###################################### keybind() { -CONFIG=$(fd --base-directory "$HOME/dotfiles/keyb/bindings" --type f . | rofi -dmenu -config ~/dotfiles/rofi/config-long.rasi) +CONFIG=$(fd --base-directory "$HOME/dotfiles/keyb/bindings" --type f . | rofi -dmenu -p "Keybinds" -config ~/dotfiles/rofi/config-long.rasi) hyprctl dispatch exec "[float;size 45% 80%;center 1] kitty keyb -k '$HOME/dotfiles/keyb/bindings/$CONFIG'" } diff --git a/config/hypr/scripts/System_cmd.sh b/config/hypr/scripts/System_cmd.sh index bd2368be..59cf12af 100755 --- a/config/hypr/scripts/System_cmd.sh +++ b/config/hypr/scripts/System_cmd.sh @@ -93,7 +93,7 @@ reload_waybar() { if [[ -z $1 ]]; then waybar & fi - notify-send -u low -i $notif "Reload Waybar" + notify-send -u low -i $reload "Reload Waybar" } @@ -105,8 +105,7 @@ reload_waybar() { reload_hypr() { hyprctl reload - $RunCMD linker - notify-send -u low -i $notif 'Reload Hyprland' + notify-send -u low -i $reload 'Reload Hyprland' } ###################################### diff --git a/config/hypr/scripts/Ui_cmd.sh b/config/hypr/scripts/Ui_cmd.sh index 99f2d1c6..0adff177 100755 --- a/config/hypr/scripts/Ui_cmd.sh +++ b/config/hypr/scripts/Ui_cmd.sh @@ -104,7 +104,6 @@ random_wall() { if [[ ${#PICS[@]} -gt 0 ]]; then RANDOMPICS=${PICS[RANDOM % ${#PICS[@]}]} # Select a random image swww img "${RANDOMPICS}" ${SWWW_PARAMS} # Set the randomly selected wallpaper - $linker else echo "No images found in ${wallDIR}" fi @@ -122,7 +121,7 @@ auto_wall() { while true; do find "$wallDIR" -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \) -print0 \ | shuf -z -n 1 \ - | xargs -0 -I {} swww img "{}" ${SWWW_PARAMS} && $linker + | xargs -0 -I {} swww img "{}" ${SWWW_PARAMS} && sleep $INTERVAL done } @@ -145,13 +144,13 @@ select_wall() { exit 1 fi images=$(find "$wallDIR" -maxdepth 1 -type f -printf "%f\x00icon\x1f$wallDIR/%f\n" | sort -n) - choice=$(echo -en "$images\nRandom Choice" | rofi -dmenu -i -show-icons -theme-str "$(build_theme 3 5 6)" config ~/dotfiles/rofi/config-wallpaper.rasi) + choice=$(echo -en "$images\nRandom Choice" | rofi -dmenu -i -show-icons -theme-str "$(build_theme 3 5 6)" -p "๓ฐธ‰ Wallpaper") if [ -n "$choice" ]; then if [ "$choice" = "Random Choice" ]; then choice=$(find "$wallDIR" -type f -maxdepth 1 -printf "%f\n" | shuf -n1) fi wallpaper="$wallDIR/${choice#*icon\x1f}" - swww img $SWWW_PARAMS1 "$wallpaper" && $linker + swww img $SWWW_PARAMS1 "$wallpaper" else echo "No wallpaper selected. Exiting." exit 0 @@ -207,7 +206,7 @@ gamemode() { else notify-send -e -u normal -i "$notif" "All animations normal" hyprctl keyword animations:enabled 1 - swww init && swww img "$HOME/dotfiles/rofi/.current_wallpaper" + swww query || swww init && $random_wall fi } @@ -259,30 +258,6 @@ notify-send -u low -i "$notif" "Keyboad Layout Changed to $new_layout" } ###################################### -# # -# Symbolic Linker for Wallpaper # -# # -###################################### - -linker() { -cache_dir="$HOME/.cache/swww/" # Define the path to the swww cache directory -monitor_outputs=("$cache_dir"/*) # Get a list of monitor outputs -ln_success=false # Initialize a flag to determine if the ln command was executed -for cache_file in "${monitor_outputs[@]}"; do # Loop through monitor outputs - if [ -f "$cache_file" ]; then # Check if the cache file exists for the current monitor output - wallpaper_path=$(<"$cache_file") # Get the wallpaper path from the cache file - if ln -sf "$wallpaper_path" "$HOME/.config/rofi/.current_wallpaper"; then # Copy the wallpaper to the location Rofi can access - ln_success=true # Set the flag to true upon successful execution - break # Exit the loop after processing the first found monitor output - fi - fi -done -if $ln_success; then # Add a message indicating whether the ln command was successful - echo "Wallpaper linked successfully." -else - echo "Failed to link wallpaper." -fi -} ###################################### # # diff --git a/config/hypr/scripts/Xmenu.sh b/config/hypr/scripts/Xmenu.sh index dae0b600..8bc501df 100755 --- a/config/hypr/scripts/Xmenu.sh +++ b/config/hypr/scripts/Xmenu.sh @@ -60,7 +60,7 @@ declare -A menu_options=( main() { choice=$( printf "%s\n" "${!menu_options[@]}" | - rofi -dmenu -config ~/.config/rofi/config-long.rasi \ + rofi -dmenu \ -p "Rofi" \ -mesg "Hello" \ -max-history-size 0 \ diff --git a/config/rofi/.current_wallpaper b/config/rofi/.current_wallpaper deleted file mode 120000 index e575d150..00000000 --- a/config/rofi/.current_wallpaper +++ /dev/null @@ -1 +0,0 @@ -/home/ja/Pictures/wallpapers/CuteCat.png \ No newline at end of file diff --git a/config/rofi/config-long.rasi b/config/rofi/config-long.rasi index 78892bd7..412f7c01 100644 --- a/config/rofi/config-long.rasi +++ b/config/rofi/config-long.rasi @@ -1,264 +1,126 @@ -/* ---- Configuration ---- */ -configuration { - modi: "drun,run,filebrowser"; - font: "Fira Code SemiBold 12"; - show-icons: true; - display-drun: "๐Ÿง"; - display-run: "๐Ÿ“ฆ"; - display-file-browser-extended: "๐Ÿ“‚"; - display-window: "๐Ÿ—„๏ธ"; - display-calc: "calc"; - drun-display-format: "{name}"; - hover-select: true; - me-select-entry: "MouseSecondary"; - me-accept-entry: "MousePrimary"; - window-format: "{w} ยท {c} ยท {t}"; - icon-theme: "Dracula"; - dpi: 1; -} + * { + bg: #1a1c23; + background-color: @bg; + } + + configuration { + show-icons: true; + icon-theme: "Draclua"; + location: 0; + font: "JetBrainsMono Nerd Font 12"; + display-drun: "Launch"; + } + + window { + width: 40%; + transparency: "real"; + orientation: vertical; + border-color: #7c8389; + border-radius: 10px; + } + + mainbox { + children: [inputbar, listview]; + } - * { - foreground: #f8f8f2; - background-color: #282a36; - active-background: #6272a4; - urgent-background: #ff5555; - urgent-foreground: #282a36; - selected-background: @active-background; - selected-urgent-background: @urgent-background; - selected-active-background: @active-background; - separatorcolor: @active-background; - bordercolor: @active-background; -} + // ELEMENT + // ----------------------------------- + + element { + padding: 4 12; + text-color: #1a1c23; + border-radius: 5px; + } + + element selected { + text-color: #ffffff; + background-color: #ffb454; + } + + element-text { + background-color: inherit; + text-color: inherit; + } + + element-icon { + size: 16 px; + background-color: inherit; + padding: 0 6 0 0; + alignment: vertical; + } + + element.selected.active { + background-color: #1a1c23; + text-color: #bbbdbe; + } + + element.alternate.normal { + background-color: #1a1c23; + text-color: #bbbdbe; + } -/* ---- Window ---- */ -window { - width: 700px; - x-offset: 0px; - y-offset: 0px; - spacing: 0px; - padding: 0px; - margin: 0px; - border: 2px; - border-color: @bordercolor; - cursor: "default"; - location: center; - anchor: center; - fullscreen: false; - border-radius: 12px; - enabled: true; -} + element.alternate.active { + background-color: #484d63; + text-color: #bbbdbe; + } -/* ---- Mainbox ---- */ -mainbox { - enabled: true; - orientation: vertical; - padding: 8px; - children: [ "inputbar", "imagebox", "mode-switcher" ]; - border-radius: 12px; - background-image: url("~/dotfiles/rofi/.current_wallpaper", height); + element.selected.normal { + background-color: #484d63; + text-color: #1a1c23; + } -} -/* ---- Imagebox ---- */ -imagebox { - background-color: transparent; - orientation: horizontal; - children: [ "listbox"]; -} + element.normal.active { + background-color: #1a1c23; + text-color: #bbbdbe; + } -/* ---- Listbox ---- */ -listbox { - spacing: 4px; - orientation: vertical; - children: ["listview" ]; - padding: 0px; - border-radius: 12px; - border-color: @bordercolor; - background-color: transparent; -} -/* ---- Dummy ---- */ -dummy { - background-color: transparent; -} + element.normal.normal { + background-color: #1a1c23; + text-color: #bbbdbe; + } -/* ---- Inputbar ---- */ -inputbar { - enabled: true; - padding: 2px; - text-color: @foreground; - spacing: 10px; - border-color: @bordercolor; - background-color: transparent; - children: [ "prompt", "textbox-prompt-colon","entry" ]; - border: 0px 0px 2px 0px; - border-radius: 12px; - border-color: @bordercolor; + element.normal.urgent { + background-color: #2d303b; + text-color: #1a1c23; + } -} -prompt { - enabled: true; - background-color: transparent; - padding: 6px 0px 6px 10px; - text-color: inherit; -} -textbox-prompt-colon { - enabled: true; - padding: 6px 0px 6px 10px; - expand: false; - str: ""; - text-color: inherit; - background-color: transparent; -} + listview { + columns: 1; + lines: 11; + padding: 8 0; + fixed-height: true; + fixed-columns: true; + fixed-lines: true; + border: 0; + scrollbar: false; + } -entry { - enabled: true; - padding: 6px 6px 6px 6px; - text-color: inherit; - cursor: text; - placeholder: ""; - placeholder-color: inherit; - background-color: transparent; -} + // INPUT BAR + //------------------------------------------------ -/* ---- Mode Switcher ---- */ -mode-switcher{ - orientation: horizontal; - enabled: true; - spacing: 20px; - padding: 2px; - background-color: transparent; - text-color: @foreground; -} + entry { + text-color: #f27893; + padding: 10 10 0 0; + margin: 0 -2 0 -6; + placeholder: "Search"; + } -button { - padding: 5px 5px 5px 5px; - border-radius: 10px; - background-color: @background; - text-color: inherit; - cursor: pointer; - border: 0px 0px 2px 0px; - border-color: @bordercolor; -} + inputbar { + background-image: url("~/dotfiles/hypr/assets/rofi.png", width); + padding: 240 0 0; + margin: 0 -2 0 0; + } -button selected { - background-color: @selected-background; - text-color: @foreground; - border: 1px; - border-color: @bordercolor; + prompt { + text-color: #bd93f9; + padding: 10 6 0 10; + margin: 0 -2 0 0; + } -} -/* ---- Listview ---- */ -listview { - enabled: true; - columns: 1; - lines: 9; - spacing: 4px; - padding: 4px; - dynamic: true; - cycle: true; - scrollbar: false; - layout: vertical; - reverse: false; - fixed-height: true; - fixed-columns: true; - background-color: transparent; - border-radius: 15px; - border: 0px; -} - -/* ---- Element ---- */ -element { - enabled: true; - padding: 5px; - margin: 2px; - cursor: pointer; - background-color: transparent; - border-radius: 10px; - border: 0px; -} - -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-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: 37px; - cursor: inherit; -} - -element-text { - background-color: transparent; - text-color: @foreground; - cursor: inherit; - vertical-align: 0.5; - horizontal-align: 0; -} - -/*****----- Message -----*****/ -message { - background-color: @background; - margin: 20px 0px 0px 0px; - border-radius: 12px; -} - -textbox { - padding: 10px; - background-color: @background; - text-color: @foreground; -} - -error-message { - padding: 15px; - border-radius: 12px; - background-color: @background; - text-color: @foreground; -} diff --git a/config/rofi/config-wallpaper.rasi b/config/rofi/config-wallpaper.rasi deleted file mode 100644 index e5e99040..00000000 --- a/config/rofi/config-wallpaper.rasi +++ /dev/null @@ -1,266 +0,0 @@ -/* ---- Configuration ---- */ -configuration { - modi: "drun,run,filebrowser"; - font: "Fira Code SemiBold 12"; - show-icons: true; - display-drun: "๐Ÿง"; - display-run: "๐Ÿ“ฆ"; - display-filebrowser: "๐Ÿ“‚"; - display-window: "๐Ÿ—„๏ธ"; - display-calc: "calc"; - drun-display-format: "{name}"; - hover-select: true; - me-select-entry: "MouseSecondary"; - me-accept-entry: "MousePrimary"; - window-format: "{w} ยท {c} ยท {t}"; - icon-theme: "Dracula"; - dpi: 1; -} - - - * { - foreground: #f8f8f2; - background-color: #282a36; - active-background: #6272a4; - urgent-background: #ff5555; - urgent-foreground: #282a36; - selected-background: @active-background; - selected-urgent-background: @urgent-background; - selected-active-background: @active-background; - separatorcolor: @active-background; - bordercolor: @active-background; -} - - -/* ---- Window ---- */ -window { - width: 750px; - x-offset: 0px; - y-offset: 0px; - spacing: 0px; - padding: 0px; - margin: 0px; - border: 2px; - border-color: @bordercolor; - cursor: "default"; - location: center; - anchor: center; - fullscreen: false; - border-radius: 12px; - enabled: true; -} - -/* ---- Mainbox ---- */ -mainbox { - enabled: true; - orientation: vertical; - padding: 8px; - children: [ "inputbar", "imagebox", "mode-switcher" ]; - border-radius: 12px; - background-image: url("~/dotfiles/rofi/.current_wallpaper", height); - -} - -/* ---- Imagebox ---- */ -imagebox { - background-color: transparent; - orientation: horizontal; - children: [ "listbox"]; -} - -/* ---- Listbox ---- */ -listbox { - spacing: 4px; - orientation: vertical; - children: ["listview" ]; - padding: 0px; - border-radius: 12px; - border-color: @bordercolor; - background-color: transparent; -} - -/* ---- Dummy ---- */ -dummy { - background-color: transparent; -} - -/* ---- Inputbar ---- */ -inputbar { - enabled: true; - padding: 2px; - text-color: @foreground; - spacing: 10px; - border-color: @bordercolor; - background-color: transparent; - children: [ "prompt", "textbox-prompt-colon","entry" ]; - border: 0px 0px 2px 0px; - border-radius: 12px; - border-color: @bordercolor; - -} - -prompt { - enabled: true; - background-color: transparent; - padding: 6px 0px 6px 10px; - text-color: inherit; -} - -textbox-prompt-colon { - enabled: true; - padding: 6px 0px 6px 10px; - expand: false; - str: ""; - text-color: inherit; - background-color: transparent; -} - -entry { - enabled: true; - padding: 6px 6px 6px 6px; - text-color: inherit; - cursor: text; - placeholder: ""; - placeholder-color: inherit; - background-color: transparent; -} - -/* ---- Mode Switcher ---- */ -mode-switcher{ - orientation: horizontal; - enabled: true; - spacing: 20px; - padding: 2px; - background-color: transparent; - text-color: @foreground; -} - -button { - padding: 5px 5px 5px 5px; - border-radius: 10px; - background-color: @background; - text-color: inherit; - cursor: pointer; - border: 0px 0px 2px 0px; - border-color: @bordercolor; -} - -button selected { - background-color: @selected-background; - text-color: @foreground; - border: 1px; - border-color: @bordercolor; - -} - - -/* ---- Listview ---- */ -listview { - enabled: true; - columns: 1; - lines: 4; - spacing: 4px; - padding: 4px; - dynamic: true; - cycle: true; - scrollbar: false; - layout: vertical; - reverse: false; - fixed-height: true; - fixed-columns: true; - background-color: transparent; - border-radius: 15px; - border: 0px; -} - -/* ---- Element ---- */ -element { - enabled: true; - padding: 5px; - margin: 2px; - cursor: pointer; - background-color: transparent; - border-radius: 10px; - border: 0px; -} - -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-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: 37px; - cursor: inherit; -} - -element-text { - background-color: transparent; - text-color: #e6ede8; - cursor: inherit; - vertical-align: 0.5; - horizontal-align: 0; -} - -/*****----- Message -----*****/ -message { - background-color: @background; - margin: 20px 0px 0px 0px; - border-radius: 12px; -} - -textbox { - padding: 10px; - background-color: @background; - text-color: @foreground; -} - -error-message { - padding: 15px; - border-radius: 12px; - background-color: @background; - text-color: @foreground; -} - diff --git a/config/rofi/config.rasi b/config/rofi/config.rasi index 1d846cf2..fd1b4d29 100644 --- a/config/rofi/config.rasi +++ b/config/rofi/config.rasi @@ -1,262 +1,126 @@ -/* ---- Configuration ---- */ -configuration { - modi: "drun,run,filebrowser"; - font: "Fira Code SemiBold 12"; - show-icons: true; - display-drun: "๐Ÿง"; - display-run: "๐Ÿ“ฆ"; - display-filebrowser: "๐Ÿ“‚"; - display-window: "๐Ÿ—„๏ธ"; - display-calc: "calc"; - drun-display-format: "{name}"; - hover-select: true; - me-select-entry: "MouseSecondary"; - me-accept-entry: "MousePrimary"; - window-format: "{w} ยท {c} ยท {t}"; - icon-theme: "Dracula"; - dpi: 1; -} + * { + bg: #1a1c23; + background-color: @bg; + } - * { - foreground: #f8f8f2; - background-color: #282a36; - active-background: #6272a4; - urgent-background: #ff5555; - urgent-foreground: #282a36; - selected-background: @active-background; - selected-urgent-background: @urgent-background; - selected-active-background: @active-background; - separatorcolor: @active-background; - bordercolor: @active-background; -} + configuration { + show-icons: true; + icon-theme: "Draclua"; + location: 0; + font: "JetBrainsMono Nerd Font 12"; + display-drun: "Launch"; + } -/* ---- Window ---- */ -window { - width: 600px; - x-offset: 0px; - y-offset: 0px; - spacing: 0px; - padding: 0px; - margin: 0px; - border: 2px; - border-color: @bordercolor; - cursor: "default"; - location: center; - anchor: center; - fullscreen: false; - border-radius: 12px; - enabled: true; -} + window { + width: 35%; + transparency: "real"; + orientation: vertical; + border-color: #7c8389; + border-radius: 10px; + } -/* ---- Mainbox ---- */ -mainbox { - enabled: true; - orientation: vertical; - padding: 8px; - children: [ "inputbar", "imagebox", "mode-switcher" ]; - border-radius: 12px; - background-image: url("~/dotfiles/rofi/.current_wallpaper", height); + mainbox { + children: [inputbar, listview]; + } -} -/* ---- Imagebox ---- */ -imagebox { - background-color: transparent; - orientation: horizontal; - children: [ "listbox"]; -} + // ELEMENT + // ----------------------------------- -/* ---- Listbox ---- */ -listbox { - spacing: 4px; - orientation: vertical; - children: ["listview" ]; - padding: 0px; - border-radius: 12px; - border-color: @bordercolor; - background-color: transparent; -} + element { + padding: 4 12; + text-color: #1a1c23; + border-radius: 5px; + } -/* ---- Dummy ---- */ -dummy { - background-color: transparent; -} + element selected { + text-color: #ffffff; + background-color: #ffb454; + } -/* ---- Inputbar ---- */ -inputbar { - enabled: true; - padding: 2px; - text-color: @foreground; - spacing: 10px; - border-color: @bordercolor; - background-color: transparent; - children: [ "prompt", "textbox-prompt-colon","entry" ]; - border: 0px 0px 2px 0px; - border-radius: 12px; - border-color: @bordercolor; + element-text { + background-color: inherit; + text-color: inherit; + } -} + element-icon { + size: 16 px; + background-color: inherit; + padding: 0 6 0 0; + alignment: vertical; + } -prompt { - enabled: true; - background-color: transparent; - padding: 6px 0px 6px 10px; - text-color: inherit; -} + element.selected.active { + background-color: #1a1c23; + text-color: #bbbdbe; + } -textbox-prompt-colon { - enabled: true; - padding: 6px 0px 6px 10px; - expand: false; - str: ""; - text-color: inherit; - background-color: transparent; -} + element.alternate.normal { + background-color: #1a1c23; + text-color: #bbbdbe; + } -entry { - enabled: true; - padding: 6px 6px 6px 6px; - text-color: inherit; - cursor: text; - placeholder: ""; - placeholder-color: inherit; - background-color: transparent; -} -/* ---- Mode Switcher ---- */ -mode-switcher{ - orientation: horizontal; - enabled: true; - spacing: 20px; - padding: 2px; - background-color: transparent; - text-color: @foreground; -} + element.alternate.active { + background-color: #484d63; + text-color: #bbbdbe; + } -button { - padding: 5px 5px 5px 5px; - border-radius: 10px; - background-color: @background; - text-color: inherit; - cursor: pointer; - border: 0px 0px 2px 0px; - border-color: @bordercolor; -} + element.selected.normal { + background-color: #484d63; + text-color: #1a1c23; + } -button selected { - background-color: @selected-background; - text-color: @foreground; - border: 1px; - border-color: @bordercolor; -} + element.normal.active { + background-color: #1a1c23; + text-color: #bbbdbe; + } -/* ---- Listview ---- */ -listview { - enabled: true; - columns: 2; - lines: 6; - spacing: 4px; - padding: 4px; - dynamic: true; - cycle: true; - scrollbar: false; - layout: vertical; - reverse: false; - fixed-height: true; - fixed-columns: true; - background-color: transparent; - border-radius: 15px; - border: 0px; -} -/* ---- Element ---- */ -element { - enabled: true; - padding: 5px; - margin: 2px; - cursor: pointer; - background-color: transparent; - border-radius: 10px; - border: 0px; -} + element.normal.normal { + background-color: #1a1c23; + text-color: #bbbdbe; + } -element normal.normal { - background-color: inherit; - text-color: @foreground; -} + element.normal.urgent { + background-color: #2d303b; + text-color: #1a1c23; + } -element normal.urgent { - background-color: inherit; - text-color: @foreground; -} -element normal.active { - background-color: inherit; - text-color: @foreground; -} -element selected.normal { - background-color: @selected-background; - text-color: @foreground; -} + listview { + columns: 2; + lines: 9; + padding: 8 0; + fixed-height: true; + fixed-columns: true; + fixed-lines: true; + border: 0; + scrollbar: false; + } -element selected.urgent { - background-color: inherit; - text-color: @foreground; -} + // INPUT BAR + //------------------------------------------------ -element selected.active { - background-color: inherit; - text-color: @foreground; -} + entry { + text-color: #f27893; + padding: 10 10 0 0; + margin: 0 -2 0 -6; + placeholder: "Search"; + } -element alternate.normal { - background-color: inherit; - text-color: @foreground; -} + inputbar { + background-image: url("~/dotfiles/hypr/assets/rofi.png", width); + padding: 200 0 0; + margin: 0 -2 0 0; + } -element alternate.urgent { - background-color: inherit; - text-color: @foreground; -} + prompt { + text-color: #bd93f9; + padding: 10 6 0 10; + margin: 0 -2 0 0; + } -element alternate.active { - background-color: inherit; - text-color: @foreground; -} -element-icon { - background-color: transparent; - text-color: inherit; - size: 37px; - cursor: inherit; -} - -element-text { - background-color: transparent; - text-color: @foreground; - cursor: inherit; - vertical-align: 0.5; - horizontal-align: 0; -} - -/*****----- Message -----*****/ -message { - background-color: @background; - margin: 20px 0px 0px 0px; - border-radius: 12px; -} - -textbox { - padding: 10px; - background-color: @background; - text-color: @foreground; -} - -error-message { - padding: 15px; - border-radius: 12px; - background-color: @background; - text-color: @foreground; -}