1
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2025-07-26 01:31:54 -07:00
Commit Graph

124 Commits

Author SHA1 Message Date
Alexander
15dc024a39 keybinds: fix previous_per_monitor logic ()
Co-authored-by: Крылов Александр <aleksandr.krylov@hyperus.team>
2025-01-11 16:05:53 +00:00
Vaxry
b5fb6110ab core: Add a periodic donation request ()
Will fire once in december and july. Disableable with `ecosystem:no_donation:nag`
2025-01-10 18:09:40 +00:00
Kamikadze
23e7d8f6a7 logging: fix Gpu info () 2024-12-19 00:08:57 +01:00
Ikalco
49e5f9c428 logging: get broader GPUINFO () 2024-12-18 15:56:53 +01:00
Ikalco
e2c78c00e5 internal: remove dead code () 2024-12-17 17:31:27 +01:00
Vaxry
8bbeee1173 core: Add clang-tidy ()
This adds a .clang-tidy file for us.

It's not a strict requirement to be compliant, but I tuned it to be alright.
2024-12-07 18:51:18 +01:00
Vaxry
b1e5cc66bd core: Add support for hyprqtutils' update screen ()
* Nix: add hyprland-qtutils to PATH

* flake.lock: update

---------

Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
2024-12-06 15:45:02 +01:00
Vaxry
745a82ce8a core: workspace-related function cleanup / refactor
CCompositor is massive, and has a lot of functions that could be better optimized if in CWorkspace
2024-11-22 16:01:02 +00:00
Vaxry
47a1650c48 miscfunctions: move configStringToInt to std::expected 2024-11-18 23:53:38 +00:00
Maximilian Seidler
cc923ad031 config: update the configStringToInt implementation ()
Copied from hyprlang and removed std::expected.
2024-11-18 19:45:22 +00:00
Vaxry
505c1f8f4a miscfunctions: fix cross build 2024-11-18 14:35:09 +00:00
Vaxry
2259a88551 miscfunctions: add missing include 2024-11-18 13:59:57 +00:00
Vaxry
1ba050d603 shell: propagate new machanism from hyprctl to miscfunctions 2024-11-17 21:58:00 +00:00
Vaxry
e8717a4fce shell: don't use fgrep, prefer grep -F 2024-11-17 21:57:04 +00:00
Vaxry
c10739e6e3 core: fixup execAndGet
fixes 
2024-11-10 22:53:11 +00:00
Vaxry
a8ff3a452c core: move to os/Process from hyprutils
nix bump too
2024-11-09 17:14:25 +00:00
MightyPlaza
12c1bb936d internal: check size limit in layouts ()
modified:   src/desktop/Window.cpp
modified:   src/desktop/Window.hpp
modified:   src/events/Windows.cpp
modified:   src/helpers/MiscFunctions.cpp
modified:   src/helpers/MiscFunctions.hpp
modified:   src/layout/DwindleLayout.cpp
modified:   src/layout/IHyprLayout.cpp
modified:   src/layout/MasterLayout.cpp
modified:   src/macros.hpp
2024-10-30 18:58:36 +00:00
Vaxry
5d4b54b012 core: move internal structures to monitor pointers () 2024-10-27 18:45:38 +00:00
Vaxry
2320b2241c Internal: move to Mat3x3 from hyprutils ()
* Meson: require hyprutils >= 0.2.3

* flake.lock: update hyprutils

---------

Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
2024-09-25 10:01:13 +01:00
Tom Englund
72c7818ae6 misc: constify the remaining for loops ()
now we roll loops at blazing constified speed.
2024-08-26 20:24:30 +02:00
Tom Englund
9c5a37a797 build: fix 32bit builds ()
ensure the correct type is passed to std::clamp and std::max int64_t is
different on 64bit compared to 32bit, also in presentationtime
tv_sec is __time_t and on 32bit its a 32bit type so right shift count >= width
of type. so only bit shift on 64bit. and avoid potential nullptr deref
in the for loops, check for .end() before *it <= endID.
2024-08-26 14:08:30 +02:00
Mirkwood
069faa4027 helpers: fix: revert to signed arithmetic for cycling through workspaces ()
The code clearly expects signed types there.
Fixes 
2024-08-15 13:03:23 +01:00
Tom Englund
4b4971c06f internal: introduce new types to avoid unsigned int rollover and signed int overflow ()
* framebuffer: avoid gluint overflow

GLuint was being initialized to -1 and rolling over to unsigned int max,
its defined behaviour but very unnecessery. add a bool and use it for
checking if allocated or not.

* opengl: avoid gluint rollover

-1 rolls over to unsigned int max, use 0xFF instead.

* core: big uint64_t to int type conversion

there were a few uint64_t to int implicit conversions overflowing int
and causing UB, make all monitor/workspaces/windows use the new
typedefs. also fix the various related 64 to 32 implicit conversions
going around found with -Wshorten-64-to-32
2024-08-08 21:01:50 +02:00
Vaxry
016da234d0 Core: Move to aquamarine ()
Moves Hyprland from wlroots to aquamarine for the backend.

---------

Signed-off-by: Vaxry <vaxry@vaxry.net>
Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
Co-authored-by: Jan Beich <jbeich@FreeBSD.org>
Co-authored-by: vaxerski <vaxerski@users.noreply.github.com>
Co-authored-by: UjinT34 <41110182+UjinT34@users.noreply.github.com>
Co-authored-by: Tom Englund <tomenglund26@gmail.com>
Co-authored-by: Ikalco <73481042+ikalco@users.noreply.github.com>
Co-authored-by: diniamo <diniamo53@gmail.com>
2024-07-21 13:09:54 +02:00
Vaxry
13bc7e1e14 style: fix clang-format 2024-07-13 12:36:35 +02:00
Alexander
7f09646ab8 core: add ability to select previous workspace per monitor ()
Co-authored-by: Крылов Александр <aleksandr.krylov@hyperus.team>
2024-06-22 23:52:42 +02:00
Vaxry
fb15b7aa2a core: Move to hyprutils for Math
Moves CRegion, CBox and Vector2D over to hyprutils.

Requires hyprutils>=0.1.4
2024-06-19 16:20:15 +02:00
phonetic112
8055b1c00a misc: Fix build warnings () 2024-06-13 23:23:23 +02:00
Jan Beich
4842eb83b4 helpers: make shm_open() portable after 8bcccf9f0f ()
https://pubs.opengroup.org/onlinepubs/9699919799/functions/shm_open.html
https://man.freebsd.org/shm_open/2
https://www.man7.org/linux/man-pages/man3/shm_open.3.html
2024-06-13 14:20:14 +02:00
Vaxry
8c64a4bad7 core: move to hyprutils for utils ()
* core: move to hyprutils for utils

Nix: add hyprutils dep

* Meson: add hyprutils dep

* flake.lock: update

---------

Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
2024-06-11 17:17:45 +02:00
Vaxry
6967a31450 wayland/core: move to new impl ()
* wayland/core/dmabuf: move to new impl

it's the final countdown
2024-06-08 10:07:59 +02:00
System64
255272ea18 debug: Add ARM GPU info ()
Added a simple way to get basic info about the GPU on ARM based systems
2024-05-23 18:04:39 +02:00
JManch
a8522db683 keybinds: fix empty on monitor for new workspaces () 2024-05-15 21:03:51 +01:00
William Gray
36d32973dd keybinds: add empty on monitor and next empty flags ()
* empty on monitor

* add flag for next empty

* clang-format changes

* next also uses m_pLastMonitor
2024-05-08 13:30:20 +01:00
William Gray
1d2acbe193 config: add absolute monitor workspace selectors ()
* add absolute monitor workspace selectors

* implement absolute for `r`

* format code
2024-05-03 18:38:00 +01:00
Vaxry
8bcccf9f0f ime-v2: move to new impl 2024-05-01 16:41:17 +01:00
Agent00Ming
81bb4eb2f6 workspace: Fix duplication of "special:" in special workspace name ()
* Fix duplication of "special:" in special workspace name
	modified:   src/desktop/Workspace.cpp

* Track default special workspace name as special:special
This is to fix the edge cases with the previous commit without breaking
user configs.

	modified:   src/helpers/MiscFunctions.cpp

---------

Co-authored-by: Agent_00Ming <agent00ming9366@gmail.com>
2024-04-24 16:07:22 +01:00
Vaxry
ef23ef60c5 Workspace/core: Refactor workspace storage ()
* refactor workspaces to use ptrs

* clang-format
2024-04-02 20:32:39 +01:00
Vaxry
0a4ade01d3 format: make ci happy 2024-03-08 17:40:28 +00:00
Epilepsy Gatherings
e52d3fa852 windowrules: Make min/maxsize rules dynamic ()
* rebase

* simplify and remove prop

* Stuff

- add back win prop
- change minsize defaults
- change request formatting for setprop

* style fix

* remove empty line

* change defaults

* redo string to vec

* remove redundant parsing

* change to vec

* support commas

* remove static rules

* take out garbage

* format

* don't allow commas and resize on setprop

* use isNumber
2024-03-08 02:24:44 +00:00
vaxerski
5eeec8860e core: improve cleanup logic 2024-01-19 16:20:30 +01:00
vaxerski
bd952dcef2 systemd: add HYPRLAND_NO_SD_NOTIFY
fixes 
2023-12-21 22:27:12 +01:00
Vaxry
ef445093f9 internal: convert uname fields to strings before logging
fixes , thanks @jbeich
2023-12-18 23:33:10 +00:00
Vaxry
9c09f2a847 screencopy: fix shm exports with 10-bit
fixes 
2023-12-01 17:20:56 +00:00
Vaxry
483302a2cd env: add HYPRLAND_NO_RT 2023-11-17 23:29:30 +00:00
Vaxry
65efde32c9 internal: make getPlusMinusKeywordResult return optional 2023-11-12 13:40:02 +00:00
Vaxry
69e314207d internal: replace INT_MAX with WORKSPACE_INVALID 2023-11-12 13:34:54 +00:00
Vaxry
d8b7ded18c compositor: find windows in direction on floating 2023-11-05 16:18:41 +00:00
Vaxry
55b4f84fea Internal: Hyprland box implementation ()
* box impl

* remove unused operators

* missed applyfromwlr
2023-11-04 17:03:05 +00:00
pastalian
49fdffacea renderer: fix legacy_renderer build ()
In GLES2, `GL_RGB10_A2` and `GL_UNSIGNED_INT_2_10_10_10_REV` are defined as
`GL_RGB10_A2_EXT` and `GL_UNSIGNED_INT_2_10_10_10_REV_EXT` respectively.
2023-11-03 15:47:20 +00:00