xprop for Sway.
Find a file
alterNERDtive 7ffbc27fe0
Some checks failed
Create release on tag push / Create release (push) Failing after 39s
docs: CHANGELOG
2024-05-03 23:40:00 +02:00
.forgejo/workflows chore: forgejo workflows 2024-02-18 23:34:19 +01:00
.github ci: changed release tag scheme 2024-02-12 18:18:35 +01:00
CHANGELOG.md docs: CHANGELOG 2024-05-03 23:40:00 +02:00
LICENSE chore: LICENSE file 2024-02-12 17:27:44 +01:00
Makefile Fix loader script not following SHAREDIR when installing 2024-01-16 01:21:22 +01:00
README.md feat: swaykill 2024-02-16 21:13:40 +01:00
swaykill feat: swaykill 2024-02-16 21:13:40 +01:00
swayprop fix: jq 1.7 syntax 2024-05-03 23:33:52 +02:00

swayprop

Xprop for Sway. Inspired by https://github.com/vilari-mickopf/hyprprop, but shares almost no code with it anymore.

Dependencies

  • Sway
  • jq for parsing swaymsg output
  • slurp for window selection

Installation

Basher

basher-install

basher install git.alternerd.tv/alterNERDtive/swayprop

(Github mirror: basher install alterNERDtive/swayprop)

Manual

Clone the repository (git clone https://git.alternerd.tv/alterNERDtive/swayprop.git) or download and extract a repository archive, then link / copy swayprop into your PATH.

Usage

Just run

swayprop

and select desired window.

The tool will print the selected Windows JSON output from swaymsg -t get_tree, or nothing on error/cancel.

If you cancel the selection it will exit 1, in case slurp errors out it relays the exit code.

In case you miss xkill, run

swaykill

:)