Dave Davenport
7d117886b5
Use g_ascii_string_to_signed instead of atoi in ssh, allows error
...
checking.
2019-03-29 13:50:48 +01:00
Dave Davenport
beeb9c8b27
[SSH] Use \x1F as separator between host/command and port.
...
Fixes : #932
2019-03-08 13:46:10 +01:00
Dave Davenport
ec81a17c41
[SSH] Expand path and use right strcmp.
...
Issue: #928
2019-03-04 23:16:14 +01:00
Dave Davenport
906a48f566
[SSH] Add support for UserKnownHostsFile
...
Issue: #928
2019-03-04 22:05:08 +01:00
Dave Davenport
335adc30b3
[DRun] Fix sorting of drun.
...
Thanks to ChrisJAllan
2019-02-17 20:42:14 +01:00
Dave Davenport
f49866bd8b
[Doc] Update documentation to match changed functions.
2019-02-10 14:26:06 +01:00
Dave Davenport
fbd34c9635
[DRun] Sort the (non history) entries by name. Escape for pango.
2019-02-10 14:15:35 +01:00
Dave Davenport
f879062417
[SSH] Add support for parsing port number from known hosts file.
...
* Store port number in history.
* Parse the [host]:port format.
* Update default ssh command to (optionally) add -p {port}.
Fixes : #580
2019-02-10 13:56:44 +01:00
Dave Davenport
964af7ad35
[DRUN] Fix small memory leak loading desktop files.
2019-01-29 09:29:47 +01:00
Dave Davenport
76ceac1f20
[DRUN] Add drun-display-format.
2018-10-17 23:02:50 +02:00
Dave Davenport
11afb8e678
[Icon] Fix loading icons that are already in cache.
...
fixes : #860
2018-10-05 11:01:48 +02:00
Dave Davenport
114b2cf2fd
[SSH] Improve parser for known_hosts a bit.
...
Issue: #820
2018-09-22 16:16:25 +02:00
Dave Davenport
a99cfa56c4
[Script] Add initial support for icons.
...
Issue: #840
2018-09-09 17:53:56 +02:00
Dave Davenport
859a9c79d6
Indent the code.
2018-08-08 15:55:13 +02:00
Dave Davenport
4538303be6
[DRUN] Add option to show actions in drun.
...
Fixes : #836
2018-07-28 11:12:11 +02:00
Dave Davenport
b837c3fdff
Change log domain from Utils.IconFetcher to Helpers.IconFetcher
...
Matches doxygen.
2018-06-12 11:47:03 +02:00
Dave Davenport
441c511296
Add an generic icon fetcher that can be used by any widget and re-uses the main threadpool.
...
Add an generic icon fetcher that can be used by any widget and re-uses the main threadpool.
* Make threadpool more generic usable.
* Add generic icon fetcher, that caches icons.
* Make DRUN use this fetcher.
* Add icon widget.
#809
2018-06-09 19:13:57 +02:00
Dave Davenport
0f1717f829
[Script] Reset highlighting when reload view
...
Issue: #767
2018-02-08 17:56:31 +01:00
Dave Davenport
ac29c537dd
[SSH] Reload ssh when entry is deleted.
2018-02-06 21:03:07 +01:00
Dave Davenport
5a20094777
[Script] Reduce scope and swap tests. (cppcheck)
2017-12-11 18:42:35 +01:00
Dave Davenport
6abc8c920c
DRun: Allow to select based on comment field.
...
Fixes : #733
2017-12-09 19:55:39 +01:00
Quentin Glidic
53e0f957d0
drun: Early return if already initialized
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-12-09 10:34:11 +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
e689f2d98b
Check result g_key_file_load_from_file to make coverity happy.
2017-11-05 21:32:43 +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
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
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
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
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
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
9b0a430fd4
Indent.
2017-09-05 13:52:44 +02:00
Dave Davenport
b9ae0783c2
[Script] Parse the command as a commandline.
...
Fixes : #650
2017-08-14 21:33:12 +02:00
Dave Davenport
8a99f0b7bd
[Script] Execute script + argument direction, do not pass run-command.
...
Fixes : #650
2017-08-14 17:28:25 +02:00
Dave Davenport
a25a21c65e
Improve error message a little when bindings collide.
...
Issue: #640
2017-07-25 17:09:53 +02:00
Dave Davenport
fd146b0519
[DMenu] Do not show the Loading.. overlay when skipping loading stage.
2017-07-17 21:42:59 +02:00
Dave Davenport
2060059c46
[DMenu] If input is stdin and from a tty, do not read data.
...
- This stops rofi from blocking the whole desktop.
2017-07-17 15:01:02 +02:00
Dave Davenport
bca01f389d
[DMenu] make rofi obey the dmenu -w flag.
...
- This is a dirty hack that needs to be done better in next release.
2017-07-13 08:21:15 +02:00
Dave Davenport
b5d6751ce3
[Dmenu] Allow multi-select in no-custom mode in dmenu.
...
Fixes : #596
2017-07-09 13:32:56 +02:00
Dave Davenport
ef4a171fca
Put Xfwm4 on the WM list that needs extra desktop change.
...
Work-around that makes sure desktop gets switchs when setting active
window.
Fixes : #624
2017-07-05 21:30:29 +02:00
Dave Davenport
c7e8776c78
Add try exec test ( #620 )
...
* Add try exec test
* [DRun] Free after g_find_program_in_path
2017-07-04 13:38:26 +02:00
Dave Davenport
3590b95046
Do not do an expand path on Exec field of desktop file.
...
Fixes : #617
2017-07-02 11:33:02 +02:00
Dave Davenport
03d6ac4de3
Run indenter.
2017-06-25 20:25:17 +02:00
Dave Davenport
ea4328b921
[DRun] Add a small thread-pool for fetching icons.
2017-06-25 20:24:26 +02:00
Quentin Glidic
b9097dc488
drun: Preload icon themes
...
This will allow multi-thread icon loading.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-25 20:12:35 +02:00
Dave Davenport
a3c1ff7d94
[helper] Fix type issue with variadic function.
...
*
https://www.securecoding.cert.org/confluence/display/c/DCL11-C.+Understand+the+type+issues+associated+with+variadic+functions
2017-06-13 10:16:40 +02:00
Dave Davenport
26d9da7263
Position the overlay in the top right corner of the listview.
2017-06-12 08:17:28 +02:00
Quentin Glidic
19a2d37df3
gitmodules: Update libnkutils
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-11 18:39:26 +02:00
Dave Davenport
ad91f9a124
[TextBox] Calculate yalign based on actual side, not estimated size.
2017-06-08 08:46:16 +02:00
Quentin Glidic
726d940eca
drun: Use the requested icon size for lookup
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-07 12:49:20 +02:00
Quentin Glidic
9b3a60928f
drun: Re-remove the context limitations for icon lookup
...
Some applications use Devices, Status or even Actions icons.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-07 12:42:54 +02:00
Quentin Glidic
3067f67fd1
drun: Use Adwaita and gnome as fallback themes
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-07 12:41:09 +02:00
Dave Davenport
c29f897d69
Don't inline function that uses alloca.
2017-06-03 21:40:14 +02:00
Dave Davenport
9a62bfd172
Run indenter.
2017-06-03 20:35:50 +02:00
Dave Davenport
539172187f
Don't depend on latest of glib.
2017-06-03 15:45:16 +02:00
Dave Davenport
78c6993750
Merge remote-tracking branch 'origin/master' into barview
2017-06-03 01:23:31 +02:00
Dave Davenport
9b0d1faacf
Replace g_log by g_debug
2017-06-02 22:39:20 +02:00
Quentin Glidic
b0fe6d3c6a
drun: Actually use the icon theme setting
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 21:35:26 +02:00
Dave Davenport
c5f5477788
Check surface status when loading icon.
2017-06-02 21:34:07 +02:00
Dave Davenport
e49eb4d531
[Drun] Async don't rely on icon_name or free it
2017-06-02 19:11:18 +02:00
Dave Davenport
4cd2d87ed2
Merge remote-tracking branch 'origin/master' into barview
2017-06-02 18:52:28 +02:00
Dave Davenport
1be9438711
Fix icon_size and allow setting icon theme (for testing).
2017-06-02 18:37:03 +02:00
Dave Davenport
a43e4e5b12
Add small debug for unfound icons
2017-06-02 18:20:31 +02:00
Dave Davenport
1e0fb75189
Filter scanning same directory twice for same desktop files.
2017-06-02 18:13:11 +02:00
Dave Davenport
b3b01b1973
(re-implement) Do lazy loading for icons.
...
- Fetch only when requested
- Fetch the right size, instead of estimation.
2017-06-02 17:36:06 +02:00
Dave Davenport
2578817db7
Don´t always fetch icon size 32, but estimated based on character height
2017-06-02 17:03:45 +02:00
Quentin Glidic
a6f51393d3
ssh: Add startup notification support
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:57:28 +02:00
Quentin Glidic
3f8af0d7c5
run: Add startup notification support
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:57:19 +02:00
Quentin Glidic
0644f99b64
drun: Add startup notification support
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:56:59 +02:00
Quentin Glidic
22fbaa0b50
drun: Keep the app_id around
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:55:36 +02:00
Quentin Glidic
51d34b662e
helper: Add API to support startup notification
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:54:21 +02:00
Quentin Glidic
6fefbbf8ab
drun: Keep the icon name around
...
We don’t need to use it as the “we’ve search already” value since we
know just look icons up in a single pass.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:28:24 +02:00
Quentin Glidic
dc1417ba72
drun: Fix thread function signature
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:27:47 +02:00
Quentin Glidic
0daab1844e
helper: Add execute helper
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 12:50:32 +02:00
Quentin Glidic
46dee2671d
x11-helper: Rename xcb.c
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 00:12:58 +02:00
Quentin Glidic
ac8868f3b1
Indent icon code rework
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-31 20:21:58 +02:00
Dave Davenport
4d8784cf85
Port fixes from icon-cleanup branch.
...
- Thread for fetching icons for drun.
- Fixed placing of icons instead of adding place-holder token that can
mis-render.
- Give textbox TB_ICON flag.
2017-05-31 11:05:45 +02:00
Quentin Glidic
8a6bdd827d
config: Add a setting to disable icons loading
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 19:08:33 +02:00
Dave Davenport
f3b4af1da0
window: Add icons support (quick and dirty)
2017-05-30 19:08:20 +02:00
Quentin Glidic
03eb4a3abb
drun: Implement icon support
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 19:01:01 +02:00
Aaron Ash
43053cdfc3
view: Add icon (basic) support
2017-05-30 19:00:57 +02:00
Quentin Glidic
a9199e3e17
Use libnkutils for keybindings
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-29 16:51:06 +02:00
Dave Davenport
f1261e181c
Revert changes to script.
2017-05-23 17:19:04 +02:00
Dave Davenport
dca5caaa47
[Theme] Add small caps options (not working?)
2017-05-22 09:24:05 +02:00
Dave Davenport
67e38cde40
Fix some clang compiler warnings
2017-05-11 18:30:44 +02:00
Dave Davenport
ce4b1b23b4
Re-Indent code
2017-04-27 22:59:14 +02:00
Dave Davenport
01159b29f0
[Mode] Make the name field a pointer instead of a fixed 32char array.
2017-04-21 09:37:03 +02:00
Dave Davenport
5edc739848
Try to improve error message a bit (damn g_warning replace)
2017-04-20 09:24:09 +02:00
Dave Davenport
9bd17ddfd0
[RUN] Report the expanded PATH entry in debug output
2017-04-19 10:24:09 +02:00
Dave Davenport
dc2de0d042
[RUN] Expand the paths found in /home/mkoedam/.local/bin/:/opt/mpd/bin/:/home/mkoedam/.local/bin/:/opt/mpd/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
2017-04-19 09:26:35 +02:00
Quentin Glidic
9a68b22009
Fix licenses headers
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-04-15 12:32:05 +02:00
Quentin Glidic
cfbe4027bc
Consolidate logging
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-04-15 12:07:29 +02:00
Dave Davenport
ba9e1fb92a
Switch to g_{debug,warning} instead of g_log
2017-04-15 11:37:50 +02:00
Dave Davenport
a754815d14
Add converter back for old theme format.
2017-04-02 12:32:11 +02:00
Dave Davenport
563dc8dafd
Fix alternate separator
2017-03-31 20:57:42 +02:00
Dave Davenport
b4c9bad267
Document '/' as separator and add to combi mode.
2017-03-31 15:27:13 +02:00
Dave Davenport
9ae1344d56
Improve error message when called with -show
2017-03-31 13:47:44 +02:00
Dave Davenport
61e537a05f
ISSUE 576: Clutching at straws.
...
* Don't use atexit anymore. (what happens with g_spawn and atexit?
should be fine, but a test).
* Even though not needed, force wait on running thread (of which there
should be none) when destroy thread pool.
2017-03-25 14:23:31 +01:00
Dave Davenport
70e3b189df
Remove entry from history once deleted. #579
2017-03-21 17:19:05 +01:00
Dave Davenport
12cbb0368d
#579 Fix delete cached entry.
2017-03-20 12:37:52 +01:00
Dave Davenport
50477a0b99
[Keys] Cleanup view a bit.
2017-03-17 14:07:11 +01:00
Dave Davenport
dfeb5940d4
Reduce scope and unneeded check.
2017-03-17 13:33:47 +01:00
Dave Davenport
000c113925
[DRUN] Get categories on initial parsing from keyfile, not on matching (is slow-ish)
2017-03-14 17:34:41 +01:00
Dave Davenport
13bac230a2
[SSH] Fix missing parameter documentation
2017-03-11 13:40:05 +01:00
Dave Davenport
cee753bd3c
Zeltakmadness ( #572 )
...
* Allow modi to set extra pango attributes on displayed rows
* Fix some documentation, only highlight the mode name with color.
* Small rename.
2017-03-10 23:39:29 +01:00
Dave Davenport
b72a010908
Issue570 ( #571 )
...
* First start issue #570
* Implement (glob style) includes.
* Add glob check to configure.
* If expanding path, use it
2017-03-08 16:56:28 +01:00
Dave Davenport
3f4d58ef53
Indent code.
2017-03-04 19:41:06 +01:00
Dave Davenport
86dc1e1448
Detect plugins on startup.
2017-03-04 12:00:59 +01:00
Dave Davenport
45c70cbecf
Allow modes to set message box, instead of view creation argument.
2017-03-01 09:57:54 +01:00
Dave Davenport
8aac855fe0
Remove replace test. (Don't do commit -a )
2017-03-01 09:50:23 +01:00
Dave Davenport
8bd7db31d2
Add message box to view structure. Always add it, disable it when not showing anything
2017-03-01 09:37:20 +01:00
Dave Davenport
ed7cfcb6aa
Add openbox to the naughty list
2017-02-18 10:47:53 +01:00
Dave Davenport
dc7e4aa96e
Install some headers for use in plugins
2017-02-17 14:06:31 +01:00
Dave Davenport
f7b4bebb9b
Rename token_match to helper_token_match.
2017-02-17 09:58:47 +01:00
Dave Davenport
fb05409365
Start of making SardemFF7 happy
...
Allow mode's to be loaded as dynamic plugins.
2017-02-14 08:52:17 +01:00
Dave Davenport
a579c86c1f
Only switch to the desktop first if we are on AweSome WM
2017-02-11 17:12:07 +01:00
Dave Davenport
c386521574
Add an window manager detection function to startup.
...
current_window_manager now is an enum of known window managers.
2017-02-11 16:53:37 +01:00
Dave Davenport
0ea74e5c7f
Update function check configure.ac
2017-02-09 08:45:15 +01:00
Dave Davenport
87251a991c
Indent
2017-02-09 08:27:26 +01:00
Dave Davenport
7b3e0918cf
Reduce amount of paths created
2017-02-06 23:45:46 +01:00
Dave Davenport
db92ff1f41
Add border radius to border around widget.
2017-02-06 21:17:56 +01:00
Dave Davenport
c5506e4cdd
Allow bang to match multiple modes when incomplete to select single. Fixes #552
2017-02-04 10:54:15 +01:00
Dave Davenport
8ef7b4b794
Don't recreate every string everytime.
2017-02-03 20:49:16 +01:00
Dave Davenport
601a20aba5
Speedup drun by 10% by reducing number of reallocs.
2017-02-02 08:36:55 +01:00
Dave Davenport
f10b879cac
Async pre-read 25 entries by default, to make it feel more snappy. Fixes #550
2017-02-01 21:07:40 +01:00
Dave Davenport
954288ab81
Give overlay widget a parent, queue widget redraw on enable/disable
2017-01-31 08:09:55 +01:00
Dave Davenport
714b5968d5
Allow user to set number of rows to pre-read async.
2017-01-30 17:15:34 +01:00
Moritz Maxeiner
6b9dc1d081
Combi mode: Bang mode prefixes with len>1 ( #542 )
...
* Combi mode: Bang mode prefixes with len>1
This is required to match on modes that share a prefix.
Let 'power' and 'pass' be such modes for the following explanation:
Previously, only the first character of after the bang was compared,
so '!p' would always be matched to the 'pass' mode and there was no
way to limit selection in combi mode to the 'power' mode.
Now we can use prefixes of arbitrary length following the bang
such as '!po' (matches 'power' mode), or '!pa' (matches 'pass' mode).
Prefixes of length 1 are unchanged compared to the previous
behaviour, i.e. '!p' will still match 'pass'.
* Combi-mode prefixes should be utf-8 aware
2017-01-26 19:46:46 +01:00
Dave Davenport
0ebd6a260b
Add auto-detect option to DPI setting.
2017-01-21 12:58:52 +01:00
Dave Davenport
253724c85c
Ignore empty path.
...
Not in spec. but lets ignore it.
Fix : #539
2017-01-17 20:00:00 +01:00
Dave Davenport
bfae111579
Fix indenting and header commenting.
2017-01-11 09:11:19 +01:00
Dave Davenport
25dff63006
Improve error handling string.
2017-01-09 22:40:11 +01:00
Dave Davenport
f42e4ffbd7
Remove old cairo color set functions
2017-01-09 08:32:16 +01:00
Dave Davenport
baab2047ad
Indent magic, rework makefile so lexer and yacc file are not passed.
2017-01-08 21:36:06 +01:00
Dave Davenport
22e2d7587d
Update copyright to 2017.
2017-01-03 17:59:28 +01:00
Dave Davenport
6e55cb86b9
Work-around for detecting end of file, hopefully fixing #518 .
2016-12-30 17:33:24 +01:00
Dave Davenport
aa08c8ea78
Make workspace name also searchable
2016-12-26 16:23:55 +01:00
Dave Davenport
ee310c8470
Strip pango markup from workspace names when detecting I3.
...
Thanks I3 for this crap.
Issue: #507
2016-12-26 15:58:51 +01:00
Dave Davenport
5a638b1fa0
Search categories when searching Desktop Files.
...
Issue: #499
2016-12-26 15:18:52 +01:00
Dave Davenport
7d9ca64dd6
Merge branch 'master' of github:DaveDavenport/rofi
2016-12-17 17:58:29 +01:00
Dave Davenport
84508bdc1b
Lower priority of loading data from dmenu, so drawing is not delayed
2016-12-17 17:56:54 +01:00