Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
i3-woman
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiří Kalvoda
i3-woman
Commits
7a679c3f
Commit
7a679c3f
authored
2 years ago
by
Jiří Kalvoda
Browse files
Options
Downloads
Patches
Plain Diff
Small fixes
parent
7d06ef0e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
woman/qt.py
+3
-2
3 additions, 2 deletions
woman/qt.py
woman/watch.py
+1
-0
1 addition, 0 deletions
woman/watch.py
with
4 additions
and
2 deletions
woman/qt.py
+
3
−
2
View file @
7a679c3f
...
...
@@ -221,7 +221,7 @@ def qt_main():
target
.
put_in_new_container
(
None
if
new_container
is
True
else
new_container
)
else
:
target
.
wrap_if_is_root
()
if
expand
and
type
(
self
)
!
=
I3InnerNodeWidget
:
if
expand
and
type
(
self
)
=
=
I3InnerNodeWidget
:
if
before
:
self
.
move
(
target
,
expand
=
True
)
target
.
move
(
self
.
nodes
[
0
])
...
...
@@ -475,6 +475,7 @@ def qt_main():
"
tabbed
"
:
"
stacked
"
,
"
stacked
"
:
"
splith
"
,
}.
get
(
self
.
layout
,
"
splith
"
)
self
.
workspace_widget
.
screenshot_changed
()
shared
.
i3_cmd
(
f
'
[con_id=
{
self
.
nodes
[
0
].
container_id
}
] layout
{
new_layout
}
'
)
self
.
layout
=
new_layout
self
.
redraw
()
...
...
@@ -716,7 +717,7 @@ def qt_main():
shared
.
i3_cmd
(
f
'
workspace
{
workspace
(
self
.
master
,
self
.
slave
)
}
'
)
def
move_to_otput
(
self
,
output
=
"
next
"
):
shared
.
i3_cmd
(
f
"
move workspace to output
{
output
}
"
)
shared
.
i3_cmd
(
f
"
[workspace=
{
workspace
(
self
.
master
,
self
.
slave
)
}
]
move workspace to output
{
output
}
"
)
def
move
(
self
,
target
,
swap
=
False
,
before
=
False
,
expand
=
False
,
new_container
=
None
):
if
(
w
:
=
self
.
root_i3_tree_widget
())
is
not
None
:
...
...
This diff is collapsed.
Click to expand it.
woman/watch.py
+
1
−
0
View file @
7a679c3f
...
...
@@ -77,6 +77,7 @@ def i3_watch():
shared
.
output
=
e
.
current
.
ipc_data
[
'
output
'
]
master
,
slave
=
parse_workspace
(
e
.
current
.
name
)
event_workspace_is_on
((
master
,
slave
),
shared
.
output
)
shared
.
qt_task
(
"
ws_metadata_changed
"
,
*
shared
.
workspace_on
[
shared
.
output
])
shared
.
workspace_on
[
shared
.
output
]
=
(
master
,
slave
)
return
with
shared
.
lock
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment