summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
Commit message (Collapse)AuthorAgeFilesLines
* rules: add stayfocusedvaxerski2023-07-041-1/+1
|
* config: fix floating rules with floating-by-rule windowsvaxerski2023-07-021-2/+11
|
* gestures: add workspace_swipe_use_rvaxerski2023-07-011-3/+4
|
* Reloads animated decoration values set on window rules (#2594)MightyPlaza2023-06-281-3/+3
| | | | | | | | | | | * Reloads dynamic window rules * Update ConfigManager.cpp * Update ConfigManager.cpp * Reloads animated decoration values set on window rules Reloads animated decoration values like border color and opacity set on window rule on config reload.
* Reloads dynamic window rules (#2585)MightyPlaza2023-06-261-0/+8
| | | | | | | * Reloads dynamic window rules * Update ConfigManager.cpp * Update ConfigManager.cpp
* xwayland: send zero scaling to xwayland if enabledvaxerski2023-06-231-0/+3
|
* configmgr: fix idiotic comparisons in device configsvaxerski2023-06-211-1/+1
|
* Implement pass binds (#2503)outfoxxed2023-06-141-8/+11
| | | | | | | | | | * Implement pass binds Pass binds run the associated dispatcher but do not prevent windows from receiving the bind. * Fix pass binds not working properly with release binds * Rename `pass` to `nonConsuming`
* feat: add variable to customize locked group border color (#2507)memchr2023-06-131-4/+8
| | | | | added variables: - general:col.group_border_locked - general:col.group_border_locked_active
* xwayland: add force_zero_scalingvaxerski2023-06-111-0/+1
|
* xwayland: add nearest neighbor filtering as an optvaxerski2023-06-111-0/+2
|
* Allow setting alpha value for ignorezero layer rule (#2477)end-42023-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rename ignorezero to ignorealpha * allow setting ignorealpha value This commit allows setting a float value (0-1) for the ignorealpha layer rule. Does not yet have error handling; invalid ignorealpha layer rule will crash Hyprland. * add brackets i forgot to add * prevent crash with invalid ignorealpha value prevents hyprland from immediately crashing with invalid ignorealpha layer rule does not log * don't try to set ignoreAlphaValue if alpha value not specified * add catch to try, reintroduce ignorezero - added catch after try cuz i was an idiot - re-add ignorezero as an alternative to ignorealpha to not introduce a breaking change * add logging for failed ignorealpha layer rule * fix get ignorealpha's get VALUE * check npos and use empty() * rename VALUE cuz no longer const * format Shader.hpp
* rules: add nodimvaxerski2023-05-311-4/+4
|
* groupbars: add text color optvaxerski2023-05-271-0/+1
|
* groupbars: make gradients toggleablevaxerski2023-05-221-0/+1
|
* groupbars: add title and gradient renderingvaxerski2023-05-221-0/+2
|
* lock: add allow_session_lock_restorevaxerski2023-05-131-0/+1
|
* workspacerules: overwrite on existingvaxerski2023-05-121-1/+6
|
* renderer,config: add custom DRM modeline support (#2254)Andrei Alexeyev2023-05-091-0/+55
| | | | | | | | | | | | | | This allows specifying custom display resolutions for the DRM backend. This is useful for display overclocking, working around broken EDIDs, etc. To use this feature, specify a modeline instead of a resolution in the config, for example: monitor = DP-1, modeline 1071.101 3840 3848 3880 3920 2160 2263 2271 2277 +hsync -vsync, 0x0, 1 This example is a custom 3840x2160@120Hz mode with tightened timings. I use it because the standard timings don't work with my monitor and GPU combination (M28U with RX580). The syntax is compatible with Sway and Xorg.
* Add "next on monitor or empty" workspace parameter (#2198)scorpion-262023-05-081-0/+4
| | | | | | | | | | | | | | | | | | | | | * Add "next on monitor or empty" workspace parameter Implements the following workspace parameter: r+x/r-x (i.e. r+1): Behaves similar to the "m" parameter, but can also select empty workspaces and it doesn't wrap around * Improve code comments * Implementation V2 for 'r' workspace param * Rebase to upstream Should fix CI * Always set outName * Include named workspaces Currently only considers open/active named workspaces
* configmanager: fix substr offset in default ws rulevaxerski2023-05-061-1/+1
|
* Add split preselection (#2240)Dashie2023-05-061-8/+9
|
* configmanager: remove useless log from handleWorkspaceRulevaxerski2023-05-051-1/+0
|
* configmanager: deprecate bindwsvaxerski2023-05-051-23/+5
|
* configmanager: store workspace rules as a dequevaxerski2023-05-051-15/+15
|
* config: clear layer rules on reloadvaxerski2023-05-041-0/+1
|
* Honor debug:enable_stdout_logs on startup (#2197)scorpion-262023-05-031-0/+2
| | | | | | | | | | * Honor debug:enable_stdout_logs on startup disableStdout is set via config in CConfigManager::init(), which is called early in CCompositor::initServer(). initServer() always disables stdout logs at the end though, even when stdout is enabled is config. With this commit, the config is respected. * Don't spam stdout message
* Added some workspace-specific rules (#1986)levnikmyskin2023-05-011-8/+83
| | | | | | | | | | | | | | | | | | | | | | * added some workspace-specific rules * added some worskpace-specific rules, with windowrule like syntax * monitor is not mandatory anymore * pointers to config are now static * fixed optional WorkspaceRule fields * Windows can now specify border size * removed CHyprOpenGLImpl::renderBorder borderSize default value * stuff --------- Co-authored-by: Alessio Molinari <alessiomolinari@gmail.com> Co-authored-by: vaxerski <43317083+vaxerski@users.noreply.github.com>
* config: add missing header for libc++ after 3a631e40db78 (#2208)Jan Beich2023-05-011-0/+1
| | | | | | | | src/config/ConfigManager.cpp:1980:27: error: implicit instantiation of undefined template 'std::basic_stringstream<char>' std::stringstream error; ^ /usr/include/c++/v1/iosfwd:134:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_stringstream; ^
* Declarative plugin management (#2180)outfoxxed2023-05-011-0/+40
| | | | | | | | | | | | * Declarative plugin management Allow declaring `plugin` entries in the hyprland configuration. Plugins will be loaded if an entry is added and unloaded if that entry is removed. * Replace pointers with copying in updateconfigPlugins * Include which plugin was declared twice in error
* rules: add noinitialfocusvaxerski2023-04-281-1/+2
|
* Add follow mouse mode to avoid refocusing under cursor (#2135)outfoxxed2023-04-251-0/+1
| | | * Add follow mouse mode to avoid refocusing under cursor
* Add windowrule fakeFullScreen (#2043)DB2023-04-181-2/+2
| | | Co-authored-by: xVermillionx <xVermillionx@notvalid>
* misc: scan ppids in exec rulesvaxerski2023-04-181-4/+8
|
* Format: use %lx for all addressesvaxerski2023-04-171-3/+3
|
* Render: add cursor_zoomvaxerski2023-04-161-0/+2
|
* Disable systemctl when built without systemd support (#2066)Jan Beich2023-04-151-1/+6
| | | /bin/sh: systemctl: not found
* Add ability to split master when only 1 additional window (#2025)Person18732023-04-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix: enable master split less than 2 windows added a config flag "master:allow_small_split" added config to minimum windows check. TODO: check that no bug added (remove all masters?) * IMPL:FIX: multiple master windows full width Implemented the ability to have multiple master windows filling the full monitor width in master mode. this is controlled by the config option master:allow_small_split (true/false) this defaults to false as it was the original behaviour before this patch * BUGFIX: corrected issue with blanks re: addmaster FIX 1: Treat ORIENTATION_CENTER the same as ORIENTATION_LEFT unless there are enough STACK_WINDOWS to fill both wings. FIX 2: enforced last window always set as master in MasterLayout::CHyperMasterLayout::calculateWorkspace(); FIX 3: fix 2, also fixed focus issues previously noted. * Changes requested by vaxerski changed how we access config variables (by reference not value) fixed a regression previously missed prior to requested changes. I had somehow broken the very functionality i meant to add. * added static keyword to config variables * removed superfluous static tags I made a mistake with making too many variables static. this made them only evaluate once per runtime breaking things majorly. My appologies. I haven't touched C++ in nearly 20 years. * remove annoying comment --------- Co-authored-by: vaxerski <43317083+vaxerski@users.noreply.github.com>
* config: ignore invalid paths in configPathsvaxerski2023-04-121-1/+1
|
* swallow: Add swallow_exception_regex (#2026)Kajetan Puchalski2023-04-121-0/+1
| | | | | | | | | | | | | | | | | Currently, if a window class is specified in the swallow_regex (e.g. Kitty) it will swallow every other window spawned by it automatically. Many other WMs implementing this functionality allow for defining exceptions from this rule. For instance, we want Kitty to swallow sxiv or zathura but we do not want Kitty to swallow something like wev. This commit adds an additional regex - swallow_exception_regex where these exceptions can be defined. This regex is then compared against the title of the window about to be swallowed and if it happens to be a match, aborts the swallowing. This works because whenever an application that could be swallowed is launched by a terminal, the class of the terminal remains the same while the title changes to whatever the application's name is, thus letting it be matched against a regex.
* Allow movefocus for empty workspaces (#2011)Hilmar Wiegand2023-04-101-1/+2
| | | | | | | | | | | * Allow switching to empty workspaces using movefocus * Allow switching to other workspaces when no windows are focused * Implement review feedback * Add option to disable focus fallback * Remove unnecessary braces
* Fix crash in CConfigManager::parseKeyword (#1983)scorpion-262023-04-071-2/+4
| | | | | | | If debug:manual_crash is set on startup, parseKeyword tries to call g_pHyprNotificationOverlay->addNotification, but g_pHyprNotificationOverlay isn't initialized yet (is nullptr) This commit adds a sanity check for that.
* debug: allow manual crash from hyprctlvaxerski2023-04-041-0/+10
|
* debug: added manual_crashvaxerski2023-04-041-0/+10
|
* internal: rename ensureDPMS to ensureMonitorStatusvaxerski2023-04-031-2/+2
|
* config: default no direct scanout to truevaxerski2023-04-011-2/+2
|
* Fix some typos (#1907)Alexander Seiler2023-03-291-3/+3
| | | Signed-off-by: Alexander Seiler <seileralex@gmail.com>
* feat: add forcergbx rulevaxerski2023-03-261-1/+1
|
* config: default manual animations to falsevaxerski2023-03-241-2/+2
|
* feat: add debug:enable_stdout_logsvaxerski2023-03-241-7/+10
|