Commit Graph

102 Commits

Author SHA1 Message Date
Yury Shvedov e32a2c8d24
config: Fix `desc:` wallpaper priority (#189)
There was misbehaviour from config. Say, we have next config:
```
...

wallpaper = , /path/to/generic.jpg
wallpaper = DP-1, /path/to/port.jpg
wallpaper = desc:My Monitor, /path/to/desc.jpg

```

Here the `DP-1` and `desc:My Monitor` are different monitors.

_EXPECTED_: The `desc:My Monitor` renders `/path/to/desc.jpg` wallpaper
_ACTUAL_: The `desc:My Monitor` renders `/path/to/generic.jpg` wallpaper

Change-Id: I02c9495524bd620d5a58b9d934b07aded051f6c2
2024-08-12 18:31:02 +01:00
Vaxry f1f7fc60f5 core: bind to wl_seat v7
ref #187
2024-07-23 00:08:55 +02:00
Vaxry 3cbc90bf94 core: migrate to hyprwayland-scanner
Additionally:
 - format
 - yeet clang-tidy
 - fixup clang-format
2024-07-17 16:25:07 +02:00
Mihai Fufezan f3a6e51d92
Config: use hyprutils helper (#183)
* config: use hyprutils helper

CMake: add version, add hyprutils

* Nix: add hyprutils dep

flake.lock: update

* Nix: add hyprwayland-scanner dep
2024-07-17 16:21:50 +02:00
Vaxry 13fcdd79ef fractional: reload monitor on new fs scale notifs
fixes #181
2024-07-02 18:54:11 +02:00
Mykola Perehudov f4abf5902f
config: produce error instead fs::exists exceptions (#177) 2024-06-09 09:50:27 +02:00
Barguzin 374d6e2a9d
core: Bitmap image support (#175)
* Add handler "reload" to do a change of wallpaper by one hyprctl execution

* fixed contain parameter handling in "handleReload"

* added bitmap (.bmp) image support

* refactored

* reserve -> resize
2024-06-07 17:19:58 +02:00
Barguzin 2c57525de8
internal: Add handler "reload" to do a change of wallpaper by one hyprctl exec (#173)
* Add handler "reload" to do a change of wallpaper by one hyprctl execution

* fixed contain parameter handling in "handleReload"
2024-05-25 19:40:11 +02:00
Vaxry 03cd362f49 ipc: use XDG_RUNTIME_DIR if available
fixes #169
2024-05-04 22:01:40 +01:00
Vaxry d50f0eda6c
core: move socket to runtime dir (#167) 2024-04-28 22:25:36 +01:00
XiaowenHu 02ee7ff3bb
core: remove comma from monitor description (#163) 2024-04-12 12:01:36 +01:00
LOSEARDES77 437ac0530b
core: splash_color configuration option (#160) 2024-04-04 20:52:48 +01:00
Vaxry 09c4062659 config: add unload unused 2024-02-27 21:45:28 +00:00
Vaxry 79765e1bdf core: make unload all do what it says 2024-02-27 21:44:11 +00:00
Stephen Toth dfd3d090dc
core: fix being able to assign a wallpaper to a nonexistent monitor (#141)
clarified README to specifics of the handleWallpaper function
2024-02-25 23:05:58 +00:00
Vaxry 897cf0ae26 config: add explicit ctors for config variables
fixes #139
2024-02-21 16:28:39 +00:00
Stephen Toth 1013a80608
ipc: Added listloaded and listactive requests (#132) 2024-02-05 01:07:31 +00:00
Stephen Toth ce829bd51d
config: Disable splash message by default (#123)
* Change default value of splash to false

* put splash and ipc options into example config in README
2024-01-04 16:20:47 +01:00
Vaxry c022069390 ipc: fix ipc with wildcards
fixes #122
2024-01-03 13:47:49 +01:00
Vaxry 122aaa2182 internal: update to hyprlang 0.2.0
fixes #87
2024-01-01 13:34:50 +01:00
Vaxry 75270a9b38 core: fix splash options parsing 2023-12-31 14:06:11 +01:00
Vaxry 39ad021c75 internal: move to libhyprlang for config handling 2023-12-31 01:41:32 +01:00
tobiichi3227 ef0e051255
core: fix build failed in big-endian system (#117)
Close #40
2023-12-25 18:08:13 +01:00
tobiichi3227 f8cab3c370
fix: check if path is empty (#116) 2023-12-23 18:12:34 +01:00
tobiichi3227 ae4f498fda
feat: Add webp support (#113)
* feat: add webp support

* readme: add libwebp dependency

* refactor: move including webp to source file

* style: fix using tab

* style: make const value upper-case

* Nix: add libwebp

---------

Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
2023-12-21 22:15:05 +01:00
Vaxry cdec32da63 config: do not require config file
fixes #109
2023-12-14 19:56:49 +00:00
Vaxry f3837e9d59 surface: set fully opaque 2023-11-26 15:25:38 +00:00
Charbonnier Cylian d6856adaff
ipc: Allow multiple read from IPC + some refactor (#102)
* Allow multiple read from IPC

* bring back old indentation

* format with clang-format

---------

Co-authored-by: cylian charbonnier <cylian.charbonnier1@gmail.com>
2023-10-23 22:39:38 +01:00
Michał Lewandowski 1c009491b5
render: Always draw a black background first (#100) 2023-10-13 21:23:24 +01:00
MightyPlaza 72735ae635
feat: add splash_offset (#98)
closes: #96
2023-10-08 01:29:15 +01:00
LamprosPitsillos e5a18a171d
internal: fix dupliacate include of math (#95) 2023-09-13 11:18:29 +01:00
slowsage 5e73eb6055
fix: Read absolute path of symlinks (#90) 2023-08-19 23:28:55 +02:00
Karoline e498c438b1
internal: Reset hasATarget when issuing wallpaper command (#81)
Fixes issue #74

Co-authored-by: Karoline <boothwhack@users.noreply.github.com>
2023-08-03 13:00:55 +02:00
Lukas Fleischer 9261356bd7
Clear wallpaper from monitor before destroying ouput (#79)
Fixes issue #54.
2023-07-26 10:45:00 +02:00
GoatFoo 5d896893de
Support symlinks (#78) 2023-07-22 18:28:08 +02:00
Ed Younis ac5f7b038d
Added support for XDG_CONFIG_HOME (#62)
* Added support for XDG_CONFIG_HOME

* Style fixes and null check
2023-07-17 00:44:16 +02:00
XenHat a1d9ab7584
[RFC] Filetype detection without extension (#77)
* first draft of filetype detection

* Nix: add file dependency

* Fix coding style mistake

* Manually format my code

---------

Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
2023-06-23 22:33:33 +02:00
vaxerski cd86c196f3 core: disallow multiple instances of hyprpaper at once 2023-05-29 18:35:41 +02:00
vaxerski 3596630a20 internal: better mutex usage for ticks 2023-05-08 19:07:32 +01:00
vaxerski 66b3ba8d9f internal: allow desc: for monitors 2023-04-26 21:44:51 +01:00
vaxerski 3bfaac09f5 internal: destroy cursor theme on LS destroy 2023-04-16 14:07:37 +01:00
vaxerski 654647f7b3 internal: gather monitor size in mode 2023-04-09 19:05:43 +01:00
vaxerski 9a8a5738c6 internal: fix crash on scale change 2023-04-09 18:52:43 +01:00
vaxerski e95b8d59f3 feat: add splash support 2023-04-09 18:47:49 +01:00
vaxerski 756fccfc53 internal: use an epsilon for scale calcs 2023-04-09 18:26:40 +01:00
2e0byo 61961973cf
feat: be case-insensitive about suffixes. (#44)
Unfortunately many cameras/mobiles still use ALL_CAPS.
2023-03-15 15:19:16 +00:00
Vaxry 2bc88dc8c2 fixup contain and wp-fs-v1 impl 2023-02-18 00:47:40 +00:00
cijo7 1d76f4db0d
Fix crashing when setting wallpaper (#41) 2023-02-14 20:27:04 +00:00
vaxerski 44a38bfedc fix wp-fs-v1 impl, adhere to the spec 2023-02-10 12:53:04 +00:00
Vaxry 3e7ba8500f conform to the wp-fs-v1 spec with buffer scale 2023-02-05 11:10:46 +00:00