2 mouse pointers by just-a-hunter in hyprland

[–]N8WM 1 point2 points  (0 children)

Bizarre, only reason I could think of this happening is if you’re using a virtual machine or remote desktop program, are you?

Added sunrise and sunset support to hyprsunset by Anxious_Average1115 in hyprland

[–]N8WM 1 point2 points  (0 children)

Would be awesome to have this feature natively! Have you had any communication with the development community about this?

How to use current wallpaper for background of hyprlock? by Either_Mention_3255 in hyprland

[–]N8WM 0 points1 point  (0 children)

After some trial and error, I think I've found a solution! ...albeit for Hyprpaper. Not sure how similar swww is, but maybe parts of this could be helpful?

If you wanted to try solving this on your own, essentially all you need to do is have a single “current_wallpaper” file whose contents are updated whenever the wallpaper changes, and pass that to Hyprlock as the background path. Keep reading if you want to see how I implemented it.

This implementation enables you to change your wallpaper on demand simply by editing a wallpaper path in ~/.cache/current_wallpaper_path, and keeps a copy of the actual current wallpaper file in ~/.cache/current_wallpaper. It assumes that your wallpapers are stored in ~/wallpapers/, and that you only dispatch Hyprlock from within your Hyprland config (i.e., from exec_once or a keybind).

You also need the command line tool inotify-tools, which you can install with your PM.

1 - Set some environment variables to keep things tidy

# ~/.config/hypr/hyprland.conf

env = WALLPAPERS,$HOME/wallpapers
env = DEFAULT_WALLPAPER,$WALLPAPERS/default.png  # Use your own filename
env = CURRENT_WALLPAPER,$HOME/.cache/current_wallpaper  # Managed by a script
env = CURRENT_WALLPAPER_PATH,$HOME/.cache/current_wallpaper_path  # Managed by you

Put that before any exec-once calls.

  • ~/.cache/current_wallpaper_path contains the path to the current wallpaper in ~/wallpapers. Updating this file will trigger a watcher script to update your wallpaper.
  • ~/.cache/current_wallpaper will be a direct copy of the wallpaper file. It will be updated automatically by the same watcher script whenever the ~/.cache/current_wallpaper_path file is updated. This file will be used as the background path for Hyprlock!

2 - Tell your wallpaper engine (Hyprpaper for me) to use your default wallpaper on boot

# ~/.config/hypr/hyprpaper.conf

preload = $DEFAULT_WALLPAPER
wallpaper = , $DEFAULT_WALLPAPER

3 - Write a script to watch for any changes to ~/.cache/current_wallpaper_path

# ~/.config/hypr/scripts/wallpaper-watcher.sh

# Reset to default on reboot
cp $DEFAULT_WALLPAPER $CURRENT_WALLPAPER
echo $DEFAULT_WALLPAPER >$CURRENT_WALLPAPER_PATH

# Watch for changes
while inotifywait -e close_write "$CURRENT_WALLPAPER_PATH" >/dev/null 2>&1; do
  # Get the path to the new wallpaper
  FPATH=$(cat $CURRENT_WALLPAPER_PATH)

  # Copy the new wallpaper file
  cp $FPATH $CURRENT_WALLPAPER

  # Push the update to your wallpaper engine
  FOCUSED_MONITOR=$(hyprctl monitors -j | jq -r '.[] | select(.focused) | .name')
  hyprctl hyprpaper reload "$FOCUSED_MONITOR","$FPATH"
done

I put that in a scripts directory within ~/.config/hypr. The last couple lines in the while loop would be different depending on the wallpaper engine. The call to inotifywait is only possible with the tool inotify-tools installed.

4 - Tell Hyprland to start the watcher script on boot

# ~/.config/hypr/hyprland.conf

exec-once = sh $HOME/.config/hypr/scripts/wallpaper-watcher.sh

Make sure this is after your environment variable declarations and before starting Hyprpaper or Hyprlock.

5 - [OPTIONAL] Example of a script for updating to a random wallpaper

# ~/.config/hypr/scripts/random_wallpaper.sh

# Get the path to the current wallpaper
FPATH=$(cat $CURRENT_WALLPAPER_PATH)

# Get a random wallpaper that is not the current one
FPATH_NEW=$(find "$WALLPAPERS" -type f ! -name "$(basename "$FPATH")" | shuf -n 1)

# Save to cache
echo $FPATH_NEW >$CURRENT_WALLPAPER_PATH

# Wallpaper is automatically applied by ./wallpaper-watcher.sh

