WinJitsu 0.4.0__tar.gz → 0.4.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: WinJitsu
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary: Animated window snapping for Linux X11: halves, quarters, center, fullscreen and multi-monitor moves from hotkeys, via a small background daemon
5
5
  License-Expression: GPL-3.0-only
6
6
  Project-URL: Homepage, https://github.com/Evilchuck666/WinJitsu
@@ -20,8 +20,12 @@ Dynamic: license-file
20
20
 
21
21
  # 🥋 WinJitsu
22
22
 
23
+ ![Platform](https://img.shields.io/badge/platform-GNU%2FLinux%20%28X11%29-blue)
23
24
  ![Python](https://img.shields.io/badge/python-%3E%3D3.10-blue)
24
- ![License](https://img.shields.io/badge/license-GPLv3-green)
25
+ ![Requires](https://img.shields.io/badge/requires-xdotool%2C%20python--xlib-blue)
26
+ [![License](https://img.shields.io/badge/license-GPLv3-green)](LICENSE)
27
+ [![Latest release](https://img.shields.io/github/v/release/Evilchuck666/WinJitsu?label=download&sort=semver)](https://github.com/Evilchuck666/WinJitsu/releases/latest)
28
+ [![Build and tests](https://github.com/Evilchuck666/WinJitsu/actions/workflows/release.yml/badge.svg?branch=main)](https://github.com/Evilchuck666/WinJitsu/actions/workflows/release.yml)
25
29
 
26
30
  **WinJitsu** is a slick, animated window management tool for Linux (X11).
27
31
  It allows you to effortlessly snap your active windows to various positions
@@ -1,7 +1,11 @@
1
1
  # 🥋 WinJitsu
2
2
 
3
+ ![Platform](https://img.shields.io/badge/platform-GNU%2FLinux%20%28X11%29-blue)
3
4
  ![Python](https://img.shields.io/badge/python-%3E%3D3.10-blue)
4
- ![License](https://img.shields.io/badge/license-GPLv3-green)
5
+ ![Requires](https://img.shields.io/badge/requires-xdotool%2C%20python--xlib-blue)
6
+ [![License](https://img.shields.io/badge/license-GPLv3-green)](LICENSE)
7
+ [![Latest release](https://img.shields.io/github/v/release/Evilchuck666/WinJitsu?label=download&sort=semver)](https://github.com/Evilchuck666/WinJitsu/releases/latest)
8
+ [![Build and tests](https://github.com/Evilchuck666/WinJitsu/actions/workflows/release.yml/badge.svg?branch=main)](https://github.com/Evilchuck666/WinJitsu/actions/workflows/release.yml)
5
9
 
6
10
  **WinJitsu** is a slick, animated window management tool for Linux (X11).
7
11
  It allows you to effortlessly snap your active windows to various positions
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "WinJitsu"
7
- version = "0.4.0"
7
+ version = "0.4.2"
8
8
  description = "Animated window snapping for Linux X11: halves, quarters, center, fullscreen and multi-monitor moves from hotkeys, via a small background daemon"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: WinJitsu
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary: Animated window snapping for Linux X11: halves, quarters, center, fullscreen and multi-monitor moves from hotkeys, via a small background daemon
5
5
  License-Expression: GPL-3.0-only
6
6
  Project-URL: Homepage, https://github.com/Evilchuck666/WinJitsu
@@ -20,8 +20,12 @@ Dynamic: license-file
20
20
 
21
21
  # 🥋 WinJitsu
22
22
 
23
+ ![Platform](https://img.shields.io/badge/platform-GNU%2FLinux%20%28X11%29-blue)
23
24
  ![Python](https://img.shields.io/badge/python-%3E%3D3.10-blue)
24
- ![License](https://img.shields.io/badge/license-GPLv3-green)
25
+ ![Requires](https://img.shields.io/badge/requires-xdotool%2C%20python--xlib-blue)
26
+ [![License](https://img.shields.io/badge/license-GPLv3-green)](LICENSE)
27
+ [![Latest release](https://img.shields.io/github/v/release/Evilchuck666/WinJitsu?label=download&sort=semver)](https://github.com/Evilchuck666/WinJitsu/releases/latest)
28
+ [![Build and tests](https://github.com/Evilchuck666/WinJitsu/actions/workflows/release.yml/badge.svg?branch=main)](https://github.com/Evilchuck666/WinJitsu/actions/workflows/release.yml)
25
29
 
26
30
  **WinJitsu** is a slick, animated window management tool for Linux (X11).
27
31
  It allows you to effortlessly snap your active windows to various positions
@@ -130,6 +130,11 @@ def main():
130
130
  parser.print_help()
131
131
  sys.exit(1)
132
132
 
133
- if not send_command(parsed_args.action):
133
+ sent = send_command(parsed_args.action)
134
+
135
+ if sent is None:
134
136
  print("Error: WinJitsu daemon is not running. Start it with: winjitsu --daemon", file=sys.stderr)
135
137
  sys.exit(1)
138
+
139
+ if not sent:
140
+ sys.exit(1)
@@ -162,8 +162,10 @@ def _fork_daemon():
162
162
 
163
163
 
164
164
  def send_command(action):
165
+ # True: done (warnings already printed). False: the daemon reported an error,
166
+ # already printed. None: the daemon could not be reached.
165
167
  if not SOCKET_PATH.exists():
166
- return False
168
+ return None
167
169
 
168
170
  try:
169
171
  with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as unix_socket:
@@ -182,4 +184,4 @@ def send_command(action):
182
184
 
183
185
  return True
184
186
  except (FileNotFoundError, ConnectionRefusedError, TimeoutError, OSError):
185
- return False
187
+ return None
File without changes
File without changes
File without changes