{"id":50490695,"url":"https://github.com/hyprland-community/hypr_steam_watcher","last_synced_at":"2026-06-02T02:30:46.679Z","repository":{"id":341260511,"uuid":"1168794341","full_name":"hyprland-community/hypr_steam_watcher","owner":"hyprland-community","description":"Automatically tags newly launched Steam games in Hyprland [maintainer=@LennardKittner] ","archived":false,"fork":false,"pushed_at":"2026-04-19T16:48:36.000Z","size":1242,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-09T07:42:57.044Z","etag":null,"topics":["deamon","hyprland","steam"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyprland-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-27T20:03:15.000Z","updated_at":"2026-04-19T16:48:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hyprland-community/hypr_steam_watcher","commit_stats":null,"previous_names":["lennardkittner/hypr_steam_watcher","hyprland-community/hypr_steam_watcher"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hyprland-community/hypr_steam_watcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyprland-community%2Fhypr_steam_watcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyprland-community%2Fhypr_steam_watcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyprland-community%2Fhypr_steam_watcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyprland-community%2Fhypr_steam_watcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyprland-community","download_url":"https://codeload.github.com/hyprland-community/hypr_steam_watcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyprland-community%2Fhypr_steam_watcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33803734,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deamon","hyprland","steam"],"created_at":"2026-06-02T02:30:45.289Z","updated_at":"2026-06-02T02:30:46.674Z","avatar_url":"https://github.com/hyprland-community.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hypr_steam_watcher\n[![AUR Version](https://img.shields.io/aur/version/hypr_steam_watcher-git)](https://aur.archlinux.org/packages/hypr_steam_watcher-git)\n[![GitHub Release](https://img.shields.io/github/v/release/LennardKittner/hypr_steam_watcher)](https://github.com/LennardKittner/hypr_steam_watcher/releases)\n\nAutomatically tags newly launched Steam games in Hyprland so you can target or exclude them in window rules without manual configuration.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/LennardKittner/hypr_steam_watcher/main/screenshot/image.png\" width=\"700\"\u003e\n  \u003cbr\u003e\n  \u003cem\u003eVA-11 Hall-A tagged with steam_game and steam_app_id_447530\u003c/em\u003e\n\u003c/p\u003e\n\n`hypr_steam_watcher` listens for newly created windows in Hyprland and automatically tags Steam game windows with `steam_game` and `steam_app_id_\u003cgame-id\u003e`.\nThis allows you to exclude Steam games from certain window rules or define specific window rules that only apply to Steam games.\n```text\nwindowrule = match:tag negative:steam_game, opacity 0.9     # Everything except steam games is transparent\nwindowrule = match:tag steam_game, opacity no_blur          # Disable blur for steam games\nwindowrule = match:tag steam_game, render_unfocused true    # Forces the window to think it’s being rendered when it’s not visible\nwindowrule = match:tag steam_app_id_447530, immediate true  # Forces the game with app ID 447530 to allow tearing \nwindowrule = match:tag steam_game, idle_inhibit always      # Apps like hypridle will not fire\n```\n⚠️ Since the tag is applied after the game window appears, only [dynamic effects](https://wiki.hypr.land/Configuring/Window-Rules/#dynamic-effects) can be used.\n\n## Compatibility\nThe app works with both native Linux and Proton games.\n\n## Requirements\n- Hyprland (Wayland compositor)\n- Steam\n- Rust (only if building from source)\n\n## Installation\n\n### Release\nYou can download a prebuilt version from the [releases](https://github.com/LennardKittner/hypr_steam_watcher/releases).\nThen add `exec-once = hypr_steam_watcher` to your `hyprland.conf` to start it automatically.\n\n### AUR\nInstall it via the AUR:\n```fish\n yay -S hyperheadset-git\n```\nThen add `exec-once = hypr_steam_watcher` to your `hyprland.conf` to start it automatically.\n\n### Build from Source\nYou can build the project from source using cargo:\n```fish\ngit clone https://github.com/LennardKittner/hypr_steam_watcher.git\ncd hypr_steam_watcher\ncargo build --release\nsudo cp target/release/hypr_steam_watcher /usr/bin/\n```\nThen add `exec-once = hypr_steam_watcher` to your `hyprland.conf` to start it automatically.\n\n## Usage\n```text\nhypr_steam_watcher --help\nAutomatically tag newly launched Steam games in Hyprland.\n\nUsage: hypr_steam_watcher [OPTIONS] [callback] [callback-arguments]...\n\nArguments:\n  [callback]               A callback that will be called when a new window of a steam game appears.\n  [callback-arguments]...  Arguments for the callback. The PID and Steam app ID will be appended to the arguments.\n\nOptions:\n      --open-callback \u003copen-callback\u003e...\n          A callback that will be called when a new window of a steam game appears. The PID and Steam app ID will be appended to the arguments.\n      --close-callback \u003cclose-callback\u003e...\n          A callback that will be called when a new window of a steam game closes. The PID and Steam app ID will be appended to the arguments.\n  -h, --help\n          Print help\n  -V, --version\n          Print version\n```\nRunning `hypr_steam_watcher` without any arguments will automatically tag any Steam game windows launched while the watcher is running.\n\n### Callbacks\nYou can optionally run a command whenever a Steam game window opens or closes.\n\nThe simplest is to pass a callback directly:\n```fish\nhypr_steam_watcher echo game:\n```\nThis prints:\n```fish\ngame: \u003cpid\u003e \u003csteam_app_id\u003e \n```\neach time a steam game window opens.\n\nYou can also execute script:\n```fish\nhypr_steam_watcher ./activate_game_mod.sh\n```\nCallbacks are executed asynchronously so they will not block the watcher.\n\n#### More Complex Callbacks\nMore complex callbacks can be executed using `bash -c`:\n```fish\nhypr_steam_watcher bash -c 'sleep 2 \u0026\u0026 echo game: \"$0 $1\"'\n```\nThis prints the game information after a two-second delay\n\n#### Open / Close Callbacks\nTo register a callback on window closure, use the dedicated options:\n```fish\nhypr_steam_watcher --open-callback echo open: \\; --close-callback echo close:\n```\nOutput example:\n```text\nopen: \u003cpid\u003e \u003csteam_app_id\u003e\nclose: \u003cpid\u003e \u003csteam_app_id\u003e\n```\n\nMore complex callbacks are also possible:\n```fish\nhypr_steam_watcher \\\n  --open-callback bash -c 'sleep 2 \u0026\u0026 echo open: \"$0 $1\"' \\; \\\n  --close-callback  bash -c 'sleep 2 \u0026\u0026 echo close: \"$0 $1\"'\n```\nYou may specify only an open callback, only a close callback, or both.\n\n#### Callback Arguments\n\nThe callback receives:\n\n`[callback-arguments...] \u003cpid\u003e \u003csteam_app_id\u003e`\n\nWhere:\n- `pid`: process ID of the game\n- `steam_app_id`: Steam application ID of the game\n\n## Use Cases\n- Disable blur or transparency for games\n- Automatically move games to a dedicated workspace\n- Enable performance scripts automatically\n- Apply per-game rules using Steam App IDs\n\n## How it works\n**On open**\n- Uses the hyprland crate to detect new windows\n- Gets the PID\n- Checks whether the environment of the process contains `SteamAppId`\n- Uses the hyprland crate to tag the window\n- Save the window address to detect if the game is closed\n- Executes the callback (if provided)\n\n**On close**\n- Uses the hyprland crate to detect closing windows\n- check if the window address is know\n- if so execute the callback (if provided)\n\n## Troubleshooting \n- Ensure hypr_steam_watcher is running\n- Start it before launching the game\n\nIf a game is not tagged correctly, please open an issue and include:\n- Game name\n- Native or Proton\n- Output of `hyprctl activewindow`\n\n## License\nMIT see LICENSE file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyprland-community%2Fhypr_steam_watcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyprland-community%2Fhypr_steam_watcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyprland-community%2Fhypr_steam_watcher/lists"}