Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| kb:setup_ideal_env [2025/12/15 09:42] – yehuda | kb:setup_ideal_env [2026/01/13 10:16] (current) – [Reminders] yehuda | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| * `sudo apt install pipx` | * `sudo apt install pipx` | ||
| * `uv` and `poetry` | * `uv` and `poetry` | ||
| + | |||
| + | |||
| + | |||
| + | ====== Reminders ====== | ||
| + | |||
| + | ===== Configure shell env ===== | ||
| + | * install tmux | ||
| + | * install `zsh` and `oh-my-zsh` | ||
| + | * install `kitty` | ||
| + | |||
| + | ==== Configure tmux ==== | ||
| + | |||
| + | <code bash> | ||
| + | #Enable Mouse Mode, Open your tmux configuration file: | ||
| + | echo "set -g mouse on" >> ~/ | ||
| + | |||
| + | # 2. Reload Configuration | ||
| + | tmux source-file ~/ | ||
| + | </ | ||
| + | ===== Interesting things for Dev IDE ===== | ||
| + | * OpenCode | ||
| + | * Portal plugin - https:// | ||
| + | * Desktop and web interfce - https:// | ||
| + | * Vibekanban - https:// | ||
| + | |||
| + | |||
| + | * VSCode | ||
| + | * vscode Extension alternative repository: https:// | ||
| + | |||
| + | ===== Network ===== | ||
| + | * Use `nmtui` | ||
| + | |||
| + | ===== UI ===== | ||
| + | * Snap arrange windows side to side | ||
| + | |||
| + | First, you need to install Compiz and its configuration manager. Open your terminal and run the following commands: | ||
| + | Bash | ||
| + | |||
| + | sudo apt update | ||
| + | sudo apt install compiz compiz-plugins compizconfig-settings-manager | ||
| + | |||
| + | You might also consider installing fusion-icon and emerald for easier management and window decoration: | ||
| + | Bash | ||
| + | |||
| + | sudo apt install fusion-icon emerald | ||
| + | |||
| + | 2. Disable XFCE's Compositor | ||
| + | |||
| + | Before launching Compiz, you should disable XFCE's default compositor to avoid conflicts: | ||
| + | |||
| + | Go to Settings (or XFCE Menu) → Window Manager Tweaks. | ||
| + | |||
| + | Click on the Compositor tab. | ||
| + | |||
| + | Untick the option " | ||
| + | |||
| + | 3. Initial Configuration using CompizConfig Settings Manager (CCSM) | ||
| + | |||
| + | Compiz needs certain plugins enabled to function correctly, like handling window borders and movement. | ||
| + | |||
| + | Open CompizConfig Settings Manager (CCSM) from your XFCE settings menu (it may be under Settings or Accessories). | ||
| + | |||
| + | Crucially, activate the following essential plugins: | ||
| + | |||
| + | Composite | ||
| + | |||
| + | OpenGL | ||
| + | |||
| + | Window Decoration (to get window borders and title bars) | ||
| + | |||
| + | Move Window | ||
| + | |||
| + | Resize Window | ||
| + | |||
| + | Place Windows | ||
| + | |||
| + | Application Switcher (to manage Alt+Tab functionality) | ||
| + | |||
| + | Enable any other desired effects and features, like Desktop Cube, Wobbly Windows, etc. | ||
| + | |||
| + | 4. Running Compiz | ||
| + | |||
| + | Once the essential plugins are activated, you can replace Xfwm with Compiz: | ||
| + | |||
| + | Open a terminal or press Alt+F2 to open the Run dialog. | ||
| + | |||
| + | Execute the command: | ||
| + | Bash | ||
| + | |||
| + | compiz --replace | ||
| + | |||
| + | If you installed fusion-icon, | ||
| + | |||
| + | 5. Setting Compiz to Autostart | ||
| + | |||
| + | To ensure Compiz starts automatically after you log in, you need to add it to XFCE's startup applications: | ||
| + | |||
| + | Go to Settings → Session and Startup. | ||
| + | |||
| + | Click the Application Autostart tab. | ||
| + | |||
| + | Click Add and fill in the details: | ||
| + | |||
| + | Name: Compiz (or anything you prefer) | ||
| + | |||
| + | Description: | ||
| + | |||
| + | Command: compiz --replace | ||
| + | |||
| + | You may also need to add a small delay to ensure everything else loads first. A command like bash -c "sleep 2; compiz --replace" | ||
| + | ===== Mouse / Tauchpad ===== | ||
| + | |||
| + | This is a great question\! Xfce does not support multi-finger touchpad gestures for switching workspaces natively, but you can achieve this functionality by using a third-party utility that can interpret the gestures and map them to the correct keyboard shortcuts. | ||
| + | |||
| + | The recommended and most widely used tool for this purpose is **`libinput-gestures`**. | ||
| + | |||
| + | Here is a general outline of the steps you would take to set this up. | ||
| Line 17: | Line 134: | ||
| cp / | cp / | ||
| + | |||
| + | # By default, the keyboard shortcuts in Xfce to switch workspaces are usually **`Control + Alt + Left/Right Arrow`**. | ||
| + | |||
| + | # **Edit the configuration file** (`~/ | ||
| + | vi ~/ | ||
| + | |||
| + | # **Find or add the following lines** to map the 3-finger swipes to the Xfce workspace shortcuts: | ||
| + | # ```conf | ||
| + | # # Swipe left with 3 fingers to move to the next workspace (Control+Alt+Right) | ||
| + | # gesture swipe left 3 xdotool key Control+Alt+Right | ||
| + | # | ||
| + | # # Swipe right with 3 fingers to move to the previous workspace (Control+Alt+Left) | ||
| + | # gesture swipe right 3 xdotool key Control+Alt+Left | ||
| + | # ``` | ||
| + | |||
| + | ### 4\. Enable Autostart and Restart | ||
| + | |||
| + | # 1. **Enable the utility to start automatically** when you log in: | ||
| + | libinput-gestures-setup autostart | ||
| + | |||
| + | # 2. **Restart the gesture utility** to load the new configuration: | ||
| + | libinput-gestures-setup restart | ||
| </ | </ | ||
| + | |||
| + | |||
| + | Note: | ||
| + | <code bash> | ||
| + | xinput list | ||
| + | # relevant id for example = 10 | ||
| + | |||
| + | # | ||
| + | #❯ xinput get-button-map 10 | ||
| + | #1 2 3 4 5 6 7 8 9 10 11 12 | ||
| + | |||
| + | xinput set-button-map 10 1 1 3 | ||
| + | |||
| + | </ | ||
| + | |||