Commit Graph

83 Commits

Author SHA1 Message Date
Jas Singh 7b5c339e93 Fix: styling side-effects are no longer visible on monitors with no bars. (#864) 2025-03-24 22:46:58 -07:00
Jas Singh 8068663466 Fix: Allow vertical monitors to be recorded properly instead of erroring. (#861) 2025-03-24 22:25:15 -07:00
Siddharth Jain dba7ac64c6 Feat: Added a configuration option to define the save location of recordings.
* Add file picker for saving screen recordings

Implemented a file picker using Zenity to allow users to choose the save location for their screen recordings after stopping.

Replaced the hardcoded save path with dynamic user input.

Improved the notification system to inform users when recordings are saved or discarded.

* Refactored RecordingButton to fetch the latest recording path dynamically.

Removed static path references, ensuring the updated path from Hyprpanel config is always used.

* Update screen_record.sh

Added comment why use "sleep 1" at line 80

* Update module.nix

Updated nix module.

* Expand ~ in output directory, set default path, and add validation

- Properly expand `~` to `$HOME` in the output directory path.
- Set default recording directory to `$HOME/Videos` if none is provided.
- Validate that the output directory exists before starting a recording.

* Update scripts/screen_record.sh

Co-authored-by: Chase Taylor <11805686+dotaxis@users.noreply.github.com>

* Update scripts/screen_record.sh

Co-authored-by: Chase Taylor <11805686+dotaxis@users.noreply.github.com>

* Code Quality Check.

* Update RecordingButton.tsx

Removed debug logs as well.

* Update src/components/menus/dashboard/shortcuts/buttons/RecordingButton.tsx

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>

* updated RecordingButton.tsx && helper.tsx

Fixed the issues pointed by @Jas-SinghFSU

* Update RecordingButton.tsx

Fixed few linter errors.

---------

Co-authored-by: Chase Taylor <11805686+dotaxis@users.noreply.github.com>
Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
2025-03-24 20:52:17 -07:00
davfsa c57d512ced Fix notifications border rounding (#856)
Signed-off-by: davfsa <davfsa@gmail.com>
2025-03-24 18:32:29 -07:00
Niklas Choinowski b9aa6854f6 fix: removed opt.initial becouse opt.value will always hold either the user defined value or the default 2025-03-19 06:54:48 +01:00
Niklas Choinowski b4506130f9 fix: use current value instead of initial to not override already set settings
Co-Authored: @PhoenixGamer339
2025-03-18 21:03:59 +01:00
Jas Singh a4e9a99f82 Fix: Added a fallback workspace icon for applications. (#845) 2025-03-17 20:54:38 -07:00
davfsa 7fe89ac5eb Add up-to-date default workspace labels (#709)
* Add up-to-date workspace labels

* Use iterators instead of creating copies of the mappings

* Re-add guard clause

Signed-off-by: davfsa <davfsa@gmail.com>

* merge origin

* Fix duplicate icons and simplify implementation.

---------

Signed-off-by: davfsa <davfsa@gmail.com>
Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
2025-03-17 19:05:14 -07:00
davfsa 14b17c0667 Improve network bar (#813)
* Improve network bar

- Improve consistency of status updates by using `state` and
`connectivity`
- Add 'Off' text based on WiFi adapter status

* Update src/components/bar/modules/network/index.tsx

---------

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
2025-03-16 23:15:23 -07:00
davfsa a949b34632 Feat: Add live reloading of configuration file (#684)
* Add live reloading of configuration file

This also removes the need for a file with all the available
configuration and a shadow configuration file.

Additionally, added several improvements:
1. Reduce I/O on initial configuration loading by only reading file once
2. Remove unnecesary back and forth events when editing configuration

* Add missing return type

* Consistently reset on config changes and error if failed to initialize config

* Fix massive I/O load on startup by numerical options

* Use _findVal when monitoring config file

* Apply PR requested changes

Signed-off-by: davfsa <davfsa@gmail.com>

* Add missing =>

Signed-off-by: davfsa <davfsa@gmail.com>

* Fix reassignment to const, change to let.

---------

Signed-off-by: davfsa <davfsa@gmail.com>
Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
2025-03-16 02:39:25 -07:00
dann-merlin 2be9f1ef6c Fixed an issue that would prevent the media menu from going fully transparent. (#796)
The menu-items-section box of the media menu was not transparent by
default. Usually it is fully shadowed by its child "menu-content".
The color and tint of the can be configured by the user.
However, because the menu-items-section box behind the card had a
solid color, it was impossible to configure a transparent card.

Co-authored-by: Merlin Sievers <merlin.sievers@posteo.net>
Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
2025-03-01 13:12:59 -08:00
Alejandro 28d2884b2f Add Zen browser to window titles and media. (#790)
Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
2025-03-01 13:00:48 -08:00
Dany Sluijk c181f1dd1f Hyprpanel config can now be represented as true JSON (#788)
* feat(config): allow reading of JSON nesting

* organized code

Signed-off-by: Dany Sluijk <me@dany.dev>

* style(lib/option): remove unnessesary comments

---------

Signed-off-by: Dany Sluijk <me@dany.dev>
Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
2025-03-01 12:23:18 -08:00
davfsa b1526445f3 Ensure notification service is available when sending a notification (#720)
* Ensure notification service is available when sending a notification

This is a bit of a weird patch for a fundamental order-of-execution
issue.

The bundler (esbuild) can sometimes place the `notifdService`
instantiation bellow the code calling `Notify`, which would causes the
`notify-send` execution to fail. To avoid this, we can make it seem like
`notifdService` is being used inside `Notify`, so that it is always
placed above the usage of the function, ensuring that we always have a
notification daemon running

* Add eslint-disable-line

* Update src/lib/utils.ts

---------

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
2025-02-28 23:45:07 -08:00
Jas Singh 429b56484d Update all references from gpu-screen-recorder to wf-recorder (#806) 2025-02-27 23:46:33 -08:00
Chase Taylor 5075c94af2 Add region screen recording (#791)
* Add region screen recording

* Update readme

* Use get-default-sink and software encoding

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>

* Remove log file creation logic

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>

---------

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
2025-02-27 17:47:21 -08:00
Jas Singh f69a0841a8 Create Microphone bar module. (#801)
* Implement microphone module.

* Add catppuccin themes

* Add rest of themes

* Fix comment

* Add nix settings
2025-02-27 01:24:07 -08:00
Jas Singh 3419315e65 Made shadows togglable with default set to false. (#786) 2025-02-19 17:23:57 -08:00
davfsa f8bbd0af80 Fix undefined tooltip text (#780) 2025-02-18 09:44:43 -08:00
Jas Singh 9b342341fe Added shadows to the Bar, Menus, OSD and Notifications. (#777)
* Added shadows to the Bar, Menus and notifications.

* Add OSD shadows
2025-02-16 21:41:52 -08:00
Jas Singh 3698bfe2b3 Replaced the underlying structure of Hypridle inhibitor to the Astal Idle Inhibitor module. (#776)
* Update hypridle module to be an all-purpose idle inhibitor module using Astal inhibiting.

* Fix types and module code.

* Update note

* Removed lingering comment.

* Remove hypridle from dependencies.
2025-02-16 12:20:29 -08:00
Jas Singh c309a73d2d Fixed an issue that would cause a hidden bar to unhide when a workspace changed. (#771)
* Fixed an issue that would cause a hidden bar to unhide when a workspace is changed.

* Remove jsdoc for param that doesn't exist.
2025-02-15 00:01:51 -08:00
wistfulbrick 4424a523bf Workaround unreliable GDK geometry scaling for matching monitors (#768)
* Workaround unreliable GDK geometry scaling for matching monitors

* Extra monitor matching handling for transforms/rotation and fractional scaling

* Add monitor key matching debug logging

* Fix fractionally scaled monitor matching, plus slight refactor

* Fix rotation logic

* Use console.debug for debug logging, run linting

* Fix Type errors

* Update debugging comment after testing

* Linting again..
2025-02-14 00:41:45 -08:00
Jas Singh 0d5f80ff5c Check if client.workspace is not undefined or null. (#765) 2025-02-08 00:17:32 -08:00
Jas Singh 6b846b9709 Remove global service declarations and change to declarations upon usage. (#761)
* Remove global service declarations and change to declarations upon usage.

* Only load cava service if cava is enabled.
2025-02-06 02:15:20 -08:00
Jas Singh 74065af3d2 Window client title now updates appropriately. (#741)
* Window client title now updates appropriately.

* Update src/components/bar/modules/window_title/helpers/title.ts
2025-01-25 00:24:15 -08:00
davfsa 562eb64e12 Fix weather api call when query has multiple spaces (#731) 2025-01-19 21:24:35 -08:00
Keon Lee 88609f7e4c feat: add padding option for inactive workspace numbers (#702)
* feat: add padding option for inactive workspace number

* chore: reorder options to gather padding related options

---------

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
2025-01-15 23:12:21 -08:00
davfsa 636f031b77 Code cleanup (#719)
- Remove random call to `print`
- Remove double declaration of notifdService
2025-01-12 23:53:32 -08:00
Jas Singh fab3a8c3a1 Remove the unintended empty space from the power module in the bar. (#714) 2025-01-11 12:40:02 -08:00
davfsa a9ad71ff42 Update bluetooth label when a new device connects/disconnects (#708) 2025-01-11 00:07:03 -08:00
Jas Singh 1812193658 Added ghostty to the window titles. (#706) 2025-01-09 23:21:06 -08:00
Jas Singh 24a718bacb Update wallpaper transition fps and swww dependency is only checked if wallpaper is enabled. (#703) 2025-01-08 18:43:58 -08:00
Amaan Qureshi 9663d2f6b7 fix(window-title): correct Thorium title name (#700) 2025-01-07 21:51:28 -08:00
Jas Singh e525d9e03a Update how conditional elements are rendered for bar modules. (#688) 2025-01-03 00:23:10 -08:00
emanuel 0533965c86 chore(scss): remove min-width on volume button (#676)
It's awkward to have a min-width on volume percentage and not on battery, it looks more natural when fitting the content so I removed the min-width

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
2025-01-02 22:53:50 -08:00
Ed Bennett 6efcd60467 Cava Module (#662)
* First version of the cava module

* Update cava stuff

* Update themes for cava

* Update themes

* Handle cava visibility when null

* Add bar characters in options

---------

Co-authored-by: Ed Bennett <ed@dodimead.com>
Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
2025-01-02 22:45:37 -08:00
Jas Singh a071e4c17d Updated popup menu layouts and fixed workspace behavior. (#687) 2025-01-02 22:33:34 -08:00
Jas Singh 210d5e2a5e Fixed an issue that would cause the scroll direction to be inverted on secondary monitors. (#683)
* Fixed an issue that would cause the scroll direction to be inverted on secondary monitors.

* Update import paths and tsconfig.
2024-12-31 03:20:47 -08:00
Jas Singh 7204ba657b Fix startup window rules. (#682) 2024-12-31 02:17:23 -08:00
Jas Singh 5f72b4f5e1 Workspaces now show up on their appropriate monitors. (#681)
* Workspaces now show up on their appropriate monitors.

* Fixed undefined rules showing up.
2024-12-31 01:33:40 -08:00
Jas Singh d2e02f553a OSDs are now click through and can have borders. (#674) 2024-12-30 04:09:16 -08:00
Jas Singh d49a750bfd Added an option to toggle auto-dismissal of notifications. (#673) 2024-12-30 01:23:52 -08:00
Jas Singh 2b06b214a8 Added a notification if an import or export of a config/theme fails. (#664)
* Added a notification if an import or export of a config/file fails.

* Use const
2024-12-28 18:56:51 -08:00
Jas Singh 9343ae85a3 Fix the font selector. (#660) 2024-12-28 17:55:20 -08:00
Jas Singh a7b553725c Update meson (#647)
* Update meson

* update

* Use build_always_stale instead of manually defining files to track.

* Clean up tsconfig
2024-12-28 03:48:52 -08:00
Jas Singh 45cb701b3b Hyprland clients are now fetched from a binding instead of get_clients(). (#642)
* Get clients from bindings.

* Active workspaces now show properly on all workspace configurations.

* Filter clients by current workspace.
2024-12-27 01:03:40 -08:00
Jas Singh 5163095701 Fixed an issue that would prevent the volume menu border color from being set. (#641) 2024-12-26 16:53:02 -08:00
Jas Singh dd931f493d Hyprpanel config no longer resets if there is a parsing error. (#640) 2024-12-26 16:33:43 -08:00
Jas Singh 0c9b72708e Added a built in default update script. (#631)
* Added a built in default update script.

* Remove exit
2024-12-26 02:10:39 -08:00