mirror of
https://github.com/bvanroll/_dotfiles.git
synced 2025-08-29 20:12:42 +00:00
init
This commit is contained in:
32
.config/i3blocks/sway-focusedwindow/README.md
Normal file
32
.config/i3blocks/sway-focusedwindow/README.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# sway-focusedwindow
|
||||
|
||||
Displays title of focused window in [Sway WM](https://swaywm.org/)
|
||||
|
||||

|
||||
|
||||
# Requirements
|
||||
|
||||
Dependencies: swaymsg (typically distributed along with sway), [jq](https://github.com/stedolan/jq)
|
||||
|
||||
# Command line arguments
|
||||
|
||||
```bash
|
||||
sway-focusedwindow [maxlen [alignment]]
|
||||
```
|
||||
|
||||
First argument is maximum line length. `0` means unlimited length, i.e. output line can occupy all available space.
|
||||
Default value: `0`.
|
||||
|
||||
Second argument is alignment. If output line length is lesser than maximum line length, then it will be aligned.
|
||||
Possible values: `left`, `right`, `center`.
|
||||
Default value: `center`.
|
||||
|
||||
# Installation
|
||||
|
||||
The recommended i3blocks config is
|
||||
|
||||
```INI
|
||||
[sway-focusedwindow]
|
||||
command=$SCRIPT_DIR/sway-focusedwindow 200 center
|
||||
interval=persist
|
||||
```
|
Reference in New Issue
Block a user