Commit graph

1694 commits

Author SHA1 Message Date
Dave Davenport
07cf9aabc7 Re-calculate size before showing. 2017-11-30 11:01:23 +01:00
Dave Davenport
f123deb37b When no new theme file present, don't print it in help. 2017-11-29 23:08:23 +01:00
Dave Davenport
10e2bc36cd Remove : from dmenu default prompt. 2017-11-28 17:53:45 +01:00
Edward Betts
79adae77d7 Correct spelling mistakes. (#722) 2017-11-23 18:41:52 +01:00
Quentin Glidic
955cdf5ba5
drun: Standardize debug messages
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-11-17 14:20:03 +01:00
Dave Davenport
9cd1e3fac2 Indent 2017-11-07 20:04:07 +01:00
Dave Davenport
4ac428bace [Combi] Add hide prefix option. 2017-11-07 20:03:42 +01:00
Dave Davenport
d9def87930 Allow height to be specified on window.
Fixes: #718
2017-11-06 20:49:26 +01:00
Dave Davenport
e689f2d98b Check result g_key_file_load_from_file to make coverity happy. 2017-11-05 21:32:43 +01:00
Dave Davenport
f992e0e21a Add the prompt colon to the default theme.
- Fix dumping of theme localization of the decimal-point. Force it to
be always a '.'.
2017-11-05 12:56:41 +01:00
Dave Davenport
bfd8e25436 Merge remote-tracking branch 'origin/master' into next 2017-11-02 21:42:37 +01:00
ironyman
85ecaea49a Fix -m -4 for xmonad (#683)
The problem is that xcb_translate_coordinates was being called to
translate the origin of the active_window (relative to active_window's
parent) from the coordinate space relative to active_window to the
coordinate space relative to root. The fix is to translate the origin of
the active_window (relative to active_window's parent) from the
coordinate space relative to active_window's parent to the coordinate
space relative to root.
2017-11-02 21:06:28 +01:00
Dave Davenport
f7d7fd4573
[DRun] Obey OnlyShowIn NotShowIn (#715)
* [DRun] Obey OnlyShowIn NotShowIn

* Replace g_strv_contains.
2017-11-02 21:05:07 +01:00
Dave Davenport
0ef2ad0771 Use PACKAGE_VERSION as it is known to both make and meson. 2017-10-31 19:36:13 +01:00
Dave Davenport
ba0acd625f Remove leading # from dump theme and add mesg about rofi dumping it 2017-10-31 19:29:27 +01:00
Dave Davenport
316de7ebeb Remove default-theme header file. 2017-10-31 19:00:31 +01:00
Quentin Glidic
3c37ba7a1c
meson: Add default theme GResource bits
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-10-31 18:16:08 +01:00
Dave Davenport
cc3d889fea First testing to use GResource to load default theme. 2017-10-31 18:00:24 +01:00
Dave Davenport
1dccdb302e Remove color from prompt, can be added in theme now.
fixed: #637
2017-10-30 21:40:13 +01:00
Askrenteam
0dc71fcc00 Added option -name-only to match only desktop entry name with drun (#690)
* Added option -name-only to match only desktop entry name with drun

* fixed indent and xrdump test

* fixed test

* option -drun-match-fields

* option -window-match-fields

* matching fields as static in window/drun + enums for field indexes

* prevent window_mode_parse_fields() from executing twice
2017-10-21 11:18:52 +02:00
Quentin Glidic
af81a54adf
drun: Load absolute path icons properly
This was lost in the rework commit
4d8784cf85 and never added back.

Fixes #701

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-10-20 22:53:17 +02:00
Dave Davenport
5f1be779a2 Fixes parsing of non-existing fields.
Fixes: #700
2017-10-20 22:13:28 +02:00
Jakob M. Kjær
6f6115ee59 Fixed error misspell 2017-10-19 17:07:23 +02:00
Dave Davenport
fcaf8d8104 Fix color conversion from old ARGB to RGBA (new)
Fixes: #693
2017-10-19 07:48:48 +02:00
Dave Davenport
12e7b67ddd Make -plugin-path commandline flag be read before loading plugins 2017-10-16 18:25:16 +02:00
Quentin Glidic
8deedd8645
meson: Use libnkutils git-version support
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-10-15 17:51:45 +02:00
Quentin Glidic
4e4e3917aa
gitmodules: Update libnkutils and libgwater
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-10-14 16:43:02 +02:00
Dave Davenport
bcb5844b6d [History] When getting history fields, do not parse order fields.
- This is the critical part of the code, most code and direct influence
on user.
2017-10-14 13:18:21 +02:00
Quentin Glidic
a723356d14
bindings: Fix API usage
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-10-12 19:53:15 +02:00
Dave Davenport
9ae62960c1 Indent files. 2017-10-05 17:45:50 +02:00
Dave Davenport
6ba31683c6 [DRun] Desktop id is not equal to application id. 2017-10-04 08:59:09 +02:00
Dave Davenport
2784959fc1 Allow maximum history size to be configured.
Fixes: #613
2017-10-03 19:59:35 +02:00
Dave Davenport
7929818be2 Change how DRUN history is implemented to fix: #579
- This solution will correctly obey all priority rules as set in desktop
files.
- history only affects the application being sorted at top, not affects
what desktop files refers to this.

Possible issue is speed of this solution, it adds a sorting. (hopefully
limited, as only history items need to be moved).
and several lookups through the whole list of applications.
This needs some profiling to see if it becomes an issue, several
solutions can be applied to make this faster again.
O(history_length*num_netries)+complexity(qsort)

Fixes: #579
2017-10-03 17:35:48 +02:00
Dave Davenport
91d88b1fd1 Rename tokenize to helper_tokenize 2017-10-01 10:51:02 +02:00
Dave Davenport
ebffe5503d Implement support for specifying negated match
- Prepending - inverts the matching result.
- Fix logic window/drun browser.
- Breaks API as argument token_match callback changed.
- Update tests.

Fixes: #665
2017-09-29 08:40:25 +02:00
Dave Davenport
a1ea3e268f Add more configuration options to script mode, getting closer to dmenu.
- urgent
 - active
 - prompt
 - message
2017-09-27 20:00:33 +02:00
Dave Davenport
8a0563634f Fix conversion of border color to new theme format. 2017-09-24 15:32:53 +02:00
Dave Davenport
0596f7c1a1 Correctly center and scale image, even if not rectangular 2017-09-21 19:27:04 +02:00
Dave Davenport
99f2a1a9bf Add @theme import command, that resets the current theme. 2017-09-18 17:48:13 +02:00
Dave Davenport
852d80fee3 Change WMQuirk logic
- Default is switch to desktop then select window.
- 2 quirks:
  - pango names.
  - do not switch.
2017-09-17 21:40:36 +02:00
Dave Davenport
ff4946edaf Cleanup compiler warnings.
- Unused var.
- Missing switch statement.
- Change fallthrough for older compilers.
2017-09-17 18:17:26 +02:00
Dave Davenport
96d8a23fde Fix crash on destroying script modi 2017-09-10 20:55:45 +02:00
Dave Davenport
f25288fc47 Merge remote-tracking branch 'origin/next' into bendemcss 2017-09-10 20:24:25 +02:00
Dave Davenport
19cc794018 Allow combi modi to use scripts from the modi list.
fixes: #668
2017-09-10 20:09:15 +02:00
Dave Davenport
56c373bffc Allow combi modi to use scripts from the modi list.
fixes: #668
2017-09-10 20:06:01 +02:00
Dave Davenport
a442dda19c Fix combi modi crashing on dynamic list sizes. 2017-09-10 19:55:14 +02:00
Dave Davenport
ec25204924 [RUN] Fix filter duplicates 2017-09-10 19:50:45 +02:00
Dave Davenport
97467fceff Update small part of doc. set hadle-color on scrollbar in default theme. 2017-09-09 22:09:02 +02:00
Dave Davenport
e01aefd773 Update shipped themes. 2017-09-09 14:50:23 +02:00
Dave Davenport
af369bd244 Update default theme and converter. 2017-09-09 12:07:11 +02:00