AI prompts
base on Automatic tiling window manager for macOS à la xmonad. Amethyst
========
[![Discussions](https://img.shields.io/github/discussions/ianyh/Amethyst)](https://github.com/ianyh/Amethyst/discussions)
[![Build Status](https://travis-ci.com/ianyh/Amethyst.svg?branch=development)](https://travis-ci.com/ianyh/Amethyst)
[![Open Source Helpers](https://www.codetriage.com/ianyh/amethyst/badges/users.svg)](https://www.codetriage.com/ianyh/amethyst)
[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
[![Twitter Follow](https://img.shields.io/twitter/follow/amethystwm?style=social)](https://twitter.com/amethystwm)
Tiling window manager for macOS along the lines of [xmonad](https://xmonad.org/).
![Windows](https://ianyh.com/amethyst/images/windows.png)
If you want to learn more about tiling window managers and the features of Amethyst there are some great community resources on YouTube.
[Boost your MacOS PRODUCTIVITY with Amethyst | Tiling Window Manager](https://www.youtube.com/watch?v=7Z9-Ry4yGNc)
Getting Amethyst
================
Amethyst is available for direct download on the [releases page](https://github.com/ianyh/Amethyst/releases) or using [homebrew cask](https://github.com/Homebrew/homebrew-cask).
```
brew install --cask amethyst
```
Note: that Amethyst now is only supported on macOS 10.15+.
Using Amethyst
==============
Amethyst must be given permissions to use the accessibility APIs in the Privacy & Security tab, Privacy -> Accessibilty.
<p align="center">
<img style="text-align: center; border-radius:4px;" width="500px" src="docs/images/accessibility-permission.png" alt="Give Accessibility permission to Amethyst under Privicay and Security." />
</p>
**_Important note_**: You will probably want to disable `Automatically rearrange Spaces based on most recent use` (found under Mission Control in System Preferences). This setting is enabled by default, and will cause your Spaces to swap places based on use. This makes keyboard navigation between Spaces unpredictable.
<p align="center">
<img style="text-align: center" width="500px" src="docs/images/auto-rearranage.png" />
</p>
or run in a terminal:
```bash
defaults write com.apple.dock workspaces-auto-swoosh -bool NO
killall Dock
```
Troubleshooting
===============
See [Troubleshooting](docs/troubleshooting.md) for some common issues.
# Configuration
Keyboard Shortcuts
------------------
Amethyst uses two modifier combinations (`mod1` and `mod2`) and can optionally use another two (`mod3` and `mod4`).
| Default Shortcut | Description |
|---|---|
| `mod1` | `option + shift` |
| `mod2` | `ctrl + option + shift` |
| `mod3` | not defined by default |
| `mod4` | not defined by default |
And defines the following commands, mostly a mapping to xmonad key combinations.
| Default Shortcut | Description |
|---|---|
| `mod1 + space` | Cycle layout forward |
| `mod2 + space` | Cycle layout backwards |
| `mod1 + h` | Shrink the main pane |
| `mod1 + l` | Expand the main pane |
| `mod1 + ,` | Increase main pane count |
| `mod1 + .` | Decrease main pane count |
| `mod1 + j` | Move focus counter clockwise |
| `mod1 + k` | Move focus clockwise |
| `mod1 + p` | Move focus to counter clockwise screen |
| `mod1 + n` | Move focus to clockwise screen |
| `mod2 + h` | Swap focused window to counter clockwise screen |
| `mod2 + l` | Swap focused window to clockwise screen |
| `mod2 + j` | Swap focused window counter clockwise |
| `mod2 + k` | Swap focused window clockwise |
| `mod1 + enter` | Swap focused window with main window |
| `mod1 + z` | Force windows to be reevaluated |
| `mod2 + z` | Relaunch Amethyst |
| `mod2 + left` | Throw focused window to space left |
| `mod2 + right` | Throw focused window to space right |
| `mod2 + 1` | Throw focused window to space 1 |
| `mod2 + 2` | Throw focused window to space 2 |
| `mod2 + 3` | Throw focused window to space 3 |
| `mod2 + 4` | Throw focused window to space 4 |
| `mod2 + 5` | Throw focused window to space 5 |
| `mod2 + 6` | Throw focused window to space 6 |
| `mod2 + 7` | Throw focused window to space 7 |
| `mod2 + 8` | Throw focused window to space 8 |
| `mod2 + 9` | Throw focused window to space 9 |
| `mod2 + 0` | Throw focused window to space 10 |
| `none` | Throw focused window to space 11 |
| `none` | Throw focused window to space 12 |
| `mod1 + w` | Focus Screen 1 |
| `mod2 + w` | Throw focused window to screen 1 |
| `mod1 + e` | Focus Screen 2 |
| `mod2 + e` | Throw focused window to screen 2 |
| `mod1 + r` | Focus Screen 3 |
| `mod2 + r` | Throw focused window to screen 3 |
| `mod1 + q` | Focus Screen 4 |
| `mod2 + q` | Throw focused window to screen 4 |
| `mod1 + g` | Focus Screen 5 |
| `mod2 + g` | Throw focused window to screen 5 |
| `mod1 + t` | Toggle float for focused window |
| `mod1 + i` | Display current layout |
| `mod2 + t` | Toggle global tiling |
| `mod1 + a` | Select tall layout |
| `none` | Select tall-right layout |
| `mod1 + s` | Select wide layout |
| `none` | Select middle-wide layout |
| `mod1 + d` | Select fullscreen layout |
| `mod1 + f` | Select column layout |
| `none` | Select row layout |
| `none` | Select floating layout |
| `none` | Select widescreen-tall layout |
| `none` | Select bsp layout |
Available Layouts
-----------------
Amethyst allows you to cycle among several different window layouts.
Layouts can also be enabled/disabled to control whether they appear in the cycle sequence at all.
#### Tall
The default layout. This gives you one "main pane" on the left, and one other pane on the right. By default, one window is placed in the main pane (extending the full height of the screen), and all remaining windows are placed in the other pane. If either pane has more than one window, that pane will be evenly split into rows, to show them all. You can use the keyboard shortcuts above to control which window(s), and how many, are in the main pane, as well as the horizontal size of the main pane vs. the other pane.
#### Tall-Right
Exactly the same as *Tall*, but the main pane is on the right, with the other pane on the left.
#### Wide
The rotated version of *Tall*, where the main pane is on the _top_ (extending the full width of the screen), and the other pane is on the bottom. If either pane has more than one window, that pane will split into columns instead of rows.
#### Two Pane
This layout has two visible panes - the main and the secondary pane. The window
in the main pane is pinned, just like in other layouts, and all the remaining
windows are placed in the other pane with only one window being visible at a
time, which can be swapped (using the keyboard shortcuts). This layout
automatically adapts to horizontal/vertical tiling depending on your screen
orientation. The main pane is on the left in the horizontal orientation and it's
on the top in the vertical orientation.
#### 3Column-Left
A three-column version of *Tall*, with one main pane on the left (extending the full height of the screen) and two other panes, one in the middle and one on the right. Like *Tall*, if any pane has more than one window, that pane will be split into rows. You can control how many windows are in the main pane as usual; other windows will be assigned as evenly as possible between the other two panes.
#### 3Column-Middle
Exactly like *3Column-Left*, but the main pane is in the middle, with the other panes on either side. (In previous versions of Amethyst, this layout was known as *Middle-Wide*.)
#### 3Column-Right
Exactly like *3Column-Left*, but the main pane is on the right, with the other panes in the middle and on the left.
#### Widescreen-Tall
This mode is like *Tall*, but if there are multiple windows in the main pane,
the main pane splits into columns rather than rows.
The other pane still splits windows into rows, like *Tall*.
This layout gets its name because it probably makes the most sense on very
wide screens, with a large main pane consisting of several columns, and all
remaining windows stacked into the final column.
Other layouts that work well on very wide screens include any that allow for
more than two columns (to take advantage of the screen width), such as
any of the *3Column-** layouts, or *Column*.
#### Fullscreen
In this layout, the currently focused window takes up the entire screen, and the other windows are not visible at all. You can rotate between each of the windows using the "focus the next window" shortcut, as usual.
#### Column
This layout has one column per window, with each window extending the full height of the screen. The farthest-left window is considered the "main" window in the sense that you can change its size with the "shrink/expand the main pane" shortcuts; the other windows split the remaining space evenly.
#### Row
The rotated version of *Column*, where each window takes up an entire row, extending the full width of the screen.
#### Floating
This mode makes all windows "floating", allowing you to move and resize them as if Amethyst were temporarily deactivated. Unlike the other modes, this will mean that windows can be placed "on top of" each other, obscuring your view of some windows.
#### Binary Space Partitioning (BSP)
This layout does not have a main pane in the way that other layouts do. When adding windows, any given pane can be split evenly into two panes along whatever axis is longer. This is recursive such that pane A can be split in the middle into pane A on the left and pane B on the right; pane B can then be split into pane B on top and pane C on bottom; pane C can then be split into pane C on the left and pane D on the right; and so on.
#### Custom (beta)
Custom layouts can be implemented via JavaScript. See [Custom Layouts](docs/custom-layouts.md).
Configuration File
-------------
Amethyst supports configuration via YAML in the home directory. See [Configuration Files](docs/configuration-files.md).
Contact
=======
If you have questions or feedback your best options are to [tweet](https://twitter.com/amethystwm) or to get on [gitter](https://gitter.im/ianyh/Amethyst).
Contributing
============
If you'd like to contribute please branch off of the `development` branch and open pull requests against it rather than `master`. Otherwise just try to stick to the general style of the code.
Donating
========
Amethyst is free and always will be. That said, a couple of people have expressed their desire to donate money in appreciation. Given the current political climate I would recommend donating to one of these organizations instead:
* [American Civil Liberties Union](https://www.aclu.org/)
* [Planned Parenthood](https://www.plannedparenthood.org/)
* [Southern Poverty Law Center](https://www.splcenter.org/)
* [National Resources Defense Council](https://www.nrdc.org/)
* [International Refugee Assistance Project](https://refugeerights.org/)
* [NAACP Legal Defense Fund](https://www.naacpldf.org/)
* [The Trevor Project](https://www.thetrevorproject.org/)
* [Mexican American Legal Defense Fund](https://www.maldef.org/)
* [ProPublica](https://www.propublica.org/)
And a bunch of technology-oriented ones:
* [National Center for Women & Information Technology](https://ncwit.org/about-ncwit/donate/)
* [girls who code](https://girlswhocode.com/get-involved/)
* [Trans*H4CK](https://www.transhack.org/sponsorship/)
* [Black Girls CODE](https://wearebgc.org/donate/)
", Assign "at most 3 tags" to the expected json: {"id":"11415","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"