Resize the wallpaper to fix exactly my screen
This commit is contained in:
parent
7c0f074bd7
commit
113421ccef
3 changed files with 1 additions and 2 deletions
|
@ -1,13 +1,12 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
SCRIPTS="$HOME/.config/hypr/menu.list"
|
SCRIPTS="$HOME/.config/hypr/menu.list"
|
||||||
SCRIPT_PATH="$HOME/.config/hypr/scripts"
|
|
||||||
|
|
||||||
# Kill existing tofi instance if running
|
# Kill existing tofi instance if running
|
||||||
pkill -x tofi || {
|
pkill -x tofi || {
|
||||||
chosen=$(cut -d'=' -f1 "$SCRIPTS" | tofi)
|
chosen=$(cut -d'=' -f1 "$SCRIPTS" | tofi)
|
||||||
if [ -n "$chosen" ]; then
|
if [ -n "$chosen" ]; then
|
||||||
script=$(awk -F= -v sel="$chosen" '$1==sel {print $2}' "$SCRIPTS")
|
script=$(awk -F= -v sel="$chosen" '$1==sel {print $2}' "$SCRIPTS")
|
||||||
[ -n "$SCRIPT_PATH/$script" ] && eval "$SCRIPT_PATH/$script" &
|
[ -n "$script" ] && eval "$script" &
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 72 KiB |
Binary file not shown.
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 98 KiB |
Loading…
Add table
Add a link
Reference in a new issue