Skip to content

Commit f4d49b3

Browse files
authored
feat(lact-profiles): add LACT profile switcher (#425)
1 parent f5a74f1 commit f4d49b3

11 files changed

Lines changed: 2057 additions & 0 deletions

‎extensions/lact-profiles/README.md‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# LACT Profiles for Vicinae
2+
3+
Browse the profiles exposed by the [LACT](https://github.com/ilya-zlobintsev/LACT) CLI, see which one is active, and switch profiles from Vicinae. The extension also shows LACT's automatic profile-switching status and lets you enable or disable it.
4+
5+
The extension icon is the official LACT application icon from `res/io.github.ilya_zlobintsev.LACT.png`, used under the LACT project's MIT licence; see [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
6+
7+
## Requirements
8+
9+
- Linux and Vicinae
10+
- LACT v0.8.2 or later, with `lact` available on `PATH` ([releases](https://github.com/ilya-zlobintsev/LACT/releases))
11+
- The LACT daemon (`lactd`) running and accessible to the desktop user
12+
13+
Selecting a profile through LACT's CLI disables automatic switching. Turning automatic switching off follows LACT's behaviour and selects `Default`. If enabling automatic switching has already moved the active profile to `Default` (for example, when no rule matches), disabling it leaves `Default` active; the extension does not restore the profile that was active before automatic switching was enabled.
14+
15+
The extension runs as the logged-in user and does not invoke `sudo`. Follow LACT's installation and socket-permissions documentation if the CLI cannot reach the daemon.
16+
17+
## Development
18+
19+
```bash
20+
npm install
21+
npm test
22+
npm run typecheck
23+
npm run lint
24+
npm run build
25+
```
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
The LACT application icon in `assets/lact-icon.png` is from [ilya-zlobintsev/LACT](https://github.com/ilya-zlobintsev/LACT), copyright (c) 2023 Ilya Zlobintsev, and is used under the following MIT License:
2+
3+
> MIT License
4+
>
5+
> Copyright (c) 2023 Ilya Zlobintsev
6+
>
7+
> Permission is hereby granted, free of charge, to any person obtaining a copy
8+
> of this software and associated documentation files (the "Software"), to deal
9+
> in the Software without restriction, including without limitation the rights
10+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
> copies of the Software, and to permit persons to whom the Software is
12+
> furnished to do so, subject to the following conditions:
13+
>
14+
> The above copyright notice and this permission notice shall be included in all
15+
> copies or substantial portions of the Software.
16+
>
17+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
> SOFTWARE.
41.5 KB
Loading

0 commit comments

Comments
 (0)