i3a 2.1.0__tar.gz → 2.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- i3a-2.2.0/PKG-INFO +150 -0
- {i3a-2.1.0 → i3a-2.2.0}/README.md +15 -0
- i3a-2.2.0/pyproject.toml +38 -0
- i3a-2.2.0/src/i3a/__init__.py +9 -0
- {i3a-2.1.0 → i3a-2.2.0}/src/i3a/master_stack.py +1 -1
- i3a-2.2.0/src/i3a/scale_cycle.py +129 -0
- {i3a-2.1.0 → i3a-2.2.0}/src/i3a/swallow.py +1 -1
- i3a-2.1.0/.gitignore +0 -22
- i3a-2.1.0/PKG-INFO +0 -128
- i3a-2.1.0/Pipfile +0 -10
- i3a-2.1.0/setup.cfg +0 -4
- i3a-2.1.0/setup.py +0 -53
- i3a-2.1.0/src/i3a/__init__.py +0 -0
- i3a-2.1.0/src/i3a/_version.py +0 -5
- i3a-2.1.0/src/i3a.egg-info/PKG-INFO +0 -128
- i3a-2.1.0/src/i3a.egg-info/SOURCES.txt +0 -18
- i3a-2.1.0/src/i3a.egg-info/dependency_links.txt +0 -1
- i3a-2.1.0/src/i3a.egg-info/entry_points.txt +0 -7
- i3a-2.1.0/src/i3a.egg-info/requires.txt +0 -1
- i3a-2.1.0/src/i3a.egg-info/top_level.txt +0 -1
- {i3a-2.1.0 → i3a-2.2.0}/LICENSE +0 -0
- {i3a-2.1.0 → i3a-2.2.0}/src/i3a/move_to_empty.py +0 -0
- {i3a-2.1.0 → i3a-2.2.0}/src/i3a/resize_compass.py +0 -0
- {i3a-2.1.0 → i3a-2.2.0}/src/i3a/swap.py +0 -0
i3a-2.2.0/PKG-INFO
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: i3a
|
|
3
|
+
Version: 2.2.0
|
|
4
|
+
Summary: Automatic manager for i3 tiling
|
|
5
|
+
Home-page: https://git.goral.net.pl/i3a.git
|
|
6
|
+
License: GPL-3.0-or-later
|
|
7
|
+
Author: Michal Goral
|
|
8
|
+
Author-email: dev@goral.net.pl
|
|
9
|
+
Requires-Python: >=3.7,<4.0
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
13
|
+
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
14
|
+
Classifier: Natural Language :: English
|
|
15
|
+
Classifier: Operating System :: POSIX
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
24
|
+
Classifier: Topic :: Utilities
|
|
25
|
+
Requires-Dist: i3ipc (>=2.2.1,<3.0.0)
|
|
26
|
+
Requires-Dist: importlib-metadata (>=4.0,<5.0) ; python_version < "3.8"
|
|
27
|
+
Project-URL: Repository, https://git.goral.net.pl/i3a.git
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
|
|
30
|
+
# i3a
|
|
31
|
+
|
|
32
|
+
i3a is a set of scripts used for automation of i3 and sway window manager
|
|
33
|
+
layouts.
|
|
34
|
+
|
|
35
|
+
## Automation list
|
|
36
|
+
|
|
37
|
+
### i3a-master-stack
|
|
38
|
+
|
|
39
|
+
Provides automatic master-stack layout, which is known from e.g. DWM. The
|
|
40
|
+
following kinds of the layout are possible:
|
|
41
|
+
|
|
42
|
+
- master-stack area with DWM-like stack (stack windows are split)
|
|
43
|
+
- master-stack area with i3-like stack (stack windows are actual stack)
|
|
44
|
+
|
|
45
|
+
To use, run `i3a-master-stack` with selected options (`i3a-master-stack
|
|
46
|
+
--help` for details). One way to run it automatically is via a systemd
|
|
47
|
+
user service.
|
|
48
|
+
|
|
49
|
+
1. Create the following file in _~/.config/systemd/user/i3a-master-stack_:
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
[Unit]
|
|
53
|
+
Description=i3a-master-stack
|
|
54
|
+
|
|
55
|
+
[Service]
|
|
56
|
+
ExecStart=%h/.local/bin/i3a-master-stack --stack=dwm --stack-size=35
|
|
57
|
+
Restart=on-failure
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
2. Add the following entry to your i3 or sway configuration file:
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
exec "systemctl --user restart i3a-master-stack.service"
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### i3a-swap
|
|
67
|
+
|
|
68
|
+
Swap currently focused window between master and stack areas from
|
|
69
|
+
i3a-master-stack (technically it doesn't require running i3-master-stack).
|
|
70
|
+
|
|
71
|
+
To use it, add the following binding to your i3 or sway configuration file:
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
bindsym $mod+f exec i3a-swap
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### i3a-swallow
|
|
78
|
+
|
|
79
|
+
Provides automatic "swallowing": when a program runs a child process, the
|
|
80
|
+
parent is automatically hidden (moved to the scratchpad), which looks like if
|
|
81
|
+
it was replaced, or "swallowed" by the child window. It is especially useful
|
|
82
|
+
for graphical programs (video player, document viewer etc.) run from the
|
|
83
|
+
terminal.
|
|
84
|
+
|
|
85
|
+
Provides a means of filtering both parent programs which can be swallowed and
|
|
86
|
+
child programs which can trigger swallowing.
|
|
87
|
+
|
|
88
|
+
To use it, run `i3a-swallow` with selected options. One way to run it
|
|
89
|
+
automatically is via a systemd user service.
|
|
90
|
+
|
|
91
|
+
1. Create the following file in _~/.config/systemd/user/i3a-swallow_:
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
[Unit]
|
|
95
|
+
Description=i3a-swallow
|
|
96
|
+
|
|
97
|
+
[Service]
|
|
98
|
+
ExecStart=%h/.local/bin/i3a-swallow
|
|
99
|
+
Restart=on-failure
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
2. Add the following entry to your i3 or sway configuration file:
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
exec "systemctl --user restart i3a-swallow.service"
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### i3a-move-to-empty
|
|
109
|
+
|
|
110
|
+
Moves currently focused container to the first empty workspace. Keep in mind
|
|
111
|
+
that this script relies on numbering of the workspaces.
|
|
112
|
+
|
|
113
|
+
To use it, add the following binding to your i3 or sway configuration file:
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
bindsym $mod+w exec i3a-move-to-empty
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### i3a-resize-compass
|
|
120
|
+
|
|
121
|
+
Extension of `resize` command. Currently focused window will automatically
|
|
122
|
+
grow or shrink in a direction passed to i3a-resize-compass.
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
bindsym $mod+Up exec i3a-resize-compass up 2ppt
|
|
126
|
+
bindsym $mod+Down exec i3a-resize-compass down 2ppt
|
|
127
|
+
bindsym $mod+Right exec i3a-resize-compass right 2ppt
|
|
128
|
+
bindsym $mod+Left exec i3a-resize-compass left 2ppt
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### i3a-scale-cycle
|
|
132
|
+
|
|
133
|
+
**sway-specific**
|
|
134
|
+
|
|
135
|
+
Changes output's scale factor to the next or previous one on a given list.
|
|
136
|
+
Current scale factor is then printed for each requested output (or all
|
|
137
|
+
available outputs if none was explicitly set).
|
|
138
|
+
|
|
139
|
+
`-f, --scale-factors` is a comma-separated list of factors which i3a-scale
|
|
140
|
+
will cycle so it must be escaped in configuration file:
|
|
141
|
+
|
|
142
|
+
```
|
|
143
|
+
bindsym $mod+s exec "i3a-scale -f 1.0,1.5,2.0 -o HDMI-1 -o HDMI-2 --next"
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## Installation
|
|
147
|
+
|
|
148
|
+
- [PyPI](https://pypi.org/project/i3a/)
|
|
149
|
+
- [AUR](https://aur.archlinux.org/packages/i3a/) (Arch Linux - unofficial)
|
|
150
|
+
|
|
@@ -99,6 +99,21 @@ bindsym $mod+Right exec i3a-resize-compass right 2ppt
|
|
|
99
99
|
bindsym $mod+Left exec i3a-resize-compass left 2ppt
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
+
### i3a-scale-cycle
|
|
103
|
+
|
|
104
|
+
**sway-specific**
|
|
105
|
+
|
|
106
|
+
Changes output's scale factor to the next or previous one on a given list.
|
|
107
|
+
Current scale factor is then printed for each requested output (or all
|
|
108
|
+
available outputs if none was explicitly set).
|
|
109
|
+
|
|
110
|
+
`-f, --scale-factors` is a comma-separated list of factors which i3a-scale
|
|
111
|
+
will cycle so it must be escaped in configuration file:
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
bindsym $mod+s exec "i3a-scale -f 1.0,1.5,2.0 -o HDMI-1 -o HDMI-2 --next"
|
|
115
|
+
```
|
|
116
|
+
|
|
102
117
|
## Installation
|
|
103
118
|
|
|
104
119
|
- [PyPI](https://pypi.org/project/i3a/)
|
i3a-2.2.0/pyproject.toml
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["poetry-core>=1.0"]
|
|
3
|
+
build-backend = "poetry.core.masonry.api"
|
|
4
|
+
|
|
5
|
+
[tool.poetry]
|
|
6
|
+
name = "i3a"
|
|
7
|
+
version = "2.2.0"
|
|
8
|
+
description = "Automatic manager for i3 tiling"
|
|
9
|
+
authors = ["Michal Goral <dev@goral.net.pl>"]
|
|
10
|
+
license = "GPL-3.0-or-later"
|
|
11
|
+
classifiers = [
|
|
12
|
+
"Development Status :: 5 - Production/Stable",
|
|
13
|
+
"Environment :: Console",
|
|
14
|
+
"Intended Audience :: End Users/Desktop",
|
|
15
|
+
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
|
16
|
+
"Natural Language :: English",
|
|
17
|
+
"Operating System :: POSIX",
|
|
18
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
19
|
+
"Topic :: Utilities",
|
|
20
|
+
]
|
|
21
|
+
readme = "README.md"
|
|
22
|
+
packages = [
|
|
23
|
+
{ include = "i3a", from = "src" },
|
|
24
|
+
]
|
|
25
|
+
repository = "https://git.goral.net.pl/i3a.git"
|
|
26
|
+
|
|
27
|
+
[tool.poetry.dependencies]
|
|
28
|
+
python = "^3.7"
|
|
29
|
+
i3ipc = "^2.2.1"
|
|
30
|
+
importlib-metadata = {version = "^4.0", python = "<3.8"}
|
|
31
|
+
|
|
32
|
+
[tool.poetry.scripts]
|
|
33
|
+
i3a-master-stack = "i3a.master_stack:main"
|
|
34
|
+
i3a-swallow = "i3a.swallow:main"
|
|
35
|
+
i3a-move-to-empty = "i3a.move_to_empty:main"
|
|
36
|
+
i3a-swap = "i3a.swap:main"
|
|
37
|
+
i3a-resize-compass = "i3a.resize_compass:main"
|
|
38
|
+
i3a-scale-cycle = "i3a.scale_cycle:main"
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
|
|
3
|
+
# Copyright (C) 2024 Michał Góral.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
import argparse
|
|
7
|
+
import logging as log
|
|
8
|
+
import sys
|
|
9
|
+
from decimal import Decimal, DecimalException
|
|
10
|
+
from functools import singledispatch
|
|
11
|
+
from typing import List
|
|
12
|
+
|
|
13
|
+
from i3ipc import Connection
|
|
14
|
+
|
|
15
|
+
from i3a import __version__ as version
|
|
16
|
+
|
|
17
|
+
DEFAULT_SCALES = "1,1.25,1.5,1.75,2"
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def prepare_args():
|
|
21
|
+
parser = argparse.ArgumentParser(
|
|
22
|
+
description="i3a-scale - manage scaling for HiDPI displays"
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
excl = parser.add_mutually_exclusive_group()
|
|
26
|
+
|
|
27
|
+
excl.add_argument("--next", action="store_true", help="cycle to the next scale")
|
|
28
|
+
excl.add_argument("--prev", action="store_true", help="cycle to the previous scale")
|
|
29
|
+
|
|
30
|
+
parser.add_argument(
|
|
31
|
+
"-f",
|
|
32
|
+
"--scale-factors",
|
|
33
|
+
default=DEFAULT_SCALES,
|
|
34
|
+
help=f"comma-separated list of scale factors which will be cycled; default: {DEFAULT_SCALES}",
|
|
35
|
+
)
|
|
36
|
+
parser.add_argument(
|
|
37
|
+
"-o",
|
|
38
|
+
"--outputs",
|
|
39
|
+
action="append",
|
|
40
|
+
default=[],
|
|
41
|
+
help="list of outputs; can be used many times; default: all available outputs",
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
return parser.parse_args()
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def parse_scales(scales: str) -> List[Decimal]:
|
|
48
|
+
ret = []
|
|
49
|
+
err = False
|
|
50
|
+
for factor in scales.split(","):
|
|
51
|
+
try:
|
|
52
|
+
ret.append(Decimal(factor.strip()))
|
|
53
|
+
except (ValueError, DecimalException):
|
|
54
|
+
log.error("Invalid scale factor: '%s'", factor)
|
|
55
|
+
err = True
|
|
56
|
+
|
|
57
|
+
if not ret:
|
|
58
|
+
log.error("No scale factors set")
|
|
59
|
+
err = True
|
|
60
|
+
|
|
61
|
+
if err:
|
|
62
|
+
sys.exit(1)
|
|
63
|
+
|
|
64
|
+
return ret
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def advance_scale(scales: List[Decimal], current: Decimal, n: int) -> Decimal:
|
|
68
|
+
try:
|
|
69
|
+
i = scales.index(current)
|
|
70
|
+
except ValueError:
|
|
71
|
+
return scales[0]
|
|
72
|
+
|
|
73
|
+
return scales[(i + n) % len(scales)]
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
@singledispatch
|
|
77
|
+
def to_dec(n):
|
|
78
|
+
return Decimal(n)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
@to_dec.register
|
|
82
|
+
def _(f: float):
|
|
83
|
+
# This preserves 3 numbers of precision, without all of the fuckupery when we pass
|
|
84
|
+
# ordinary float to Decimal() constructor. For the record, i3/sway report floats
|
|
85
|
+
# in the output of "get_output" message.
|
|
86
|
+
return Decimal(int(f * 1000)) / 1000
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def get_current_scales(i3: Connection):
|
|
90
|
+
return {outp.name: to_dec(outp.scale) for outp in i3.get_outputs()}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
def main():
|
|
94
|
+
log.basicConfig(format="%(message)s", level=log.INFO)
|
|
95
|
+
args = prepare_args()
|
|
96
|
+
|
|
97
|
+
i3 = Connection()
|
|
98
|
+
current = get_current_scales(i3)
|
|
99
|
+
args.outputs = args.outputs or current.keys()
|
|
100
|
+
|
|
101
|
+
err = 0
|
|
102
|
+
if args.next or args.prev:
|
|
103
|
+
scales = parse_scales(args.scale_factors)
|
|
104
|
+
n = 1 if args.next else -1
|
|
105
|
+
|
|
106
|
+
for outp in args.outputs:
|
|
107
|
+
try:
|
|
108
|
+
scale = current.get(outp, Decimal("1.0"))
|
|
109
|
+
except KeyError:
|
|
110
|
+
log.error("No such output: %s", outp)
|
|
111
|
+
err = 1
|
|
112
|
+
|
|
113
|
+
next_scale = advance_scale(scales, scale, n)
|
|
114
|
+
log.debug(f"Setting {outp} to {str(next_scale)}")
|
|
115
|
+
i3.command(f"output {outp} scale {str(next_scale)}")
|
|
116
|
+
|
|
117
|
+
# update cache
|
|
118
|
+
current = get_current_scales(i3)
|
|
119
|
+
|
|
120
|
+
for outp in args.outputs:
|
|
121
|
+
try:
|
|
122
|
+
scale = current[outp]
|
|
123
|
+
except KeyError:
|
|
124
|
+
scale = "unknown output"
|
|
125
|
+
err = 1
|
|
126
|
+
|
|
127
|
+
print(f"{outp}: {scale}")
|
|
128
|
+
|
|
129
|
+
return err
|
i3a-2.1.0/.gitignore
DELETED
i3a-2.1.0/PKG-INFO
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: i3a
|
|
3
|
-
Version: 2.1.0
|
|
4
|
-
Summary: Automatic manager for i3 tiling
|
|
5
|
-
Home-page: https://git.goral.net.pl/i3a.git
|
|
6
|
-
Author: Michał Góral
|
|
7
|
-
Author-email: dev@goral.net.pl
|
|
8
|
-
License: GPLv3+
|
|
9
|
-
Description: # i3a
|
|
10
|
-
|
|
11
|
-
i3a is a set of scripts used for automation of i3 and sway window manager
|
|
12
|
-
layouts.
|
|
13
|
-
|
|
14
|
-
## Automation list
|
|
15
|
-
|
|
16
|
-
### i3a-master-stack
|
|
17
|
-
|
|
18
|
-
Provides automatic master-stack layout, which is known from e.g. DWM. The
|
|
19
|
-
following kinds of the layout are possible:
|
|
20
|
-
|
|
21
|
-
- master-stack area with DWM-like stack (stack windows are split)
|
|
22
|
-
- master-stack area with i3-like stack (stack windows are actual stack)
|
|
23
|
-
|
|
24
|
-
To use, run `i3a-master-stack` with selected options (`i3a-master-stack
|
|
25
|
-
--help` for details). One way to run it automatically is via a systemd
|
|
26
|
-
user service.
|
|
27
|
-
|
|
28
|
-
1. Create the following file in _~/.config/systemd/user/i3a-master-stack_:
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
[Unit]
|
|
32
|
-
Description=i3a-master-stack
|
|
33
|
-
|
|
34
|
-
[Service]
|
|
35
|
-
ExecStart=%h/.local/bin/i3a-master-stack --stack=dwm --stack-size=35
|
|
36
|
-
Restart=on-failure
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
2. Add the following entry to your i3 or sway configuration file:
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
exec "systemctl --user restart i3a-master-stack.service"
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### i3a-swap
|
|
46
|
-
|
|
47
|
-
Swap currently focused window between master and stack areas from
|
|
48
|
-
i3a-master-stack (technically it doesn't require running i3-master-stack).
|
|
49
|
-
|
|
50
|
-
To use it, add the following binding to your i3 or sway configuration file:
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
bindsym $mod+f exec i3a-swap
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### i3a-swallow
|
|
57
|
-
|
|
58
|
-
Provides automatic "swallowing": when a program runs a child process, the
|
|
59
|
-
parent is automatically hidden (moved to the scratchpad), which looks like if
|
|
60
|
-
it was replaced, or "swallowed" by the child window. It is especially useful
|
|
61
|
-
for graphical programs (video player, document viewer etc.) run from the
|
|
62
|
-
terminal.
|
|
63
|
-
|
|
64
|
-
Provides a means of filtering both parent programs which can be swallowed and
|
|
65
|
-
child programs which can trigger swallowing.
|
|
66
|
-
|
|
67
|
-
To use it, run `i3a-swallow` with selected options. One way to run it
|
|
68
|
-
automatically is via a systemd user service.
|
|
69
|
-
|
|
70
|
-
1. Create the following file in _~/.config/systemd/user/i3a-swallow_:
|
|
71
|
-
|
|
72
|
-
```
|
|
73
|
-
[Unit]
|
|
74
|
-
Description=i3a-swallow
|
|
75
|
-
|
|
76
|
-
[Service]
|
|
77
|
-
ExecStart=%h/.local/bin/i3a-swallow
|
|
78
|
-
Restart=on-failure
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
2. Add the following entry to your i3 or sway configuration file:
|
|
82
|
-
|
|
83
|
-
```
|
|
84
|
-
exec "systemctl --user restart i3a-swallow.service"
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
### i3a-move-to-empty
|
|
88
|
-
|
|
89
|
-
Moves currently focused container to the first empty workspace. Keep in mind
|
|
90
|
-
that this script relies on numbering of the workspaces.
|
|
91
|
-
|
|
92
|
-
To use it, add the following binding to your i3 or sway configuration file:
|
|
93
|
-
|
|
94
|
-
```
|
|
95
|
-
bindsym $mod+w exec i3a-move-to-empty
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
### i3a-resize-compass
|
|
99
|
-
|
|
100
|
-
Extension of `resize` command. Currently focused window will automatically
|
|
101
|
-
grow or shrink in a direction passed to i3a-resize-compass.
|
|
102
|
-
|
|
103
|
-
```
|
|
104
|
-
bindsym $mod+Up exec i3a-resize-compass up 2ppt
|
|
105
|
-
bindsym $mod+Down exec i3a-resize-compass down 2ppt
|
|
106
|
-
bindsym $mod+Right exec i3a-resize-compass right 2ppt
|
|
107
|
-
bindsym $mod+Left exec i3a-resize-compass left 2ppt
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
## Installation
|
|
111
|
-
|
|
112
|
-
- [PyPI](https://pypi.org/project/i3a/)
|
|
113
|
-
- [AUR](https://aur.archlinux.org/packages/i3a/) (Arch Linux - unofficial)
|
|
114
|
-
|
|
115
|
-
Platform: linux
|
|
116
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
117
|
-
Classifier: Environment :: Console
|
|
118
|
-
Classifier: Intended Audience :: End Users/Desktop
|
|
119
|
-
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
120
|
-
Classifier: Natural Language :: English
|
|
121
|
-
Classifier: Operating System :: POSIX
|
|
122
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
123
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
124
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
125
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
126
|
-
Classifier: Topic :: Utilities
|
|
127
|
-
Requires-Python: >=3.7,<3.10
|
|
128
|
-
Description-Content-Type: text/markdown
|
i3a-2.1.0/Pipfile
DELETED
i3a-2.1.0/setup.cfg
DELETED
i3a-2.1.0/setup.py
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
from setuptools import setup, find_packages
|
|
2
|
-
|
|
3
|
-
with open('README.md', encoding='utf-8') as f_:
|
|
4
|
-
long_description = f_.read()
|
|
5
|
-
|
|
6
|
-
def main():
|
|
7
|
-
setup(name='i3a',
|
|
8
|
-
description="Automatic manager for i3 tiling",
|
|
9
|
-
long_description=long_description,
|
|
10
|
-
long_description_content_type='text/markdown',
|
|
11
|
-
use_scm_version={'write_to': 'src/i3a/_version.py'},
|
|
12
|
-
license='GPLv3+',
|
|
13
|
-
author='Michał Góral',
|
|
14
|
-
author_email='dev@goral.net.pl',
|
|
15
|
-
url='https://git.goral.net.pl/i3a.git',
|
|
16
|
-
platforms=['linux'],
|
|
17
|
-
python_requires='>=3.7,<3.10',
|
|
18
|
-
setup_requires=['setuptools_scm'],
|
|
19
|
-
install_requires=[
|
|
20
|
-
'i3ipc==2.2.1',
|
|
21
|
-
],
|
|
22
|
-
|
|
23
|
-
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
|
24
|
-
classifiers=['Development Status :: 5 - Production/Stable',
|
|
25
|
-
'Environment :: Console',
|
|
26
|
-
'Intended Audience :: End Users/Desktop',
|
|
27
|
-
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
|
|
28
|
-
'Natural Language :: English',
|
|
29
|
-
'Operating System :: POSIX',
|
|
30
|
-
'Programming Language :: Python :: 3 :: Only',
|
|
31
|
-
'Programming Language :: Python :: 3.7',
|
|
32
|
-
'Programming Language :: Python :: 3.8',
|
|
33
|
-
'Programming Language :: Python :: 3.9',
|
|
34
|
-
'Topic :: Utilities',
|
|
35
|
-
],
|
|
36
|
-
|
|
37
|
-
packages=find_packages('src'),
|
|
38
|
-
package_dir={'': 'src'},
|
|
39
|
-
|
|
40
|
-
entry_points={
|
|
41
|
-
'console_scripts': [
|
|
42
|
-
'i3a-master-stack=i3a.master_stack:main',
|
|
43
|
-
'i3a-swallow=i3a.swallow:main',
|
|
44
|
-
'i3a-move-to-empty=i3a.move_to_empty:main',
|
|
45
|
-
'i3a-swap=i3a.swap:main',
|
|
46
|
-
'i3a-resize-compass=i3a.resize_compass:main',
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
)
|
|
50
|
-
|
|
51
|
-
if __name__ == '__main__':
|
|
52
|
-
main()
|
|
53
|
-
|
i3a-2.1.0/src/i3a/__init__.py
DELETED
|
File without changes
|
i3a-2.1.0/src/i3a/_version.py
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: i3a
|
|
3
|
-
Version: 2.1.0
|
|
4
|
-
Summary: Automatic manager for i3 tiling
|
|
5
|
-
Home-page: https://git.goral.net.pl/i3a.git
|
|
6
|
-
Author: Michał Góral
|
|
7
|
-
Author-email: dev@goral.net.pl
|
|
8
|
-
License: GPLv3+
|
|
9
|
-
Description: # i3a
|
|
10
|
-
|
|
11
|
-
i3a is a set of scripts used for automation of i3 and sway window manager
|
|
12
|
-
layouts.
|
|
13
|
-
|
|
14
|
-
## Automation list
|
|
15
|
-
|
|
16
|
-
### i3a-master-stack
|
|
17
|
-
|
|
18
|
-
Provides automatic master-stack layout, which is known from e.g. DWM. The
|
|
19
|
-
following kinds of the layout are possible:
|
|
20
|
-
|
|
21
|
-
- master-stack area with DWM-like stack (stack windows are split)
|
|
22
|
-
- master-stack area with i3-like stack (stack windows are actual stack)
|
|
23
|
-
|
|
24
|
-
To use, run `i3a-master-stack` with selected options (`i3a-master-stack
|
|
25
|
-
--help` for details). One way to run it automatically is via a systemd
|
|
26
|
-
user service.
|
|
27
|
-
|
|
28
|
-
1. Create the following file in _~/.config/systemd/user/i3a-master-stack_:
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
[Unit]
|
|
32
|
-
Description=i3a-master-stack
|
|
33
|
-
|
|
34
|
-
[Service]
|
|
35
|
-
ExecStart=%h/.local/bin/i3a-master-stack --stack=dwm --stack-size=35
|
|
36
|
-
Restart=on-failure
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
2. Add the following entry to your i3 or sway configuration file:
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
exec "systemctl --user restart i3a-master-stack.service"
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### i3a-swap
|
|
46
|
-
|
|
47
|
-
Swap currently focused window between master and stack areas from
|
|
48
|
-
i3a-master-stack (technically it doesn't require running i3-master-stack).
|
|
49
|
-
|
|
50
|
-
To use it, add the following binding to your i3 or sway configuration file:
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
bindsym $mod+f exec i3a-swap
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### i3a-swallow
|
|
57
|
-
|
|
58
|
-
Provides automatic "swallowing": when a program runs a child process, the
|
|
59
|
-
parent is automatically hidden (moved to the scratchpad), which looks like if
|
|
60
|
-
it was replaced, or "swallowed" by the child window. It is especially useful
|
|
61
|
-
for graphical programs (video player, document viewer etc.) run from the
|
|
62
|
-
terminal.
|
|
63
|
-
|
|
64
|
-
Provides a means of filtering both parent programs which can be swallowed and
|
|
65
|
-
child programs which can trigger swallowing.
|
|
66
|
-
|
|
67
|
-
To use it, run `i3a-swallow` with selected options. One way to run it
|
|
68
|
-
automatically is via a systemd user service.
|
|
69
|
-
|
|
70
|
-
1. Create the following file in _~/.config/systemd/user/i3a-swallow_:
|
|
71
|
-
|
|
72
|
-
```
|
|
73
|
-
[Unit]
|
|
74
|
-
Description=i3a-swallow
|
|
75
|
-
|
|
76
|
-
[Service]
|
|
77
|
-
ExecStart=%h/.local/bin/i3a-swallow
|
|
78
|
-
Restart=on-failure
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
2. Add the following entry to your i3 or sway configuration file:
|
|
82
|
-
|
|
83
|
-
```
|
|
84
|
-
exec "systemctl --user restart i3a-swallow.service"
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
### i3a-move-to-empty
|
|
88
|
-
|
|
89
|
-
Moves currently focused container to the first empty workspace. Keep in mind
|
|
90
|
-
that this script relies on numbering of the workspaces.
|
|
91
|
-
|
|
92
|
-
To use it, add the following binding to your i3 or sway configuration file:
|
|
93
|
-
|
|
94
|
-
```
|
|
95
|
-
bindsym $mod+w exec i3a-move-to-empty
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
### i3a-resize-compass
|
|
99
|
-
|
|
100
|
-
Extension of `resize` command. Currently focused window will automatically
|
|
101
|
-
grow or shrink in a direction passed to i3a-resize-compass.
|
|
102
|
-
|
|
103
|
-
```
|
|
104
|
-
bindsym $mod+Up exec i3a-resize-compass up 2ppt
|
|
105
|
-
bindsym $mod+Down exec i3a-resize-compass down 2ppt
|
|
106
|
-
bindsym $mod+Right exec i3a-resize-compass right 2ppt
|
|
107
|
-
bindsym $mod+Left exec i3a-resize-compass left 2ppt
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
## Installation
|
|
111
|
-
|
|
112
|
-
- [PyPI](https://pypi.org/project/i3a/)
|
|
113
|
-
- [AUR](https://aur.archlinux.org/packages/i3a/) (Arch Linux - unofficial)
|
|
114
|
-
|
|
115
|
-
Platform: linux
|
|
116
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
117
|
-
Classifier: Environment :: Console
|
|
118
|
-
Classifier: Intended Audience :: End Users/Desktop
|
|
119
|
-
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
120
|
-
Classifier: Natural Language :: English
|
|
121
|
-
Classifier: Operating System :: POSIX
|
|
122
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
123
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
124
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
125
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
126
|
-
Classifier: Topic :: Utilities
|
|
127
|
-
Requires-Python: >=3.7,<3.10
|
|
128
|
-
Description-Content-Type: text/markdown
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.gitignore
|
|
2
|
-
LICENSE
|
|
3
|
-
Pipfile
|
|
4
|
-
README.md
|
|
5
|
-
setup.py
|
|
6
|
-
src/i3a/__init__.py
|
|
7
|
-
src/i3a/_version.py
|
|
8
|
-
src/i3a/master_stack.py
|
|
9
|
-
src/i3a/move_to_empty.py
|
|
10
|
-
src/i3a/resize_compass.py
|
|
11
|
-
src/i3a/swallow.py
|
|
12
|
-
src/i3a/swap.py
|
|
13
|
-
src/i3a.egg-info/PKG-INFO
|
|
14
|
-
src/i3a.egg-info/SOURCES.txt
|
|
15
|
-
src/i3a.egg-info/dependency_links.txt
|
|
16
|
-
src/i3a.egg-info/entry_points.txt
|
|
17
|
-
src/i3a.egg-info/requires.txt
|
|
18
|
-
src/i3a.egg-info/top_level.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
i3ipc==2.2.1
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
i3a
|
{i3a-2.1.0 → i3a-2.2.0}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|