aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr
diff options
context:
space:
mode:
authorDon Williams <don.e.williams@gmail.com>2026-07-22 01:41:29 -0400
committerPinapelz <yukais@pinapelz.com>2026-08-29 21:40:35 -0700
commit91e9e32cbc77ea39eb5b3d96b5f773791cd897e1 (patch)
tree1314186f9a05e0ddca05f09bb4c62b5d36c6783c /config/hypr
parentadb7cc61d65ca1ade2fa992dd3973aa0f154f472 (diff)
In LUA mode background image in rofi not updated
Update scripts to makes sure they read current background image Signed-off-by: Don Williams <don.e.williams@gmail.com> On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/configs/system_keybinds.lua modified: config/hypr/scripts/Animations.sh modified: config/hypr/scripts/ChangeStarshipPrompt.sh modified: config/hypr/scripts/ClipManager.sh modified: config/hypr/scripts/Ghostty_themes.sh modified: config/hypr/scripts/HyprLayoutModule.sh modified: config/hypr/scripts/HyprlockWallpaperSelect.sh modified: config/hypr/scripts/JavaManager.sh modified: config/hypr/scripts/KeyBinds.sh modified: config/hypr/scripts/Kitty_themes.sh modified: config/hypr/scripts/Kool_Quick_Settings.sh modified: config/hypr/scripts/MonitorProfiles.sh modified: config/hypr/scripts/RofiEmoji.sh modified: config/hypr/scripts/RofiSearch.sh modified: config/hypr/scripts/RofiThemeSelector.sh modified: config/hypr/scripts/ThemeChanger.sh modified: config/hypr/scripts/WallpaperEffects.sh modified: config/hypr/scripts/WallpaperSelect.sh modified: config/hypr/scripts/WaybarLayout.sh modified: config/hypr/scripts/WaybarStyles.sh modified: config/hypr/scripts/ZshChangeTheme.sh modified: config/hypr/scripts/rofi-emacs-keybinds modified: config/hypr/scripts/rofi-ssh-menu.sh modified: config/hypr/scripts/sddm_wallpaper.sh
Diffstat (limited to 'config/hypr')
-rw-r--r--config/hypr/configs/system_keybinds.lua9
-rwxr-xr-xconfig/hypr/scripts/Animations.sh1
-rwxr-xr-xconfig/hypr/scripts/ChangeStarshipPrompt.sh1
-rwxr-xr-xconfig/hypr/scripts/ClipManager.sh1
-rwxr-xr-xconfig/hypr/scripts/Ghostty_themes.sh1
-rwxr-xr-xconfig/hypr/scripts/HyprLayoutModule.sh1
-rwxr-xr-xconfig/hypr/scripts/HyprlockWallpaperSelect.sh1
-rwxr-xr-xconfig/hypr/scripts/JavaManager.sh1
-rwxr-xr-xconfig/hypr/scripts/KeyBinds.sh1
-rwxr-xr-xconfig/hypr/scripts/Kitty_themes.sh1
-rwxr-xr-xconfig/hypr/scripts/Kool_Quick_Settings.sh3
-rwxr-xr-xconfig/hypr/scripts/MonitorProfiles.sh1
-rwxr-xr-xconfig/hypr/scripts/RofiEmoji.sh1
-rwxr-xr-xconfig/hypr/scripts/RofiSearch.sh1
-rwxr-xr-xconfig/hypr/scripts/RofiThemeSelector.sh1
-rwxr-xr-xconfig/hypr/scripts/ThemeChanger.sh1
-rwxr-xr-xconfig/hypr/scripts/WallpaperEffects.sh1
-rwxr-xr-xconfig/hypr/scripts/WallpaperSelect.sh1
-rwxr-xr-xconfig/hypr/scripts/WaybarLayout.sh1
-rwxr-xr-xconfig/hypr/scripts/WaybarStyles.sh1
-rwxr-xr-xconfig/hypr/scripts/ZshChangeTheme.sh1
-rwxr-xr-xconfig/hypr/scripts/rofi-emacs-keybinds1
-rwxr-xr-xconfig/hypr/scripts/rofi-ssh-menu.sh1
-rwxr-xr-xconfig/hypr/scripts/sddm_wallpaper.sh1
24 files changed, 32 insertions, 2 deletions
diff --git a/config/hypr/configs/system_keybinds.lua b/config/hypr/configs/system_keybinds.lua
index af0a3d17..79407eac 100644
--- a/config/hypr/configs/system_keybinds.lua
+++ b/config/hypr/configs/system_keybinds.lua
@@ -234,7 +234,7 @@ end
bind(
"SUPER",
"D",
- exec_cmd("pkill rofi || true && rofi -show drun -modi drun, filebrowser, run, window"),
+ exec_cmd("pkill rofi || true; $HOME/.config/hypr/scripts/RofiFocusedWallpaperLink.sh >/dev/null 2>&1 || true; rofi -show drun -modi drun, filebrowser,run,window"),
{ description = "app launcher" }
)
bind("SUPER", "B", exec_cmd('xdg-open "https://"'), { description = "open default browser" })
@@ -262,7 +262,12 @@ bind("SUPER", "H", exec_cmd("$HOME/.config/hypr/scripts/KeyHints.sh"), { descrip
bind("SUPER ALT", "R", exec_cmd("$HOME/.config/hypr/scripts/Refresh.sh"), { description = "refresh bar and menus" })
bind("SUPER ALT", "E", exec_cmd("$HOME/.config/hypr/scripts/RofiEmoji.sh"), { description = "emoji menu" })
bind("SUPER", "S", exec_cmd("$HOME/.config/hypr/scripts/RofiSearch.sh"), { description = "web search" })
-bind("SUPER CTRL", "S", exec_cmd("rofi -show window"), { description = "window switcher" })
+bind(
+ "SUPER CTRL",
+ "S",
+ exec_cmd("$HOME/.config/hypr/scripts/RofiFocusedWallpaperLink.sh >/dev/null 2>&1 || true; rofi -show window"),
+ { description = "window switcher" }
+)
bind("SUPER ALT", "O", exec_cmd("$HOME/.config/hypr/scripts/ChangeBlur.sh"), { description = "toggle blur" })
bind("SUPER SHIFT", "G", exec_cmd("$HOME/.config/hypr/scripts/GameMode.sh"), { description = "toggle game mode" })
bind(
diff --git a/config/hypr/scripts/Animations.sh b/config/hypr/scripts/Animations.sh
index ae93429b..b65b9f67 100755
--- a/config/hypr/scripts/Animations.sh
+++ b/config/hypr/scripts/Animations.sh
@@ -45,6 +45,7 @@ if [[ -z "$animations_list" ]]; then
fi
# Rofi Menu
+"${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
chosen_file=$(echo "$animations_list" | rofi -i -dmenu -config "$rofi_theme" -mesg "$msg")
# Check if a file was selected
diff --git a/config/hypr/scripts/ChangeStarshipPrompt.sh b/config/hypr/scripts/ChangeStarshipPrompt.sh
index 44e50936..6d489754 100755
--- a/config/hypr/scripts/ChangeStarshipPrompt.sh
+++ b/config/hypr/scripts/ChangeStarshipPrompt.sh
@@ -41,6 +41,7 @@ rofi_options=("${available_prompts[@]}")
if [[ -f "$BACKUP_FILE" ]]; then
rofi_options+=("$RESTORE_LABEL")
fi
+"${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
selection="$(printf '%s\n' "${rofi_options[@]}" | rofi -dmenu -i -p "Select Starship Prompt" -mesg "Select Starship Prompt" -theme "$ROFI_THEME")"
diff --git a/config/hypr/scripts/ClipManager.sh b/config/hypr/scripts/ClipManager.sh
index 19e15fd6..b68d98f5 100755
--- a/config/hypr/scripts/ClipManager.sh
+++ b/config/hypr/scripts/ClipManager.sh
@@ -20,6 +20,7 @@ if pidof rofi > /dev/null; then
fi
while true; do
+ "${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
result=$(
rofi -i -dmenu \
-kb-custom-1 "Control-Delete" \
diff --git a/config/hypr/scripts/Ghostty_themes.sh b/config/hypr/scripts/Ghostty_themes.sh
index 7eef6c1c..1b0e1f9e 100755
--- a/config/hypr/scripts/Ghostty_themes.sh
+++ b/config/hypr/scripts/Ghostty_themes.sh
@@ -95,6 +95,7 @@ else
done
fi
+"${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
choice=$(
printf "%s\n" "${menu_entries[@]}" |
rofi -i -dmenu -p "Ghostty Theme" "${rofi_config_args[@]}" -mesg "Select a theme to apply" -selected-row "$current_selection_index"
diff --git a/config/hypr/scripts/HyprLayoutModule.sh b/config/hypr/scripts/HyprLayoutModule.sh
index 14e3b524..4948acaa 100755
--- a/config/hypr/scripts/HyprLayoutModule.sh
+++ b/config/hypr/scripts/HyprLayoutModule.sh
@@ -107,6 +107,7 @@ show_menu() {
return 0
fi
+ "${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
choice="$(printf '%s\n' "${options[@]}" | rofi -i -dmenu -p "Workspace layout" -mesg "Select layout for this workspace" -selected-row "$default_row" -config "$rofi_config")"
[[ -z "$choice" ]] && exit 0
diff --git a/config/hypr/scripts/HyprlockWallpaperSelect.sh b/config/hypr/scripts/HyprlockWallpaperSelect.sh
index a139ca36..f72cf22d 100755
--- a/config/hypr/scripts/HyprlockWallpaperSelect.sh
+++ b/config/hypr/scripts/HyprlockWallpaperSelect.sh
@@ -314,6 +314,7 @@ set_hyprlock_wallpaper() {
}
main() {
+ "${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
choice=$(menu | $rofi_command)
choice=$(echo "$choice" | xargs)
diff --git a/config/hypr/scripts/JavaManager.sh b/config/hypr/scripts/JavaManager.sh
index 8f8f5612..41b4b221 100755
--- a/config/hypr/scripts/JavaManager.sh
+++ b/config/hypr/scripts/JavaManager.sh
@@ -202,6 +202,7 @@ generate_list() {
# --- 6. rofi ---
THEME="${XDG_CONFIG_HOME:-$HOME/.config}/rofi/config.rasi"
+"${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
SELECTION=$(generate_list | rofi -dmenu -i \
-p "󰒓 Java" \
diff --git a/config/hypr/scripts/KeyBinds.sh b/config/hypr/scripts/KeyBinds.sh
index aff7b808..b0c400e5 100755
--- a/config/hypr/scripts/KeyBinds.sh
+++ b/config/hypr/scripts/KeyBinds.sh
@@ -68,4 +68,5 @@ if [[ -f "/tmp/hypr_keybind_suggestions_file" ]]; then
fi
# use rofi to display the keybinds
+"${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
printf '%s\n' "$display_keybinds" | rofi -dmenu -i -config "$rofi_theme" -mesg "$msg"
diff --git a/config/hypr/scripts/Kitty_themes.sh b/config/hypr/scripts/Kitty_themes.sh
index 0de21f8c..5d6445e9 100755
--- a/config/hypr/scripts/Kitty_themes.sh
+++ b/config/hypr/scripts/Kitty_themes.sh
@@ -163,6 +163,7 @@ while true; do
done
rofi_input_list_trimmed="${rofi_input_list%\\n}"
+ "${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
chosen_selection_from_rofi=$(echo -e "$rofi_input_list_trimmed" |
rofi -dmenu -i \
-no-custom \
diff --git a/config/hypr/scripts/Kool_Quick_Settings.sh b/config/hypr/scripts/Kool_Quick_Settings.sh
index 2c01a9b1..fa7e520b 100755
--- a/config/hypr/scripts/Kool_Quick_Settings.sh
+++ b/config/hypr/scripts/Kool_Quick_Settings.sh
@@ -236,6 +236,7 @@ rainbow_borders_menu() {
# Build options and prompt
local options="Disable Rainbow Borders\nWallust Color\nOriginal Rainbow\nGradient Flow"
local choice
+ "${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
choice=$(printf "%b" "$options" | rofi -i -dmenu -config "$rofi_theme" -mesg "Rainbow Borders: current = $current_display")
[[ -z "$choice" ]] && return
@@ -503,6 +504,7 @@ EOF
esac
local sub_choice=""
+ "${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
sub_choice=$(
{
printf "%s\n" "$options"
@@ -535,6 +537,7 @@ EOF
main() {
local quick_settings_monitor choice
quick_settings_monitor="$(get_context_monitor_name)"
+ "${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
choice=$(
show_main_menu | rofi -i -dmenu -config "$rofi_theme" \
diff --git a/config/hypr/scripts/MonitorProfiles.sh b/config/hypr/scripts/MonitorProfiles.sh
index 09467e76..f77dca45 100755
--- a/config/hypr/scripts/MonitorProfiles.sh
+++ b/config/hypr/scripts/MonitorProfiles.sh
@@ -71,6 +71,7 @@ if [[ -z "$mon_profiles_list" ]]; then
fi
# Rofi Menu
+"${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
chosen_file=$(echo "$mon_profiles_list" | rofi -i -dmenu -config "$rofi_theme" -mesg "$msg")
if [[ -n "$chosen_file" ]]; then
diff --git a/config/hypr/scripts/RofiEmoji.sh b/config/hypr/scripts/RofiEmoji.sh
index 65463abc..175d17f4 100755
--- a/config/hypr/scripts/RofiEmoji.sh
+++ b/config/hypr/scripts/RofiEmoji.sh
@@ -15,6 +15,7 @@ if pidof rofi > /dev/null; then
pkill rofi
fi
+"${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
sed '1,/^# # DATA # #$/d' "$0" | \
rofi -i -dmenu -mesg "$msg" -config $rofi_theme | \
awk '{print $1}' | \
diff --git a/config/hypr/scripts/RofiSearch.sh b/config/hypr/scripts/RofiSearch.sh
index 05520ed0..ae71e85d 100755
--- a/config/hypr/scripts/RofiSearch.sh
+++ b/config/hypr/scripts/RofiSearch.sh
@@ -42,6 +42,7 @@ if pgrep -x "rofi" >/dev/null; then
fi
# Open Rofi and pass the selected query to xdg-open for the configured search engine
+"${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
query=$(printf '' | rofi -dmenu -config "$rofi_theme" -mesg "$msg")
if [[ -z "$query" ]]; then
diff --git a/config/hypr/scripts/RofiThemeSelector.sh b/config/hypr/scripts/RofiThemeSelector.sh
index 1841b4f5..5e90acc7 100755
--- a/config/hypr/scripts/RofiThemeSelector.sh
+++ b/config/hypr/scripts/RofiThemeSelector.sh
@@ -126,6 +126,7 @@ while true; do
rofi_input_list_trimmed="${rofi_input_list%\\n}"
# Launch Rofi and get user's choice
+ "${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
chosen_index_from_rofi=$(echo -e "$rofi_input_list_trimmed" |
rofi -dmenu -i \
-format 'i' \
diff --git a/config/hypr/scripts/ThemeChanger.sh b/config/hypr/scripts/ThemeChanger.sh
index f592300c..4f917e29 100755
--- a/config/hypr/scripts/ThemeChanger.sh
+++ b/config/hypr/scripts/ThemeChanger.sh
@@ -150,6 +150,7 @@ apply_hypr_border_fallback() {
# Prompt for theme; guard -e on cancel
set +e
+"${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
if [ -s "$theme_cache" ]; then
choice="$(rofi -dmenu -i -p 'Select Global Theme' < "$theme_cache")"
else
diff --git a/config/hypr/scripts/WallpaperEffects.sh b/config/hypr/scripts/WallpaperEffects.sh
index fc88ba1e..06519c5b 100755
--- a/config/hypr/scripts/WallpaperEffects.sh
+++ b/config/hypr/scripts/WallpaperEffects.sh
@@ -92,6 +92,7 @@ main() {
[[ "$effect" != "No Effects" ]] && options+=("$effect")
done
+ "${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
choice=$(printf "%s\n" "${options[@]}" | LC_COLLATE=C sort | rofi -dmenu -i -config $rofi_theme)
# Process user choice
diff --git a/config/hypr/scripts/WallpaperSelect.sh b/config/hypr/scripts/WallpaperSelect.sh
index a1684798..7f14acb0 100755
--- a/config/hypr/scripts/WallpaperSelect.sh
+++ b/config/hypr/scripts/WallpaperSelect.sh
@@ -213,6 +213,7 @@ apply_video_wallpaper() {
# Main function
main() {
+ "${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
choice=$(menu | $rofi_command)
choice=$(echo "$choice" | xargs)
RANDOM_PIC_NAME=$(echo "$RANDOM_PIC_NAME" | xargs)
diff --git a/config/hypr/scripts/WaybarLayout.sh b/config/hypr/scripts/WaybarLayout.sh
index 51e93bb3..97119d9a 100755
--- a/config/hypr/scripts/WaybarLayout.sh
+++ b/config/hypr/scripts/WaybarLayout.sh
@@ -44,6 +44,7 @@ main() {
done
# Launch rofi with the annotated list, pre‑selecting the active row
+ "${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
choice=$(printf '%s\n' "${options[@]}" \
| rofi -i -dmenu \
-config "$rofi_config" \
diff --git a/config/hypr/scripts/WaybarStyles.sh b/config/hypr/scripts/WaybarStyles.sh
index ab951e22..0c8089ff 100755
--- a/config/hypr/scripts/WaybarStyles.sh
+++ b/config/hypr/scripts/WaybarStyles.sh
@@ -46,6 +46,7 @@ main() {
done
# launch rofi with the annotated list and pre‑selected row
+ "${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
choice=$(printf '%s\n' "${options[@]}" \
| rofi -i -dmenu \
-config "$rofi_config" \
diff --git a/config/hypr/scripts/ZshChangeTheme.sh b/config/hypr/scripts/ZshChangeTheme.sh
index 21049317..08162485 100755
--- a/config/hypr/scripts/ZshChangeTheme.sh
+++ b/config/hypr/scripts/ZshChangeTheme.sh
@@ -37,6 +37,7 @@ menu() {
}
main() {
+ "${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
choice=$(menu | ${rofi_command})
# if nothing selected, script won't change anything
diff --git a/config/hypr/scripts/rofi-emacs-keybinds b/config/hypr/scripts/rofi-emacs-keybinds
index 6617d3b0..275c770b 100755
--- a/config/hypr/scripts/rofi-emacs-keybinds
+++ b/config/hypr/scripts/rofi-emacs-keybinds
@@ -10,4 +10,5 @@ if [[ ! -s "${CACHE_FILE}" ]]; then
exit 1
fi
+"${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
rofi -dmenu -i -p "Emacs Keybinds" -config "${ROFI_CONFIG}" < "${CACHE_FILE}"
diff --git a/config/hypr/scripts/rofi-ssh-menu.sh b/config/hypr/scripts/rofi-ssh-menu.sh
index 1b058f59..53167c0e 100755
--- a/config/hypr/scripts/rofi-ssh-menu.sh
+++ b/config/hypr/scripts/rofi-ssh-menu.sh
@@ -90,6 +90,7 @@ if pgrep -x "rofi" >/dev/null 2>&1; then
pkill rofi
fi
+"${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
selection="$(printf '%s\n' "${menu_entries}" | rofi -dmenu -i -p "SSH" -mesg "${MSG}" -config "${ROFI_CONFIG}")"
if [[ -z "${selection}" ]]; then
diff --git a/config/hypr/scripts/sddm_wallpaper.sh b/config/hypr/scripts/sddm_wallpaper.sh
index f30bac9b..dfb5a232 100755
--- a/config/hypr/scripts/sddm_wallpaper.sh
+++ b/config/hypr/scripts/sddm_wallpaper.sh
@@ -509,6 +509,7 @@ rofi_cmd=(rofi -i -show -dmenu -mesg "$menu_message" -theme-str "$rofi_override"
if [[ -f "$rofi_theme" ]]; then
rofi_cmd+=(-config "$rofi_theme")
fi
+"${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true
choice="$(menu | "${rofi_cmd[@]}")"
choice="${choice#"${choice%%[![:space:]]*}"}"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage