Skip to content

Commit 0172e42

Browse files
committed
Cleanup documentation and the basic example configs.
1 parent 9673d2d commit 0172e42

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

src/border_config.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,13 @@ application-setup:
166166
- exec-path: chrome.exe
167167
- exec-path: explorer.exe
168168
- exec-path: outlook.exe
169+
170+
# cmd and powershell require a border and title, otherwise it displays all funky.
171+
- display: "+border +title +tiled +resize"
172+
matchers:
173+
- exec-path: cmd.exe
174+
- exec-path: powershell.cmd
175+
169176
- location: [left]
170177
matchers:
171178
- exec-path: firefox.exe

src/no_border_config.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,11 @@ application-setup:
180180
- exec-path: explorer.exe
181181
- exec-path: outlook.exe
182182

183-
# cmd requires a border, otherwise it displays all funky.
184-
- display: "+border -title +tiled"
183+
# cmd and powershell require a border and title, otherwise it displays all funky.
184+
- display: "+border +title +tiled +resize"
185185
matchers:
186186
- exec-path: cmd.exe
187+
- exec-path: powershell.cmd
187188

188189
# Set some locations for applications
189190
- location: [left]

src/petronia/arch/funcs_any_win.py

-1
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,6 @@ def window__create_display_window(
665665
if flag in WS_STYLE_BIT_MAP:
666666
style |= WS_STYLE_BIT_MAP[flag]
667667

668-
print("DEBUG create window ex style {0} style {1}".format(hex(ex_style), hex(style)))
669668
hwnd = CreateWindowExW(
670669
ex_style, class_name, title,
671670
style,

src/petronia/detect_monitors.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
__monitor = __monitors[__index]
5151
__lines.append(FORMATS[__format][1].format(
5252
b='{', e='}',
53-
index=__index,
53+
index=__index + 1,
5454
top=__monitor['top'],
5555
bottom=__monitor['bottom'],
5656
left=__monitor['left'],

src/petronia/shell/control/portal.py

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def portal_factory(cid, arguments, bus, id_manager, config):
2121
layout_def = arguments['layout-def']
2222
ret.snap_horizontal = layout_def.snap_horizontal
2323
ret.snap_vertical = layout_def.snap_vertical
24-
print("DEBUG setting portal {0} to snap {1} {2}".format(layout_def.name, ret.snap_vertical, ret.snap_horizontal))
2524
bus.fire(event_ids.PORTAL__CREATE_ALIAS, target_ids.ACTIVE_PORTAL_MANAGER, {
2625
'alias': layout_def.name,
2726
'portal-cid': cid,

0 commit comments

Comments
 (0)