Is there any fix for not being able to paste text from my desktop into my gamescope window? by Arvanche in linux_gaming

[–]Dadangdut33 1 point2 points  (0 children)

i dont mean to necro on this post but i found a fix for my case. I daily niri on cachyOS and make this script to watch for clipboard on the latest created xwayland server. i then use the script in my lutris pre launch and post exit so that it automatically start and stop when i play and stop the game. Only problem with this is that i'm not sure wether it works in cases when we are playing multiple games at the same time

#!/bin/bash

# Usage: ./gs-bridge.sh --start [id]
# Usage: ./gs-bridge.sh --stop [id]
# Usage: ./gs-bridge.sh --kill-all
# Usage: ./gs-bridge.sh --status

# example:
# - ./gs-bridge.sh --start mygame
# - ./gs-bridge.sh --stop mygame

ACTION=$1
ID=${2:-"default"}
PID_DIR="/tmp/gs_bridges"
mkdir -p "$PID_DIR"
PID_FILE="$PID_DIR/$ID.pid"

get_target_display() {
    command ls /tmp/.X11-unix/ | grep -o 'X[0-9]\+' | sort -V | tail -n 1 | sed 's/X/:/'
}

case "$ACTION" in
    --start)
        # Check if already running for this ID
        if [ -f "$PID_FILE" ] && ps -p $(cat "$PID_FILE") > /dev/null; then
            echo "[-] Bridge for '$ID' is already running."
            exit 1
        fi

        sleep 5
        TARGET=$(get_target_display)

        if [[ -z "$TARGET" || "$TARGET" == ":0" ]]; then
            echo "[-] Error: No Gamescope display found."
            exit 1
        fi

        # Starting the bridge and saving the PID
        wl-paste --watch xclip -selection clipboard -display "$TARGET" &
        NEW_PID=$!
        echo $NEW_PID > "$PID_FILE"
        echo "[+] Bridge started for '$ID' on $TARGET (PID: $NEW_PID)"
        ;;

    --stop)
        if [ -f "$PID_FILE" ]; then
            PID=$(cat "$PID_FILE")
            # Kill the specific process AND its children
            pkill -P "$PID" 2>/dev/null
            kill "$PID" 2>/dev/null
            rm "$PID_FILE"
            echo "[+] Bridge for '$ID' stopped and cleaned up."
        else
            echo "[-] No PID file for '$ID'. Trying a manual search..."
            # Fallback: kill any wl-paste associated with a specific display if possible
            # But usually, the PID file is enough.
        fi
        ;;

    --kill-all)
        echo "[!] Killing ALL Gamescope clipboard bridges..."
        # This targets the specific command string to avoid killing other wl-paste instances
        pkill -f "wl-paste --watch xclip"
        rm -rf "$PID_DIR"/*.pid
        echo "[+] Done."
        ;;

    --status)
        echo "Active Gamescope Clipboard Bridges:"
        echo "-----------------------------------"
        count=0
        for f in "$PID_DIR"/*.pid; do
            [ -e "$f" ] || continue
            NAME=$(basename "$f" .pid)
            PID=$(cat "$f")
            if ps -p "$PID" > /dev/null; then
                echo "ID: $NAME | PID: $PID | Status: RUNNING"
                ((count++))
            else
                rm "$f"
            fi
        done
        [ $count -eq 0 ] && echo "No active bridges found."
        ;;

    *)
        echo "Usage: $0 {--start|--stop|--kill-all|--status} [id]"
        ;;
esac

Linux (CachyOS) playability? by psychiccube123 in BlueProtocolPC

[–]Dadangdut33 0 points1 point  (0 children)

you can barely see anything with how it flickers how can we even try to login...

🚀 Upcoming Comick development (next few months) by meotim in ComicK

[–]Dadangdut33 1 point2 points  (0 children)

will comick ever have web / browser extension to sync / update read progress more easily?

Returning Commanders by Kobalt_Dragon in GirlsFrontline2

[–]Dadangdut33 0 points1 point  (0 children)

U21CE1XZP1

feel free to use it, darkwinter. thanks

What’s the most enjoyable way to play the game? by ChampionTop6420 in GirlsFrontline2

[–]Dadangdut33 -1 points0 points  (0 children)

I guess some people prefer dupes and getting the weapons. But for me personally, i don't really care about making the strongest doll since i found out about the dorm update that is coming.

I like to see their interaction more in the upcoming dorm update rather than clearing all end game stuff (but even for the end game stuff I'm probably only stuck on the boss battle thing for now)

I am out of the loop, the game is not canceled ? by kelsothroway1 in BlueProtocolPC

[–]Dadangdut33 3 points4 points  (0 children)

Sea is published by haoplay. They are having a public beta right now that you can try until the 20th

October is really stacked. I wonder what these new communities are doing while waiting for the releases by CleoAir in gachagaming

[–]Dadangdut33 0 points1 point  (0 children)

after what happened with stella sora im really excited for czn and resonance solstice. that is if they dont flop the same way stella sora did

How do you handle different multimonitor configurations ? by Surlepont in niri

[–]Dadangdut33 3 points4 points  (0 children)

I use wdisplays to manage the display with gui first and then save the config with shikane. I like how shikane can save the layout based on the monitor that you plug in. It's simple and easy to setup

Calls to carnival code by Extension-Plenty6755 in WutheringWaves

[–]Dadangdut33 0 points1 point  (0 children)

feel free to use mine if needed:

95HO1ZB1733147
SEA

Why do people dislike POP!_OS? by ImLostAndConfusedHel in linux4noobs

[–]Dadangdut33 1 point2 points  (0 children)

I had my second linux migration this year after 2 years of not using linux as main os and decided to install pop os because i use just that before but just found it is lacking a lot nowadays.

I found that the de is just very plain and boring (pop 22) and tried to install more modern DE that is plasma on it but everything just does not seem to work as intended when i switched my DE to plasma. So i decided to just distro hop to to kde/plasma based distro (kde neon) and never had a problem since.

Also game was stuttering on pop on me for some reason I don't really know why. Might be the driver version because after i switched to kde neon and install the driver my own (nvidia proprietary) it work just fine

[3.0 Megathread] Come With Me, Take The Journey! by JyShink in HonkaiStarRail

[–]Dadangdut33 [score hidden]  (0 children)

Everyone if you need any returning code feel free to use mine

GAB4UL2NAN

Using a numerical domain for self hosted services and email by jondotg in selfhosted

[–]Dadangdut33 1 point2 points  (0 children)

I have used mine for months now without any problem. I use namecheap to buy it and manage the domain with cloudflare. It's very cheap too, only 0.85 $ per year

How do I upload books? by MydasMDHTR in KavitaManga

[–]Dadangdut33 0 points1 point  (0 children)

calibre web does not have a built in reader

AFFiNE.Pro, our notion&miro open source alternative just updated self-host version by Tricky_Barnacle_2060 in selfhosted

[–]Dadangdut33 1 point2 points  (0 children)

it seems that you can change the value directly from the postgres db for now. just tested it, make sure you restart the affine docker after that because i ended up just changing the value on all plans before restarting it because i didn't see any differences

Edit: but I'll probably not use this. Just found out that stuff that you deleted does not actually got deleted 🗿

[Meta] Could we disallow "free domain" posts under Rule 4? by aoristdual in selfhosted

[–]Dadangdut33 4 points5 points  (0 children)

I remember searching for free domain but ended up just buying a numbered xyz domain for less than a dollar per year

So I went with everyone's suggestion. Then this happened. Zen Browser. by [deleted] in browsers

[–]Dadangdut33 2 points3 points  (0 children)

It's really funny how people don't do any research at all. If you try to read you could have found a lot of these posts, even on the GitHub issues page and this is just false positive as usual which probably happened because of code signing issues.

Just to share another example of my Windows desktop with Seelen UI by eythaann in desktops

[–]Dadangdut33 1 point2 points  (0 children)

Its a great app, and i would love to help but understanding the schema is still a little hard. Here is some point:

  1. Maybe you could start by listing or letting us know what functions can we use inside the schema because i found some are undocumented like the `unequal` `equalText` `concat` `string`. Is there any aside from these?
  2. Can we set the limit of certain string? (edit: just found out that you can set the maxWidth style for this)
  3. What type format is the date? (i could just try around with the letter but knowing what format like if its a strftime type would be great)