Commit Graph

495 Commits

Author SHA1 Message Date
github-actions c3e8a6de72 [CI] chore: update flake 2025-09-17 01:48:57 +00:00
github-actions 65df31dca4 [CI] chore: update flake 2025-09-16 01:48:54 +00:00
2 * r + 2 * t ad6df1c9d2 record: add extraArgs config 2025-09-15 23:18:08 +10:00
github-actions e038c5d86a [CI] chore: update flake 2025-09-15 01:57:49 +00:00
2 * r + 2 * t e560a6e3d2 version: catch correct error 2025-09-14 20:45:57 +10:00
2 * r + 2 * t 62e7911864 version: fix pacman + use shell version helper v1.0.1 2025-09-14 00:12:42 +10:00
2 * r + 2 * t 6f8e5849cb readme: update installation section
Add stable/unstable packages + nix
2025-09-14 00:03:22 +10:00
2 * r + 2 * t 54f7611437 ci: create release v1.0.0 2025-09-13 23:36:01 +10:00
2 * r + 2 * t 2eda287a80 record: wl-screenrec -> gpu-screen-recorder
Supports NVIDIA, so no need for having a fallback
Also supports pausing
2025-09-13 22:58:57 +10:00
github-actions 4263e5f809 [CI] chore: update flake 2025-09-13 01:43:07 +00:00
github-actions 70ce21f798 [CI] chore: update flake 2025-09-12 01:50:38 +00:00
github-actions 3f57cd71d1 [CI] chore: update flake 2025-09-11 01:51:24 +00:00
github-actions ad962cb572 [CI] chore: update flake 2025-09-10 01:48:37 +00:00
sweenu 3319d2ca19 theme: continue execution after failure for one theme (#50) 2025-09-09 13:59:04 +10:00
hoangbaoa c20bc567a4 resizer/pip: account for monitor scale (#51) 2025-09-08 23:32:30 +10:00
github-actions d7b7d2ae04 [CI] chore: update flake 2025-09-07 01:59:27 +00:00
github-actions 12abcf2336 [CI] chore: update flake 2025-09-06 01:47:03 +00:00
github-actions d6c1e13246 [CI] chore: update flake 2025-09-05 01:50:33 +00:00
github-actions 597780ba78 [CI] chore: update flake 2025-09-04 01:47:51 +00:00
github-actions 47730a22b9 [CI] chore: update flake 2025-09-03 01:47:08 +00:00
github-actions f4fee9c3d5 [CI] chore: update flake 2025-09-02 01:55:09 +00:00
github-actions 67942d1d7a [CI] chore: update flake 2025-09-01 02:08:56 +00:00
2 * r + 2 * t fc09d2fcd3 ci: fix update-emojis 2025-08-31 14:47:15 +10:00
github-actions 351ebb60c6 [CI] chore: update flake 2025-08-31 02:01:49 +00:00
2 * r + 2 * t 8bc7e495af dev: better direnv
Override caelestia command with dev version instead of using ./run.sh
Allows completions to work
2025-08-30 22:19:33 +10:00
Matheus Oliveira 35b10394b6 record: fix wf-recorder audio flag and proc error handling (#48)
* fix(recording): Fix wf-recorder audio flag and improve process monitoring

- Fix incorrect audio flag format for wf-recorder(Invalid whitespace)
  Changed from `-a <device>` to `--audio=<device>` as per wf-recorder docs:
  "Specify device like this: -a<device> or --audio=<device>"

- Add fallback to IDLE audio sources
  Audio sources are typically in IDLE state when no media is playing.
  Now falls back to IDLE sources if no RUNNING sources are found,
  ensuring audio capture works when recording starts during silence
  but media plays later.

- Improve process startup monitoring
  The 0.1s sleep was insufficient for reliable process detection on NVIDIA systems.
  Process would start and immediately die ~90% of the time when triggered via keybinds.
  Now shows immediate UI feedback then monitors for 3 seconds to ensure
  stable process startup while maintaining responsive user experience.

* check returncode + timeout 3s -> 1s + format

---------

Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
2025-08-30 21:59:26 +10:00
github-actions 46a9516f72 [CI] chore: update flake 2025-08-30 01:47:27 +00:00
github-actions 7467089ebe [CI] chore: update flake 2025-08-29 01:53:00 +00:00
github-actions eb18d29056 [CI] chore: update flake 2025-08-28 01:53:14 +00:00
github-actions 59d1bb532a [CI] chore: update flake 2025-08-27 01:57:12 +00:00
github-actions a9ab4a02d5 [CI] chore: update flake 2025-08-26 01:57:21 +00:00
github-actions 683172ed65 [CI] chore: update flake 2025-08-25 02:01:00 +00:00
github-actions 4782799b55 [CI] chore: update flake 2025-08-24 02:06:56 +00:00
2 * r + 2 * t db1e0da5bb Revert "shell: set QT_QPA_PLATFORMTHEME env"
This reverts commit 99142f11ad.
2025-08-23 22:31:18 +10:00
2 * r + 2 * t 6cdfe72e8b wallpaper: random prevent duplicate 2025-08-23 16:22:09 +10:00
github-actions 78be122d0c [CI] chore: update flake 2025-08-23 01:52:01 +00:00
github-actions 838749ef0a [CI] chore: update flake 2025-08-22 01:56:10 +00:00
github-actions 3802bccc6f [CI] chore: update flake 2025-08-21 01:55:22 +00:00
Matheus Oliveira 12f0d51862 record: use correct proc (#47)
Previously, the start() function always invoked 'wl-screenrec' regardless of detected GPU, which prevented recording on systems with NVIDIA GPUswhen 'wf-recorder' is available.

This change updates start() to launch the recorder stored in
self.recorder, ensuring the correct recorder is used based on GPU detection.
2025-08-20 12:19:06 +10:00
github-actions 202f687dde [CI] chore: update flake 2025-08-20 01:56:46 +00:00
2 * r + 2 * t 99142f11ad shell: set QT_QPA_PLATFORMTHEME env
Hopefully fixes most people's icon issues

Fixes caelestia-dots/shell@390
2025-08-19 17:15:36 +10:00
2 * r + 2 * t f2a9bf2490 ci: fix update flake action
Also update readme help
2025-08-19 15:42:32 +10:00
Batuhan Edgüer c72223a7e6 feat: window resizer command & daemon (#43)
* resizer: add window resizer daemon command

Implements a continuous window resizer daemon that automatically resizes
windows based on configurable rules. Features include:

- Listens to Hyprland socket events for real-time window detection
- Supports multiple match types: initial_title, title_contains, title_exact
- Configurable via CLI config file with fallback to sensible defaults
- Rate limiting to prevent excessive resize operations
- Window actions: float, center, and custom dimensions
- Integration with existing CLI structure

Usage: caelestia resizer --daemon

* refactor: replace pip daemon with integrated resizer functionality

## Summary
- Remove standalone pip daemon and integrate its functionality into the resizer
- Add regex matching, config support, and active mode to resizer
- Implement clean 'caelestia resizer pip' command for quick PiP operations
- Update keybinds to use new unified resizer command

## Why Replace the Old PiP Method?

### 1. Code Duplication
The old pip daemon duplicated window management logic that already existed in the resizer:
- Both daemons listened to Hyprland socket events
- Both had similar window detection and manipulation code
- Both needed rate limiting and error handling

### 2. Limited Functionality
The old pip daemon was restricted:
- Only worked with regex pattern matching for 'Picture in Picture' titles
- No configuration support for custom rules
- No way to apply PiP to arbitrary windows
- No integration with other window actions

### 3. Maintenance Overhead
Having two separate daemons created maintenance issues:
- Two different codebases to maintain and debug
- Potential conflicts when both daemons run simultaneously
- Inconsistent error handling and logging approaches

### 4. Review Feedback Implementation
The PR review specifically requested this consolidation:
- "This can actually probably replace the pip daemon entirely"
- "consider adding a regex match mode and pip action, then add that to the default rules"

## New Integrated Approach Benefits

### 1. Unified Window Management
- Single daemon handles all window operations (resize, float, center, pip)
- Consistent configuration format using camelCase
- Shared error handling and rate limiting

### 2. Enhanced PiP Functionality
- Works with any window title pattern (regex, contains, exact)
- Configurable through CLI config file
- Active mode: `caelestia resizer pip` for quick PiP on current window
- Better error messages and user guidance

### 3. Future-Proof Architecture
- Easy to add new window actions (e.g., minimize, maximize, workspace move)
- Extensible pattern matching (could add class-based matching)
- Single place to implement new Hyprland features

### 4. Improved User Experience
- Simpler command structure: `caelestia resizer pip` vs complex arguments
- Better error messages when windows aren't floating
- Consistent CLI interface across all window operations

## Implementation Details
- Added pip action to WindowRule system
- Integrated original pip calculation with minimum size constraints
- Added type safety improvements throughout
- Maintained backward compatibility for existing users
- Updated keybind: `bind = $kbWindowPip, exec, caelestia resizer pip`

* fix: unpack dispatch_commands list in hypr.batch call

- Fix 'sequence item 0: expected str instance, list found' error
- hypr.batch() expects individual string arguments, not a list
- Use *dispatch_commands to unpack the list properly

* fix: handle Hyprland event format with triple > separators

- Fix window ID parsing for events with >>> instead of >>
- Add .lstrip('>') to remove any leading > characters
- Support both >> and >>> formats for compatibility
- Fixes 'Invalid window ID format: >555ee935ba30' errors

* resizer: implement active mode for all matching windows

Active mode now searches through all open windows and applies the rule to
any that match the specified pattern, rather than just checking if the
currently active window matches. This allows for batch operations on
multiple windows with the same pattern.

Special case: using pattern "active" will still target only the currently
active window, allowing users to apply rules to just the focused window
when needed.

This addresses the latest review feedback requesting that active mode work
on any open window that matches the given pattern.

* parser: better resizer help

* completions: add for resizer

---------

Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
2025-08-18 17:39:35 +10:00
Batuhan Edgüer 3e19fd6919 theme: add nvtop, htop, and cava support (#45)
* templates: add nvtop, htop, and cava support

* Triggers htop and cava theme reloads

Sends a USR2 signal to htop and cava after their themes are applied. This prompts the applications to reload their configuration files, ensuring new themes are visible instantly without requiring a manual restart.
2025-08-18 17:18:26 +10:00
github-actions febcc5662a [CI] chore: update flake 2025-08-18 02:11:43 +00:00
2 * r + 2 * t f280b9cbb6 schemes: add dark green scheme
Scheme by @depcustodian with some tweaks
2025-08-17 15:25:12 +10:00
2 * r + 2 * t b22ab08a37 pip: use batch request 2025-08-17 15:02:12 +10:00
github-actions ebca5f8557 [CI] chore: update flake 2025-08-17 02:11:15 +00:00
Batuhan Edgüer 63e2132830 theme: add Warp terminal theme support (#42)
* theme: add Warp terminal theme support

Add support for Warp terminal theming with proper template and integration.
- Add warp.yaml template with standard theme variables
- Implement apply_warp function with correct 'darker'/'lighter' values
- Integrate with main theme application pipeline via enableWarp config

* warp: improve theme generation and use proper data directory

- Use gen_replace with hash=True for consistent color formatting
- Remove # symbols from template to avoid double hashes
- Replace warp_mode manually after gen_replace instead of adding to colors dict
- Use data_dir for XDG-compliant theme location
2025-08-17 02:17:39 +10:00
2 * r + 2 * t 1cd8cae2d9 paths: fix custom path envs
Specify whole path instead of end
2025-08-16 18:07:29 +10:00