eww set default window image
This commit is contained in:
parent
9348423d5b
commit
0dcb6cb2d7
1 changed files with 6 additions and 2 deletions
|
@ -19,7 +19,11 @@ trun() {
|
|||
img() {
|
||||
window=$1
|
||||
windows_images_dir=$HOME/.config/hyprmsn/windows
|
||||
echo "$windows_images_dir/$(ls $windows_images_dir | grep -F $window)"
|
||||
window_img="$windows_images_dir/$(ls $windows_images_dir | grep -F $window)"
|
||||
if [[ $window_img == "$windows_images_dir/" ]]; then
|
||||
window_img="$windows_images_dir/default.png"
|
||||
fi
|
||||
echo "$window_img"
|
||||
}
|
||||
|
||||
word_per_line=3
|
||||
|
@ -38,4 +42,4 @@ for window in $windows; do
|
|||
echo $eww
|
||||
done
|
||||
IFS=$OLD_IFS
|
||||
echo ")"
|
||||
echo ")"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue