Commit Graph
8 Commits
Author SHA1 Message Date
gouvinb 57d130ca51 Restore the code to trim % and everything that follows 2023-11-09 15:49:50 +01:00
gouvinb 954a6ba9c9 change command execution logic and use env command 2023-11-09 04:24:41 +01:00
gouvinb e3de9cc67b make better log with -wm flag 2023-11-07 10:32:23 +01:00
gouvinb 1c11329581 Reworked command building.
Typical shell-supported command sets:

- `cmd`
- `cmd --arg`
- `cmd --arg=value`
- `ENV_VAR="value" cmd`
- `ENV_VAR="value" cmd --arg`
- `ENV_VAR="value" cmd --arg=value`

The listed commands above are now better managed.

Initially, the command types `cmd --arg=value` or `ENV_VAR="value" cmd --arg=value` were not correctly parsed. After finding a solution to this problem, I conducted further tests and discovered cases that were not currently handled. These cases are as follows:

- `cmd "arg with space"`
- `ENV_VAR="value with space" cmd`
2023-11-06 15:35:42 +01:00
gouvinb 87ee23afe2 print the correct executed command (prefix supported) 2023-11-06 12:40:10 +01:00
gouvinb 808fd032a0 fix prefix command with hypr or hyprland and update -wm description 2023-11-06 00:05:16 +01:00
gouvinb 1d3f023dc8 add support to hyprlandctl
BREAKING CHANGE: '-swaymsg' removed, use '-wm sway' instead
2023-11-05 23:36:18 +01:00
gouvinb 5a7dbefeb0 adds the "swaymsg" flag to launch a program with "swaymsg exec" and prevent potential involuntary closing with Jetbrains IDEs 2023-11-01 00:44:50 +01:00