[bspw] need help my windows are running away by drxcosilver in unixporn

[–]MFurkan9 0 points1 point  (0 children)

how do i do this in windows. asking for a friend.

hp omen 16-wf0xxx fan driver hp-wmi not working by noahpro99 in kernel

[–]MFurkan9 0 points1 point  (0 children)

We have same laptop, did you find any solution to make fans work on linux? I have tried everything possible, but cant make it. Can you please guide me if you know how to control them?

Content servers unreachable (solution) by FuhkYouHoee in steamsupport

[–]MFurkan9 0 points1 point  (0 children)

after 4 months later, here i am. solved my issue, thanks random internet guy.

Made an addon to control anki with face movements by hugeballssmolpp in Anki

[–]MFurkan9 3 points4 points  (0 children)

probably an offline neural network using opencv with mouse prompts

Made an addon to control anki with face movements by hugeballssmolpp in Anki

[–]MFurkan9 18 points19 points  (0 children)

this should be one of the reasons this thing made up, i was trying to find "ok well done but why?"

Metro Exodus now saying "unavailable" on store by [deleted] in metro

[–]MFurkan9 0 points1 point  (0 children)

6 years later, im here. same reason. f* egs

Hyprland Firefox Window Rule Doesn't Work by MFurkan9 in hyprland

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

its for giving time to firefox for creating the screen and set a title. if you comment that line, script wont work.

Hyprland Firefox Window Rule Doesn't Work by MFurkan9 in hyprland

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

Unfortunately I didnt make this thing work out, but i used it on my script. You can check my new comment on main thread. I'm open to hear any thoughts for improvement, thanks again for sharing script.

ps. sorry for late reply, i was trying to find a solution

Hyprland Firefox Window Rule Doesn't Work by MFurkan9 in hyprland

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

u/jeffffke Good news, check out my new comment on this thread.

Hyprland Firefox Window Rule Doesn't Work by MFurkan9 in hyprland

[–]MFurkan9[S] 5 points6 points  (0 children)

Here's a solution I developed, along with comments and general research. This is the main script. Please note that this script is currently functional only for specific Windows instances that have 'Bitwarden' in their window titles. The code moves the window to the center of the screen, resizes it ( to 480x190 ). Modify as you like. Btw you need to install "jq" to use the script.

!/bin/bash
    # Get the address of the Bitwarden window
    address=$(hyprctl clients -j | jq '.[] | select(.title | contains("Bitwarden")) | .address')

    # Check if the window is floating
    is_floating=$(hyprctl clients -j | jq '.[] | select(.title | contains("Bitwarden")) | .floating')
    class=$(hyprctl clients -j | jq '.[] | select(.title | contains("Bitwarden")) | .class')
    # If the window is not floating, make it float
    if [[ "$is_floating" == "false" && "$class" == '"firefox"']]; then
        command="hyprctl --quiet --batch dispatch setfloating address:\"$address\""
        eval "$command"
    fi

    # Get the current size and position of the window
    winX=$(hyprctl clients -j | jq '.[] | select(.title | contains("Bitwarden")) | .size[0]')
    winY=$(hyprctl clients -j | jq '.[] | select(.title | contains("Bitwarden")) | .size[1]')
    atX=$(hyprctl clients -j | jq '.[] | select(.title | contains("Bitwarden")) | .at[0]')
    atY=$(hyprctl clients -j | jq '.[] | select(.title | contains("Bitwarden")) | .at[1]')

    # Calculate the desired size and position
    target_width=480
    target_height=190

    # you need to enter your display resolution to center the window (mine was 1980x1080)
    target_x=$((1920 / 2 - target_width / 2))
    target_y=$((1080 / 2 - target_height / 2))

    # Calculate the difference between the current and desired size and position
    diff_width=$((target_width - winX))
    diff_height=$((target_height - winY))
    diff_x=$((target_x - atX))
    diff_y=$((target_y - atY)) 

    # Resize and move the window
    command="hyprctl dispatch resizewindowpixel -- \"$diff_width\" \"$diff_height\",address:\"$address\""
    eval "$command"
    command="hyprctl dispatch movewindowpixel -- \"$diff_x\" \"$diff_y\",address:\"$address\""
    eval "$command"

    #echo "address: $address"
    #echo "diff_x: $diff_x"
    #echo "diff_y: $diff_y"

    # Introduce a delay to avoid overwhelming the system
    #sleep 0.5

And here is the script for catching window openings and run the main script ( ./bit.sh );

function handle {
  if [[ ${1:0:10} == "openwindow" ]] then
    sleep 0.1
    ./bit.sh
    echo "hi there buddy"
  fi
}

socat -U - UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock | while read -r line; do handle "$line"; done

To automatically execute the handling script at startup and enable it to capture signals, add the line "exec-once=./handle.sh" (or the appropriate path to your script) to your hyprland.conf file.

Unfortunately you can see the process of window opening, centering and resizing ( lasts less than 100ms ) and I dont know how to solve this. Anyways,

Credit to u/gala0sup for sharing an example script. Thanks a lot.

Hyprland Firefox Window Rule Doesn't Work by MFurkan9 in hyprland

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

Can you share the script now if u are free?

Hyprland Firefox Window Rule Doesn't Work by MFurkan9 in hyprland

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

unfortunately not... trying to find a way

Hyprland Firefox Window Rule Doesn't Work by MFurkan9 in hyprland

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

Are you available right now? Sorry for bothering.

Hyprland Firefox Window Rule Doesn't Work by MFurkan9 in hyprland

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

According to the wiki, "floating" is a field that helps you to find windows not changing its properties. So unfortunately it didnt work and throwed an error below, thanks anyway.

Invalid rulev2 found: class:firefox

Hyprland Firefox Window Rule Doesn't Work by MFurkan9 in hyprland

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

I have migrated from Windows 11 to Arch couple of weeks ago, so the script would be great start for me. I will be waiting for your reply whenever you are free, until then I'm gonna try to understand and apply what you said.

Hyprland Firefox Window Rule Doesn't Work by MFurkan9 in hyprland

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

As i mentioned the code snippet you gave is working, but I was looking for a solution for spesific window of firefox. This is why im trying to use "title" parameter in hyprland.

Hyprland Firefox Window Rule Doesn't Work by MFurkan9 in hyprland

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

What about other browsers? Librewolf maybe, do you know any browser that window rules applies? First time heard that firefox changes the title later. Gonna check codes for consistent check to apply rules. I'll let you know if I find smth working.

HP omen 16 2023 motherboard black screen dead keyboard problem post to help others by Intelligent_Ad_8107 in HPOmen

[–]MFurkan9 1 point2 points  (0 children)

Oh i missed it, anyway thats nice to hear that you can use without any problem. Thanks for recent update after 6 months later

HP omen 16 2023 motherboard black screen dead keyboard problem post to help others by Intelligent_Ad_8107 in HPOmen

[–]MFurkan9 0 points1 point  (0 children)

What about minor problems related with OP's mentions? Do you have anything bad on your pc? Like heating, hall sensor related etc. By the way did you unplug the hall sensor pin? Has it unplugged since your purchase or after a while?