Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] hyprctl hyprpaper demolishes nwg-panel #312

Open
ser opened this issue Jul 9, 2024 · 0 comments
Open

[BUG] hyprctl hyprpaper demolishes nwg-panel #312

ser opened this issue Jul 9, 2024 · 0 comments

Comments

@ser
Copy link

ser commented Jul 9, 2024

this example script

#!/bin/sh

WALLPAPER_DIR="${HOME}/Pictures/wallpapers"

OLDIFS=$IFS
IFS=$'\n'
for wallpaper in $(hyprctl hyprpaper listloaded); do
  hyprctl hyprpaper unload "$wallpaper"
done
IFS=$OLDIFS

for display in $(hyprctl monitors | grep "Monitor" | cut -d " " -f 2); do
  wallpaper="$(find "$WALLPAPER_DIR" -type f | shuf -n 1)"
  hyprctl hyprpaper preload "$wallpaper"
  hyprctl hyprpaper wallpaper "$display,$wallpaper"
done

when run, makes nwg-panel disappearing from one monitor and renders nwg-menu not responding on others.

the only fix i see is to click nwg-panel "panel settings", go to one of configs, and click "apply/restart". BTW, how can I do the same from command line only? Does it just send SIGINT to the process?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant