Commit graph

3393 commits

Author SHA1 Message Date
Dave Davenport
77b761aca5 [meson] Test possible 'workaround' for meson 0.55 issue
Make xcb a non-nested subproject (via simlink).

Issue: #1159
2020-08-01 11:28:48 +02:00
nick87720z
57ee69367d
micro-refactoring: widget.c (#1148)
* widget.c: microrefactoring

* widget.c: join enable/disable functions
2020-07-11 14:48:58 +02:00
Dave Davenport
641cd4ef46 [Widget] Fix inconsistency in argument checking. 2020-07-09 17:47:32 +02:00
Dave Davenport
5d3cd8a83f Update README to include both config and known_hosts.
Issue: #1154
2020-07-08 19:16:48 +02:00
Dave Davenport
f93033ebaa [Test] Update check building. 2020-07-05 16:07:55 +02:00
Dave Davenport
72138c1a10 release note, update image. 2020-07-05 16:00:39 +02:00
Dave Davenport
0b1cef778a Update releasenotes 2020-07-05 15:59:23 +02:00
Dave Davenport
fc0ea0b22e Update changelog a bit. 2020-07-05 11:41:04 +02:00
Dave Davenport
d6ac2f0f5b
Add language requirement to CONTRIBUTING. 2020-06-26 10:51:16 +02:00
nick87720z
e52094ee7a
Widget bg draw (#1147)
* Improved background draw code

- Better to read (precalculated coordinates)
- Unnecessary line_to in the end
- Don't use radius in calculations if zero

* Background draw - separate rounded rect function

* Limit background & border overlap size

Overlap is too good against artifacts when stiching antialiased areas to
be avoided, unless intermediate image is used for additive stiching. But
it doesn't look good with transparent borders, when overlaping background
is visible. It seems, that 1px overlap is right enough to completely
prevent artifacts. Though things may differ if one if side is 1px or
even 0px, while adjacent is still enough thick.

* Style: alignment, less noise, limit var scope
2020-06-17 14:10:48 +02:00
Dave Davenport
6bf823267e [ThemeSelector] Use rasi config file format, not xresources. 2020-06-17 13:53:18 +02:00
Dave Davenport
8c51b9ec3e [Doc] update rofi-theme(5) with mm size. 2020-06-09 22:57:02 +02:00
Dave Davenport
bf17e1c65e When no dpi set (-1) set the default one for fonts handling. 2020-06-09 22:51:44 +02:00
nick87720z
fb2ba8ada3
Millimeter support for distance (#1144) 2020-06-09 22:19:43 +02:00
Dave Davenport
2da2a1f4dc [rofi-sensible-terminal] use xfce4-terminal.wrapper instead of xfce4-terminal
xfce4 terminal does not follow the 'default' arguments.
2020-06-09 18:12:00 +02:00
nick87720z
e275ed2283
Again final workaround for #303 (#1142) 2020-06-09 17:17:50 +02:00
Quentin Glidic
3d5f0f086c
script: Fix parsing of extras (#1141)
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2020-06-06 18:32:14 +02:00
nick87720z
ae701ce54e
Entry info was not used at entry selection (#1140) 2020-06-06 18:28:39 +02:00
Dave Davenport
3763517abf Small release note tweak. 2020-06-02 10:46:53 +02:00
Dave Davenport
4821320833 [Listview] Try to fix sizing of barview.
Issue: #1137
2020-06-02 09:17:06 +02:00
Dave Davenport
6a6216af13 Update release notes. 2020-05-30 13:28:45 +02:00
Dave Davenport
da8c666e80 [Script] Initialize info entry. Don't pass entry at custom input.
Fixes: #1138
2020-05-30 10:44:37 +02:00
Dave Davenport
db308d2ed5 Add initial release notes. 2020-05-28 11:42:55 +02:00
ncoder-1
25a20f7b1c
Update INSTALL.md (#1136)
Added FreeBSD package install
2020-05-27 14:02:29 +02:00
Dave Davenport
1342b733af [Script] Add 'info' row option, that gets passed to ROFI_INFO environment. 2020-05-24 19:10:49 +02:00
Dave Davenport
0e880e76a2 [Window] On window name list, Check if we go out of range. 2020-05-24 17:14:12 +02:00
Dave Davenport
135ff94a79 Fix XDG_USER_CONFIG_DIR to XDG_CONFIG_HOME. 2020-05-23 15:27:15 +02:00
Dave Davenport
3604b12fde Add check that looks if rofi is running inside rofi script mode. 2020-05-21 09:35:55 +02:00
Jason Kim
a4c5a92199
Support rasi config character type options (#1131)
* style: remove extra space

* feat: handle xrm_Char in config parser

Handle the `xrm_Char` case in the (rasi theme) config file parser.  This
should properly handle configuration like

```
matching-negate-char: "\0";
```

and

```
matching-negate-char: "-";
```

* refactor: don't handle mem in xrm_Char case

`mem` shouldn't ever be set when `XrmOption` is `type` `xrm_Char`.
Therefore, there is no need to check it and free it.  Remove that logic.

* refactor: further condense logic

* style: s/Everythin/Everything/

* style: s/parsing an section/parsing a section/

...and missing period.

* feat(lexer): add CHAR token

Add a `CHAR` token that takes things of the form `'<char>'` or some
specific backslash escape sequences like `'\''` and `'\0'`.  For now,
save it as a `T_STRING`.

* refactor: define char property type

* feat(parser): add cval and T_CHAR

* refactor: use char property for xrm_Char

Instead of using strings for property elements of type char, use
characters, which were recently added to the grammar.
2020-05-17 14:50:38 +02:00
fREW Schmidt
ec6549748b
Remove old sh-ism (#920)
The x prefix thing hasn't been needed for quite some time, especially if you are declaring that you want to use bash.
2020-05-14 12:53:38 +02:00
Dave Davenport
57b14591f9 [Travis] Add coverage for meson build 2020-05-14 12:44:59 +02:00
Dave Davenport
191f49dbea [LISTVIEW] Support more customization in element. 2020-05-13 17:17:15 +02:00
Dave Davenport
f2b6cf6b3c [Widget] Propaget set_state to children. 2020-05-13 16:25:12 +02:00
John Beard
0a33aadd8b
Man pages: document the bang feature (#1126) 2020-05-12 21:12:45 +02:00
nick87720z
8a2e67f6fe
workaround for #303 (#1122)
* workaround for #303

Subpixel rendering may be disabled by some clip paths or when text
itself is clipped.

* optimize draw_pango_layout()
2020-05-12 12:05:56 +02:00
Dave Davenport
2ccc65ff52 Add some ui benchmark code 2020-05-12 10:40:50 +02:00
Dave Davenport
865821f829 Update help for option in source code. 2020-05-10 15:47:20 +02:00
John Beard
3df5a616cd
Manpage tweaks for rofi.1 (#1120)
* Man pages: Add version and dump-* options

* Man pages: Add -display and -markup to rofi.1

* Man pages: Use the metavariable in -async-pre-read

* Man pages: document the dmenu -w option

* Man pages/help: correct -only-match description

* Man pages/help: -normal-window does not only apply in dmenu mode

* Man page: modi are lowercase

Entering the modi as the man page had them would not work

* Man page: minor formatting/grammar tweaks

* modi and command names are `backticked`
* rofi is **bold**
* other man pages are **bold(1)**
* Pango is capitalised according to their own website.
* Option arguments are *like1*,*this2*

* Man pages: fix Pango markup link
2020-05-10 15:44:29 +02:00
Dave Davenport
1a9e6450e3 [Helper] Throw error when shell parsing fails. 2020-05-04 14:10:35 +02:00
Dave Davenport
d3218c75a4
change irc link to webchat. 2020-05-04 10:47:22 +02:00
Dave Davenport
dfa8f46a1e move config.yml in place 2020-05-04 10:42:40 +02:00
Danny Colin
028c68cce5
add IRC and Reddit links to issue template chooser (#1114) 2020-05-04 10:40:08 +02:00
Dan Beste
80fc8e16b2
Fix Travis CI builds (#1107)
* fix: Fix Travis CI builds and (some) tests

https://config.travis-ci.com/explore recommendations:
  * Set the `os` key
  * Removes the `sudo` key

Fixes:
  * Missing dependencies

Cleanups:
  * Set `build_command_prepend` and `build_command` to match the process
    performed by the before_script and script.
  * Removed unnecessary apt package dependencies.
  * Ran the file through prettier (https://prettier.io/).

Enhancements:
  * Bumps dist to Ubuntu 18.04 (Bionic)
    * This bump allows us to install a few packages that were previously
      installed manually.
  * Added a Clang build.

TODOs:
  * X11 tests are broken. I've commented them out for the time being.

* Create multiple jobs

Jobs (4 total):
  Compilers:
    * Clang
    * GCC
  Build tools:
    * Autotools
    * Meson

Enhancements:
* DRY out the CI config.

Failure (seemingly related to `check`?) here:
https://travis-ci.org/github/davatorium/rofi/jobs/680265096#L1125

* [Travis] More debug output

* [Travis] Add ldconfig

* [Travis] try to fix doxy tests.

* [Travis] Try to fix doxygen stuff.

* [Travis] Trying to fix meson doxy gen tests.

* Minor cleanups

Co-authored-by: Dave Davenport <qball@gmpclient.org>
2020-04-30 09:09:28 +02:00
Dave Davenport
86cdcae55b [Window] Update manpage and --help. 2020-04-29 12:59:49 +02:00
Dave Davenport
9a3d4b1d2e [Test] Fix compiler warning, theme test (bug in lexer) and more. 2020-04-26 11:43:14 +02:00
Dave Davenport
09704eb49c [Test] Use new RofiDistance format. 2020-04-26 11:12:23 +02:00
Dave Davenport
151547a99e
[Themes] add calc() support to distance in theme format. (#1105)
* Initial test to allow math in distances.

Support + and -
Needs spaces around + and -.

* [THEME] Fix printing theme with math in distance.

* [Theme] use calc() syntax.

* [Theme] Add * and /  to calc().

* [Theme] Fix the precedense ordering in parsing. Also avoid making copies.

* [Theme] Don't print unneeded ().

* [Theme] Add modulo to calc.
2020-04-24 19:54:08 +02:00
Dave Davenport
f90ad971d9 Add dependency to INSTALL. 2020-04-22 23:56:44 +02:00
Dave Davenport
906b520daf [Script] Add no-custom mode. 2020-04-22 23:41:25 +02:00
Dave Davenport
b86109295d Update doc/readme to be markdown. 2020-04-20 11:28:33 +02:00