Commit Graph

173 Commits

Author SHA1 Message Date
painerp
afb245f8d6 Fixes the window title label option (#272)
* fix window title label option not being respected

* add window title icon and label side effects

* add new line to SideEffects.ts

* fix window title children type
2024-09-20 23:44:54 -07:00
Jas Singh
a8919c395f Fixed volume zero icon bug. (#270) 2024-09-17 18:36:56 -07:00
Jas Singh
f09ffa7699 Implement custom icons per workspace. (#261)
* Implement custom icons per workspace.

* Finish custom workspace icon implementation

* Remove unsupported color definition.
2024-09-15 15:19:32 -07:00
Jas Singh
8c2537b917 Added the ability to change bar locations. (#257)
* Added the ability to change bar locations.

* Update dropdown margins

* Make dropdown to bar gap configurable and organized code.
2024-09-14 23:29:00 -07:00
Jas Singh
2c72cc66d8 Implemented strict linting standards and prettier formatting config. (#248)
* Implemented strict linting standards and prettier formatting config.

* More linter fixes and type updates.

* More linter updates and type fixes

* Remove noisy comments

* Linter and type updates

* Linter, formatting and type updates.

* Linter updates

* Type updates

* Type updates

* fixed all linter errors

* Fixed all linting, formatting and type issues.

* Resolve merge conflicts.
2024-09-14 16:20:05 -07:00
Jonas
de50a01e21 support "*" as wildcard layout key (#252)
allows specifing a default layout that applies for all monitors if no
more specific layout is found.
2024-09-14 12:13:49 -07:00
Jas Singh
af51aa838d Added an option to make HyprPanel compatible with Hyprland tearing. (#243)
* Adding an option to make HyprPanel compatible with Hyprland tearing.

* Added bar to Tearing Compatibility checks
2024-09-10 00:58:27 -07:00
Jas Singh
4721b4fbf9 HyprPanel now handles notification removal itself. (#242) 2024-09-09 23:03:01 -07:00
Jas Singh
bb3b3dfdfb Added strict type checking to the project. (#236)
* Implement strict typing (WIP).

* changes

* Finish type checks

* Fix notification icon, matugen settings and update tsconfig.

* OSD Styling updates and added the ability to configure OSD duration.
2024-09-09 00:44:51 -07:00
painerp
1aed9f51f9 Adds more window title options (#169)
* Adds options for windowtitle to toggle: custom title, icon and truncation

* Implements window title toggles: showIcon and showCustomTitle; Adds a new default title function and truncates it if specified

* incorporate new show label option into window title

* fix window title spacing to work with new styles

* allows truncation for custom window titles

* allows custom window title icon with default window title

* add option to show the window class name or title; refactor for consistency and easier readability

* remove redundant custom window title check
2024-09-08 13:09:13 -07:00
Jas Singh
4f91bb8b8f Added filters for notifications and system tray items. (#234)
* Added filters for notifications and systray. closes #233

* Add links to documentation.
2024-09-08 02:01:13 -07:00
Jas Singh
bd573ec4e7 Updated weather and power button icons to use text-icons rather than system icons. (#232)
* Replace weather and power icons with nerdfont icons.

* Update power icons for power dropdown menu.
2024-09-07 13:24:30 -07:00
Hristo Karamanliev
c0561a7c8d Option to change the visibility of the media button (#226)
* add option entry and default value

* add functionality

* Update options copy

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

* Remove redundant visibility property

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

* changing the option takes effect immediately

---------

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
2024-09-05 19:51:36 -07:00
Hristo Karamanliev
024986d7be indicate that screen recording is active by changing button color (#218) 2024-09-03 01:56:25 -07:00
Hristo Karamanliev
88bdcbe806 Fix record screen selection popup not displaying (#217)
* fix record screen selection popup not displaying

* fix hard coded file manager that opens the dir

* fix hard coded file manger in snapshot.sh
2024-09-03 01:52:30 -07:00
Jas Singh
4cdda38604 Implement framework for custom modules and out of the box custom modules as well. (#213)
* Create declarative module scaffolding

* Added ram module (WIP)

* Updates to options, styling and more.

* Added function for styling custom modules.

* Added utility functions and cleaned up code

* Type and fn name updates.

* Update module utils to handle absent values.

* Added icon color in style2 that was missing.

* Linted utils.ts

* Add CPU module and update RAM module to use /proc/meminfo.

* Added disk storage module.

* Consolidate code

* Added netstat module and removed elements from systray default ignore list.

* Added keyboard layout module.

* Fix hook types and move module to customModules directory

* Added updates modules.

* Spacing updates

* Added weather module.

* Added power menu and power module in bar. Increased update default interval to 6 ours.

* Updated styling of bar buttons, made power menu label toggleable, etc.

* Consolidate code and add dynamic tooltips based on data being used.

* Make default custom mogules matugen compatible

* Update base theme

* Fix custom module background coloring

* Remove testing opacity.

* Update themes to account for new modules

* Update nix stuff for libgtop (Need someone to test this)

* Update nix

* Update fractions to multiplications

* Move styling in style directory

* Implement a polling framework for variables that can dynamically adjust polling intervals.

* Netstat module updates when interface name is changed.

* Readme update
2024-09-02 21:10:59 -07:00
Jas Singh
4f009b9978 Fixed an issue with the bar now displaying on startup. (#215) 2024-08-31 20:40:29 -07:00
Jas Singh
44fddbcc14 Made the profile image avatar in the dashboard configurable (size, radius). (#212) 2024-08-31 12:48:32 -07:00
Jas Singh
e050e2ff2d Shortcut buttons in the dashboard automatically hide and scale. (#210) 2024-08-31 02:17:05 -07:00
Jas Singh
f624153eab Added pagination to the notifications menu and a configurable limit to the amount of notifications spawned. (#199)
* Added notification pagination and pagination configuration options. fixes #171

* Added skip to end buttons

* Update theme

* Removed unused theme parts

* Update pager colors

* Theme auto-generator

* Update label color in options for pager.

* Updated themes

* Added option to change footer background for notifications menu.

* Changes to the Displayed Total options now update the menu. Bugfix
2024-08-30 01:32:11 -07:00
Jas Singh
f80b3e4ef6 Fixed an issue that would occur when providing px values for bar margin_top. (#206)
* Fixed an issue that would occur when providing px values for bar margin_top.

* Adjust margin
2024-08-29 22:07:01 -07:00
Jas Singh
fc2b781673 Made unoccupied workspaces setting more compaitble with # of workspaces assigned. (#192)
* Made unoccupied workspaces setting more compaitble with # of workspaces assigned.

* Updated monitor listings

* Fix scenario where workspace rules aren't defined.

* Refactor for clean up and use workspace names instead of loop index.
2024-08-25 22:32:00 -07:00
Jas Singh
cedf94ff41 Remove uninended logs statements. (#191) 2024-08-25 18:59:22 -07:00
Jas Singh
60096ced7c Added the ability to hide unoccupied workspaces. (#189)
* Consolidated workspace logic

* Added the ability to hide unoccupied workspaces.
2024-08-25 18:11:15 -07:00
Jas Singh
5db6eb336e 24hr time switch set in the Clock Menu now effects notification time also. (#184) 2024-08-25 03:48:07 -07:00
Jas Singh
b080d6b00d Added an icon to the calendar widget in the bar. (#181)
* Added an icon to the calendar widget in the bar.

* Updated themes for calendar icon.
2024-08-24 23:52:33 -07:00
Jas Singh
2908ff7dd6 Added 3 new styles for bar buttons. (#168)
* Added a new style called split for bar buttons

* Added wavy button styles.

* Added padding configuration

* Update bar padding

* Fix styling for battery style2

* Fix icon only setting for bar

* Update types and options

* Add button style to exported theme props.

* Fix top margin for menus.
2024-08-24 00:01:21 -07:00
greed
ff29790317 Add more window title (#160)
* `chore` : add more window titles

* Update modules/bar/window_title/index.ts

* Update modules/bar/window_title/index.ts

* `chore` : add more title

---------

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
2024-08-21 23:46:21 -07:00
Jas Singh
c769ebb27b Added bar button & button hover opacity option and fixed workspace module hover styling. (#166) 2024-08-21 20:02:00 -07:00
painerp
1e6f1570b1 Fixes a OSD bug when un-/muting and adds a toggle to display volume as 0 when muting (#151)
* added muted_zero option to only display 0 volume in osd when enabled

* Fix OSD brightness persisting overflow class

* Update modules/osd/bar/index.ts

* Apply suggestions from code review

---------

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
2024-08-19 20:57:23 -07:00
greed
6bb71eadf5 chore : add more window titles (#147)
* `chore` : add more window titles

* Update modules/bar/window_title/index.ts

* Update modules/bar/window_title/index.ts

---------

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
2024-08-19 20:55:34 -07:00
Jas Singh
830de04b14 Added scaling to individual elements (all menus and the bar). (#154)
* Added scaling to individual elements (all menus and the bar).

* Make all dialog pages scrollable

* Add battery menu to settings

* update battery menu scaling

* Fix typo

* Add confirmation dialog scaling
2024-08-18 18:03:45 -07:00
Jas Singh
6c8615c278 Added an option to define custom window title mappings. (#149) 2024-08-18 02:07:30 -07:00
Jas Singh
b200b6fadb Fix NerdFont icon alignments. (#143)
* WIP

* Fix nerdfont icon alignments

* Ship needed fonts

* Remove italicised fonts

* Update readme and separate OSD settings into their own category.

* Dashboard styling updates

---------

Co-authored-by: matavach <erik@matijevich.org>
2024-08-18 00:32:22 -07:00
Jas Singh
a1beac4c05 Added the ability to change the layer of the bar (#146) 2024-08-17 13:13:41 -07:00
matavach
b3b397d479 Workspace bar changes (#129)
* workspace mask + 'color only' indicator

* edits

* edits - 2

* Update modules/bar/workspaces/index.ts

---------

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
2024-08-16 21:52:07 -07:00
Jas Singh
84e85b168e Implement a CLI command to change themes. (#136)
* Implement cli based theme applier.

* Remove references to old globalMousePos

* Use direct file path instead.
2024-08-16 00:49:24 -07:00
orangc
250443de63 Make media label togglable (#122)
* make it possible to truncate media title to 0

* undo oopsie

* apply @painerp change

* make the label togglable

* Update widget/settings/pages/config/bar/index.ts

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

* Update modules/bar/media/index.ts

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

* Update modules/bar/media/index.ts

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

* Update modules/bar/media/index.ts

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

---------

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
2024-08-14 18:18:13 -07:00
Jas Singh
ea2ebc5c4b Fixed a deadzone caused by notifications. (#119) 2024-08-12 22:46:37 -07:00
Jas Singh
b23f1a32cb Fixed styling issues for various elements that weren't being applied via settings. (#118)
* Popups are now styles properly and can be themed. closes #115

* Added the ability to style media menu card color and transparency. Made confirmation dialogue optional.

* Increase radius

* Move actions inside the function to reflect updated values.
2024-08-12 21:38:27 -07:00
Jas Singh
79bf05d9c9 Hyprland scaling updates are now properly reflected without having to restart ags. (#113) 2024-08-11 20:38:50 -07:00
Jas Singh
c9e3a29edc Workspaces are now handled properly for scrolling when there are no rules defined for them. (#112)
* Workspaces are now handled properly for scrolling when there are no rules defined for them.

* Discard spaces that were added by formatting... or something?

* Another whitespace revert
2024-08-11 20:13:31 -07:00
Jas Singh
0d7bd7dbc2 Gracefully handle the scenario where workspace rules for a monitor are undefined. (#108)
* Gracefully handle the scenario where workspace rules for a monitor are undefined.

* Added type definitions to function outputs.
2024-08-10 22:43:41 -07:00
matavach
a3178678dd quick fix to regex, and added trunc indicator (#104) 2024-08-10 21:37:07 -07:00
Jas Singh
0898c98f9c Monitor identification update. (#107)
* Add proper gtk to hyprland monitor mapping

* Updated the monitor identification logic to sync GDK monitor IDs properly with hyprland monitor IDs.

* Remove console statement.

* Revert this to how it was before since its exactly the same thing.
2024-08-10 18:34:55 -07:00
Jas Singh
f3d287ad59 Fixed the media scroller to work on the active player. (#101)
* Fixed the media scroller to work on the active player.

* Check existence of player first.
2024-08-10 00:45:12 -07:00
matavach
48a5bedb37 Notification monitors (#81)
* added monitor options for notifications

* added monitor options for notifications

* ..

* added changes

* Update widget/settings/pages/config/notifications/index.ts

* Added the ability for left/right anchors for notifications and updated types to reflect that.

* merge (not sure if I did this correct)

* Implemented Wallpaper Selector and Matugen's Wallpaper based auto-theming. (#73)

* Implement matugen - WIP

* Added matugen

* Add types and cleanup code

* Matugen implementation updates and added more options such as scheme and contrast.

* Code cleanup and matugen settings renamed for clarity.

* Makon maroon a primary matugen color.

* Updates to handle variations of matugen colors

* Finalizing matugen and wrapping up variations.

* Minor styling updates of the settings dialog.

* Do a swww dependency check.

* Dependency logic update

* Switch shouldn't double trigger notifications now when checking dependency.

* Logic was inverted

* Add matugen to dependency checker.

* Fixed dependency checking conditional

* Update dependency list in readme and check for matugen before doing matugen operations

* Styling fixes

* OSD Fix

* Remove unused code from wallpaper service.

* Color fixes for matugen.

* Nix updates for new dependencies

* Change default wallpaper to empty.

* Added custom notification service for startup, cleaned up code and updated readme.

* added options for bar media module (#88)

* added options for bar media module

* added reviewed changes

* cleaned up

* Made the media player more responsive and accurate. (#95)

---------

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
2024-08-09 17:33:30 -07:00
Jas Singh
87d661021d Made the media player more responsive and accurate. (#95) 2024-08-07 23:25:28 -07:00
matavach
407c8aa304 added options for bar media module (#88)
* added options for bar media module

* added reviewed changes

* cleaned up
2024-08-07 22:19:14 -07:00
Jas Singh
f5b75edbed Implemented Wallpaper Selector and Matugen's Wallpaper based auto-theming. (#73)
* Implement matugen - WIP

* Added matugen

* Add types and cleanup code

* Matugen implementation updates and added more options such as scheme and contrast.

* Code cleanup and matugen settings renamed for clarity.

* Makon maroon a primary matugen color.

* Updates to handle variations of matugen colors

* Finalizing matugen and wrapping up variations.

* Minor styling updates of the settings dialog.

* Do a swww dependency check.

* Dependency logic update

* Switch shouldn't double trigger notifications now when checking dependency.

* Logic was inverted

* Add matugen to dependency checker.

* Fixed dependency checking conditional

* Update dependency list in readme and check for matugen before doing matugen operations

* Styling fixes

* OSD Fix

* Remove unused code from wallpaper service.

* Color fixes for matugen.

* Nix updates for new dependencies

* Change default wallpaper to empty.

* Added custom notification service for startup, cleaned up code and updated readme.
2024-08-07 21:43:31 -07:00