Skip to content

Commit aae8aac

Browse files
CurtainExtension: Lightweight and Fast alternative to window manager on Cinnamon, initial release (#8320)
* Added CurtainExtension * Remove last-edited field from metadata.json --------- Co-authored-by: Advaita Soni <advaitasoni1024@gmail.com>
1 parent c46d7f5 commit aae8aac

File tree

15 files changed

+2610
-0
lines changed

15 files changed

+2610
-0
lines changed

curtain@AdvaitaSoni/README.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Curtain Applet for Cinnamon
2+
## Introduction
3+
The **Curtain** applet for Cinnamon is designed to be a lightweight,fast and easy to install and configure alternative to popular window managers. Essentially, it is aimed to completely navigate workspaces and windows using only the keyboard.
4+
![Curtain screenshot](screenshot2.png)
5+
6+
## Features
7+
### Workspace Management
8+
- **Switch workspaces**: Switch between workspaces using the ```Super + 1-9``` keys
9+
- **Move Windows To A Workspace**: Move the <b>focused</b> window to any workspaces using the ```Super+Shift+1-9```keys
10+
- **Navigate between next and previous workspaces**: Alternatively it is possible to move to previous and next workspaces using ```Super + R/T``` and move the windows to previous and next workspaces using ```Super + Shift + R/T``` (R for previous and T for next workspace)
11+
12+
### Window Management
13+
- **Arrange the Windows**: Arrange the windows in [Half Window Fashion](#half-window-manager) by using ```Super + Tab```
14+
- **Focus the window** : focus on [next window](#next-window-in-half-window-manager) using ```Super + F```
15+
- **Move the window** : Move the <b>focused</b> window in direction of the largest window equal or less than the focused window using ```Super + M```
16+
- **Swap the window**: Swap the <b>focused</b> window with the [next window](#next-window-in-half-window-manager) using ```Super + S```
17+
- **Half Screen**: Make the <b>focused</b> window occupy left half of the screen and arrange the rest of the windows(SEE WindowManagement > Arrange the Windows) using ```Super+H```
18+
- **Maximize**: Make the <b>focused</b> window occupy whole screen/maximize using ```Super+L```
19+
- **Exit from Maximize**: Unmaximize the <b>focused</b> window using ```Super+Q```
20+
- **Minimize**: Minimize the <b>focused</b> window using ```Super + P```
21+
- **Close the Focused Window**: Close the <b>focused</b> window using ```Super+K```
22+
23+
### Other Settings
24+
- **Enable/disable**: Automatic arrangement on opening/closing a window as well as Hotkeys can be toggled on/off using ```Super + Escape```
25+
26+
### Configure your own hotkeys
27+
- To open an application like kitty,Nemo etc. you can go to System Settings > Keyboard > Shortcuts > Custom Shortcuts
28+
29+
### Automatic Arrangement
30+
- If the windows are in arranged fashion i.e no sizing and position of any window is changed, then the newly opened windows also open in [Half Window Fashion](#half-window-manager).
31+
- **Note - this is only possible when the windows themselves allow resizing and positioning. If any of the opened windows(newly opened or already opened) cannot resize or position itself according to the algorithm, the automatic arrangement fails and windows are opened/resized randomly. This is especially true for applications like gnome-terminal which only resizes itself vertically in multiple of font size and winddows having a set minimum size."**
32+
33+
### See the applet status
34+
- See whether the extension is enabled or not, current workspace index, as well as total workspaces
35+
36+
![screenshot for panel](screenshot.png)
37+
38+
### Fully customizable
39+
- The keys for performing all the action are fully customizable
40+
41+
## Preferences
42+
Due to individual windows not following **Curtain** rules ,it is advisable the following applications are preferred:
43+
- kitty over gnome-terminal
44+
45+
## Half Window Manager
46+
The **Curtain** applet arranges the windows using the following rules:
47+
- Sort the windows by their size. If two windows are of same size the one that is on left or top comes first
48+
- Windows are arranged starting from the full screen
49+
- Arrange the 1st window in half screen either vertically(top or bottom) or horizontally(left or right) depending upon whether the remaining area has lower width(vertically) or lower height(horizontally)
50+
51+
### Next Window in Half Window Manager
52+
- The focus and swap operations in **Curtain** are performed using the current focused window and the next window. The next window is the largest area window which is equal or smaller than the focused window. If no such window exists the next window is the largest area window
53+
54+
## Manual Installation on Cinnamon
55+
To manually install the **Curtain** applet in Cinnamon , follow the steps below:
56+
1. **Navigate to the Cinnamon applets directory:**
57+
Open the terminal and use the `cd` command to go to the folder where Cinnamon applets are stored locally:
58+
```bash
59+
cd ~/.local/share/cinnamon/applets
60+
```
61+
62+
2. **Clone the applet repository:**
63+
Clone the repository using the following command:
64+
```bash
65+
git clone git@github.com:AdvaitaSoni/curtain.git -b APPLET curtain@AdvaitaSoni
66+
```
67+
NOTE: The branch to copy is **APPLET**
68+
69+
4. **Restart Cinnamon (or the panel):**
70+
For Cinnamon to recognize the new applet, you can restart the graphical environment. The easiest way is to press `Alt + F2`, type `r`, and press `Enter`. This will restart Cinnamon without closing your applications.
71+
72+
5. **Add the applet to the panel:**
73+
- Right-click on an empty area of your Cinnamon panel.
74+
- Select "Add applets to panel...".
75+
- In the window that opens, go to the "Installed applets" tab.
76+
- Look for "Curtain" in the list.
77+
- Select it and click "Add to panel."
78+
Now you should see the "Curtain" applet displaying the remaining minutes of the day on your Cinnamon panel!
79+
80+
## From Applet Store
81+
- Alternatively it is possible to download by going to Applets > Download > Search for Curtain

0 commit comments

Comments
 (0)