Commit graph

2062 commits

Author SHA1 Message Date
Dave Davenport
b6ce41825c [#1569] Add initial round,floor,ceil function
a round b
 rounds a to the closest multiple off b

 a ceil b
 ceil a to the multiple off b

 a floor b
 floor a to the multiple off b

 Completely untested.
2022-01-18 11:01:56 +01:00
Dave Davenport
f5eafcc04c [1566] Extra debug for monitor resolving for m=-1. 2022-01-13 20:55:26 +01:00
Dave Davenport
5543e6497f [XCB] Fix small memory leak. 2022-01-07 18:31:31 +01:00
Dave Davenport
addfc1d367 [Helper] Remove font sanity check as it is insufficient, and old format. 2022-01-07 18:16:47 +01:00
Dave Davenport
e563cd3ad0 Add -replace option
Issue: #568
2021-12-22 21:03:54 +01:00
Dave Davenport
0424dc6f2e Small rename switcher --> mode. 2021-12-22 20:33:22 +01:00
Dave Davenport
91050eaf74 [XCB] Cache lookup of monitor. 2021-12-18 20:38:51 +01:00
Dave Davenport
5f7563dae3 Update cmdline separator and add to manpage. 2021-12-17 19:04:02 +01:00
Dave Davenport
a5f76b9d56 [X11Helper] add some extra debug. 2021-12-17 10:23:21 +01:00
Dave Davenport
8f5d9b425e [KeyBindings] Fix keybinding modified by -theme-str. 2021-12-15 20:49:53 +01:00
Dave Davenport
f0500a5a0e [Help] Print out the parsed config/theme files. 2021-12-12 20:56:32 +01:00
Dave Davenport
2614fe4425 [Config] Change separator to '#'. 2021-12-04 22:13:31 +01:00
Dave Davenport
8f1aa8481d [Config] when parsing -theme- cmd option, allow throwing errors. 2021-12-02 08:51:32 +01:00
Dave Davenport
50ac47e24e [Config] Skip single element options. 2021-12-02 08:47:26 +01:00
Dave Davenport
e3f41474fd [Config] Allow all theme properties to be set from commandline
Bit hack solution, but `listview { scrollbar: false; }` can be reached
by: -theme-listview-scrollbar false
2021-12-02 08:42:06 +01:00
Dave Davenport
dac09b8728 Cleanups based on cppcheck. 2021-12-01 13:14:36 +01:00
Dave Davenport
f72d6135bd [Config] on -dump-config do not include -theme option.
But print the right line at the bottom.

fixes: #1534
2021-11-29 19:31:31 +01:00
Dave Davenport
b03c072aaa [Build] Allow rofi to build without window mode
fixes: #1533
2021-11-29 19:15:19 +01:00
Dave Davenport
dee9c526d3 [Rofi] Don't try to parse commandline options using theme engine if theme parsing failed.
Issues: #1531
2021-11-28 17:08:09 +01:00
Dave Davenport
8d943e4a55 [Rofi] Fix error message to have right syntax. 2021-11-12 23:51:12 +01:00
Dave Davenport
b77de4c00d [Theme] Accept just color for highlight 2021-11-08 21:46:55 +01:00
Dave Davenport
c45fc38856 [Combi] Add a check against recursion.
Fixes: #1510
2021-10-29 00:39:51 +02:00
Quentin Glidic
bde8175d39
gitmodules: Update libnkutils
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2021-10-28 06:33:12 +00:00
Quentin Glidic
f24cbe270e
script: Include config.h
It avoids deprecation warnings wrt GLib.

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2021-10-28 06:31:20 +00:00
Dave Davenport
06bb72d39b [DMenu] Do not crash when no entry is available.
Issue: #1504
2021-10-16 01:39:21 +02:00
Dave Davenport
ccaaaf6a46 [RUN|DRUN] Only initialize file-completer on first use. 2021-10-12 13:35:00 +02:00
Dave Davenport
e3860c89e8 [FileBrowser] Reduce number of re-allocs. 2021-10-12 10:34:47 +02:00
Dave Davenport
6ec5bfba64 [Config] Downgrade unknown options from error to warning. 2021-10-09 18:28:55 +02:00
Dave Davenport
324cbd7746 [DMenu] Fix uninitialized memory (nonselectable). 2021-09-23 10:22:19 +02:00
Dave Davenport
e081feec27 [FileBrowser] if text cannot be converted, try to mangle it into something.
Issue: #1471
2021-09-22 19:08:32 +02:00
Dave Davenport
e116aa5bc1 [Textbox|FileBrowser] Fix crash on invalid filename
Try to fix some crash on invalid filenames.

Issue: #1471
2021-09-22 15:45:02 +02:00
Dave Davenport
0e70d8a5c9 [Config] Add 'in your face' error message about deprecated theme setting.
Issue: #1468
2021-09-21 12:51:57 +02:00
Dave Davenport
4face975a9 [Theme] Print known colors as color name.
When printing look if the set color has a known color name, print this.
2021-09-20 19:57:12 +02:00
Dave Davenport
af3464a1c3 [Window] Lower class name before icon lookup 2021-09-15 18:10:22 +02:00
Dave Davenport
ca47ffee9c [Helper] Don't tell g_utf8_strlen to ignore length.
Fixes: #1459
2021-09-13 11:26:48 +02:00
Dave Davenport
b9e28942bf [CMD] If failed to convert commandline option to new config do not stop.
Fixes: #1425
2021-09-08 14:20:24 +02:00
Dave Davenport
562146730b
[THEME] I1442 Fix parsing of nested media blocks.
* [1442] Fix widget media nested
* [Theme] Fix memory leak in P_LIST
* [I1442] Support merging down default block.
2021-09-08 14:16:28 +02:00
Dave Davenport
c10ee955bd
#1437 - Fix sizing logic for widgets and textboxes. (#1444)
* [I1437] Textbox make get_desired_width depend on width.

Should fix some weird sizing issues on creation of widgest.


* [i1437] [View] Do the sizing based on the desired window width.

issue: #1437

* [i1437] Fix header documentation.
2021-09-07 19:40:07 +02:00
Dave Davenport
f4e5fd328a Revert "[I1437] Textbox make get_desired_width depend on width."
This reverts commit 154e03efc1.
2021-09-06 22:47:35 +02:00
Dave Davenport
965d3631cb Revert "[i1437] [View] Do the sizing based on the desired window width."
This reverts commit 46ac770fcc.
2021-09-06 22:47:26 +02:00
Dave Davenport
46ac770fcc [i1437] [View] Do the sizing based on the desired window width.
issue: #1437
2021-09-06 22:42:33 +02:00
Dave Davenport
154e03efc1 [I1437] Textbox make get_desired_width depend on width.
Should fix some weird sizing issues on creation of widgest.

Issue: #1437
2021-09-06 22:36:21 +02:00
Dave Davenport
294a22f3dd Fix some memory leaks. 2021-09-06 21:26:04 +02:00
Dave Davenport
c63e03fd49 [Window] Try to fix the autosizing of desktop name for non-i3 dekstop.
Issue: #1439
2021-09-06 20:32:36 +02:00
Dave Davenport
4d0eaf1463
[Window] Issue 1406 fix the broken close-on-delete (#1421)
* [1406] Add watcher for new/removed windows and reload based on that.
* [1406] Add a small timeout before reloading to avoid reloading several times in a row.
* [1406] close rofi if you receive a destroy window on rofi.
2021-09-03 13:53:43 +02:00
Dave Davenport
137417dc6c [listview] Correctly check if hovered item is highlighted.
issue: 1423
2021-09-03 09:32:18 +02:00
Dave Davenport
cb12e6fc05 [main] tiny code tweaks. 2021-09-02 16:38:34 +02:00
Dave Davenport
4b3f6f6767
[I1405] Allow action to be taken on input change. (#1420)
Fixes: #1405
2021-09-02 09:55:31 +02:00
Dave Davenport
3f5d82ff56 [Theme] Don't truncate double default value.
Fixes: #1419
2021-09-02 09:48:33 +02:00
Dave Davenport
1d69aea295 [window] Remove completely broken feature close-on-delete.
Issue: 1406
2021-09-01 14:57:53 +02:00