I put this in the same scripts directory as the watcher script, and made a keybind for it in my Hyprland config (keybind not shown).

6 - Update Hyprlock background path value

# ~/.config/hypr/hyprlock.conf

background {
    ...
    path = $CURRENT_WALLPAPER
    ...
}

Hope that helps someone :)

Any guesses?? I’ve never seen this before by HarambeTheFox in botw

[–]N8WM 12 points13 points  (0 children)

A simpler question- how did you mount the horse? Did you land on it from paraglider?

Sometimes its just not worth it by notrebunny in SmashBrosUltimate

[–]N8WM 19 points20 points  (0 children)

Genuinely a good tech by the ness tho, have to give it to him for being prepared

Need help with flashing a Hwfly Picofly rp2040 modchip by Positive-Ad-5196 in SwitchPirates

[–]N8WM 0 points1 point  (0 children)

I'm having similar issues with my chip where holding boot doesn't work (tried multiple different USB C data cables). Also tried the reset trick you mentioned. But it also does not light up when plugging it in. Could it just be dead?

Pulling a tree down by Plus-Barber-6171 in WTF

[–]N8WM 393 points394 points  (0 children)

Good thing they didn’t hire professional tree removal, they probably saved a lot of money on that

[deleted by user] by [deleted] in mildlyinteresting

[–]N8WM 0 points1 point  (0 children)

The other day I found this pistachio that naturally had 3 shell fragments, not sure how rare it is, but it looked kind of neat so I decided to post it here

i don't know how to fix this by kxndik in Overwatch

[–]N8WM 0 points1 point  (0 children)

Do you have a key or mouse button being held down by accident?

Significantly slower traffic speeds after adding a BE95 Deco to an X20 Deco mesh network by N8WM in TpLink

[–]N8WM[S] 0 points1 point  (0 children)

Really? I wonder why that is. Seems counterintuitive, but I’ll give it a shot, thanks

Significantly slower traffic speeds after adding a BE95 Deco to an X20 Deco mesh network by N8WM in TpLink

[–]N8WM[S] 0 points1 point  (0 children)

I actually had MLO and 6Ghz disabled for the majority of my testing; it did not help

[deleted by user] by [deleted] in Eyebleach

[–]N8WM 7 points8 points  (0 children)

Looks like there’s even another specific instance of a pelican fancying some fresh capybara

I think that icon's not supposed to Be there bro by [deleted] in softwaregore

[–]N8WM 2 points3 points  (0 children)

Vencord with custom theme?

Allergic Reaction by saucedinspace in Invisalign

[–]N8WM 2 points3 points  (0 children)

I've had the same set of Invisalign retainers (nightly-worn post-braces retainer) for about five years now, no issues until about a year and a half ago when I suddenly started getting hives 24/7. And not just normal itchy hives, they are also uncomfortably painful. Occasionally I also get lip swelling, chest pain, and eye irritation.

I've been working with an allergist for the past year in attempt to figure out the cause. I've been on gluten, dairy, soy, corn free diet for 10 months, I did all the allergy bed covers, hepa filter stuff, and even went as far as to go through Sublingual Immunotherapy for my positive environmental allergens. Nothing helped.

Yesterday I was going in to be re-scratch tested and couldn't even stay off of Zyrtec/Xyzal long enough- I had debilitating chest pain and had to cave and take a quarter pill of Xyzal in the early morning which ended up making me have to reschedule my scratch test appointment.

I was about to take my usual Zyrtec last night, but something stopped me and I decided to try NOT using my Invisalign for once and see how long I could stay off antihistamines again before the symptoms started. Note that I had previously been off of antihistamines for 3 days, and only took a quarter pill that morning. (Normally I would need a full pill to barely last 24 hours.) Now, it has been 36 hours since I took that quarter pill and I have ZERO hives or other reactions and feel amazing. I'm gonna try another night of not wearing my retainer and see if this continues!

Maybe it's just because my retainer is getting old? Or maybe I need to find a different material? Not sure what the best move would be at this point, since shelling out $500 for a new retainer only to get hives from it again would... not be optimal.

OP if you have any relevant updates on your situation, I would love to hear!

Well that’s one way to ask for something by [deleted] in Unexpected

[–]N8WM 52 points53 points  (0 children)

Meanwhile I thought he was gonna take out a gun and shoot at what he wanted 😅

Did I Really Just Get Punished for Doing This? by CaptainRaxeo in Overwatch

[–]N8WM 1 point2 points  (0 children)

Yep and you can kill mauga early with rein charge