Commit graph

229 commits

Author SHA1 Message Date
speedie f1b0ecd624 Change worddelimiters 2023-07-03 21:35:21 +02:00
speedie 4ac7119c5b Add WIP icon support to spmenu 2023-07-03 18:48:38 +02:00
Jacob 3f456f3a37 Feature: Add the ability to take "screenshots" of spmenu.
It doesn't actually capture your screen, but rather saves the Cairo
surface to an image. The path to the image and some other options
can also be configured in the config file.

By default, Print Screen can be pressed in Normal mode with no modifier
to take a screenshot. The default location is the user's home directory,
and the file has a date attached to it. Of course, this can be changed
as well.
2023-06-30 02:44:29 +02:00
speedie 20e019b748 Update documentation for spmenu_run to mention bookmarking 2023-06-25 22:21:54 +02:00
speedie b4dd4fc383 Add documentation for spmenu_test
Add documentation for spmenu_test, also improve Markdown format
consistency.
2023-06-24 19:55:11 +02:00
speedie dfc4fe038c Remove fullscreen functionality
The fullscreen functionality is kind of cool, but adds a lot of code and
as commit history has shown, plenty of bugs and extra required testing.

I may reimplement this later in a less bad manner. Note that the
fullscreen behavior can be achieved by simply increasing image size to
the max. spmenu will let you do that.

Fixes issue #9
2023-06-24 04:53:44 +02:00
speedie 0a59088313 Fix keybind conflict, replace imageg, imagew and imageh in favor of
using the img struct
2023-06-24 04:20:51 +02:00
speedie 52a76ab538 move some stuff 2023-06-20 08:35:10 +02:00
speedie 453b0028aa Switch to Ctrl modifier from Alt modifier for navhistory keys 2023-06-19 16:26:03 +02:00
speedie 0409dbff12 Change Ctrl+Shift+h keybind to simply Shift+h in normal mode 2023-06-19 16:16:16 +02:00
speedie 3c59249fbd setlines and setcolumns now work in insert mode as well 2023-06-19 02:36:28 +02:00
speedie c1058dfb00 add option to enable/disable setting lines/columns using keybinds 2023-06-19 01:46:05 +02:00
speedie 6083df6736 update documentation 2023-06-19 01:08:15 +02:00
speedie aa62ca8cdd Add powerline for items
Currently does not work with !lines, and as such it has been disabled
for the time being.
2023-06-18 18:05:42 +02:00
speedie 1c6bc9f92d Add -fl argument which can be used to check if a feature is supported
This could be very useful for shell scripts, or debugging.
2023-06-12 17:09:34 +02:00
speedie 1c4c68dcc6 Add image resize option 2023-06-12 00:26:35 +02:00
speedie 3bc300d029 Expose caret width, height and add a padding option 2023-06-11 04:22:25 +02:00
speedie 355c3299c5 Update URLs with the non-php version 2023-06-10 14:36:44 +02:00
speedie 965043e5e6 Don't indent items to prompt width by default 2023-06-09 14:00:12 +02:00
speedie b37de0b2e0 Fix keybind conflict causing image to be flipped if columns are changed 2023-06-09 13:55:55 +02:00
speedie 263eca5820 remove wayland support section, instead arguments in the list are now
marked with X11 only.
2023-06-09 08:16:00 +02:00
speedie f8e2763d57 update "bug reports" 2023-06-09 07:25:17 +02:00
speedie 53112c3a97 update documentation.. again 2023-06-09 07:06:59 +02:00
speedie 498b786b23 Some more colorscheme changes, update options.h and example.Xresources 2023-06-09 03:50:31 +02:00
speedie 807b378582 Indent lines in config file, replace many colors. Colors still need to be replaced in options.h and example.Xresources though. 2023-06-09 03:36:56 +02:00
speedie da0faccfa3 Move some configuration stuff around 2023-06-09 02:52:53 +02:00
speedie 505f06ac6c Combine the long keybinds into one liners, meaning the default config is
a lot more approachable to a beginner.
2023-06-09 00:48:19 +02:00
Jacob 2e968a9c32 Merge branch 'master' into new-theme 2023-06-08 21:33:52 +00:00
speedie e6b2c0d9c9 Fix some bugs which had been previous undiscovered with the keysym
handling
2023-06-08 22:42:25 +02:00
speedie 5745b52bc9 Add work in progress support for images on Wayland
This commit also adds MASSIVE speed improvements to image drawing, due
to code cleanup. There are still a *few* issues to resolve, one is
X11 related, and one is caused by alpha/blending.
2023-06-08 19:40:30 +02:00
speedie a78dddb597 Use rounded powerlines in the default config 2023-06-08 13:46:28 +02:00
speedie e7c944a5d6 Improve SGR sequence colors 2023-06-08 08:17:42 +02:00
speedie 9eb97d5da0 add rounded variant of the powerline 2023-06-07 21:31:10 +02:00
speedie 1ac9211b02 remove preview.png, it's not used anymore 2023-06-07 01:08:10 +02:00
speedie eee74676d4 add theme gif because it's cool 2023-06-07 01:06:54 +02:00
speedie fd92de24ff allow overriding path to theme file and binds file in the regular config
file, and allow overriding config file path in options.h
2023-06-06 17:59:03 +02:00
speedie a2cb373eb6 update very old and outdated comments in example .Xresources file 2023-06-03 15:25:16 +02:00
speedie 05b7f116bf update URLs 2023-06-03 02:47:39 +02:00
speedie 410b8b206a version bump: 2.0
also remove code-docs, the wiki should have this instead.
2023-06-02 20:27:55 +02:00
speedie 692e3abc68 Add experimental native Wayland support 2023-06-02 18:37:51 +02:00
speedie 95b420944c add a bind file which scripts can use to gain full control over keybinds 2023-05-22 22:47:37 +02:00
speedie 1711c5a9ad remove themes, they're moved to https://git.speedie.site/spmenu-themes
or https://github.com/speediegq/spmenu-themes
2023-05-21 14:38:01 +02:00
speedie 620cb0ca63 add option to not allow selecting multiple items to spmenu itself 2023-05-19 02:13:13 +02:00
speedie c0169b5da6 add default keybinds to man page 2023-05-19 00:21:01 +02:00
speedie f534250e7a add separate colorscheme for marked items, SchemeItemSel is used as a fallback 2023-05-18 10:23:45 +02:00
speedie fa645e1ae7 update documentation 2023-05-17 08:15:21 +02:00
speedie 45fc412c43 fix horrible default colors 2023-05-16 21:36:45 +02:00
speedie 82fa3eaa95 add separate man page for spmenu_run 2023-05-16 20:50:08 +02:00
speedie 12b69656a7 add support for marking items (ie. multi selection) 2023-05-16 18:54:26 +02:00
speedie eadb69d6eb fix bug in the default config 2023-05-14 01:32:33 +02:00
speedie 15141c230d add the ability to full screen an image + code cleanup
images are drawn quite slowly, something needs to be done about that
soon
2023-05-14 00:10:24 +02:00
speedie 841d21e511 version 2.0 is not a thing 2023-05-13 17:56:43 +02:00
speedie 11859ff159 allow rofi like "next" colors 2023-05-13 16:07:29 +02:00
speedie 5ec6cd34e5 some small changes to the svg 2023-05-13 01:42:30 +02:00
speedie fa051aca2a some small changes to the .desktop entries 2023-05-13 01:22:40 +02:00
speedie fd67511080 add .desktop entries for use with desktop environments, install to /usr
instead of /usr/local by default
2023-05-13 00:25:50 +02:00
speedie 3da21bc052 allow overriding image cache directory 2023-05-12 23:23:15 +02:00
speedie 44ec1632bd apply last commit in all default scripts, update documentation to
reflect it
2023-05-10 21:55:59 +02:00
speedie 8a405edcdc oops forgot about that 2023-05-10 09:19:56 +02:00
speedie 73b7019a93 and in the config as well 2023-05-10 09:19:12 +02:00
speedie 2e9cb1e408 add option to not allow typing if what is being typed doesn't have any
matches
2023-05-09 19:30:01 +02:00
speedie e163c1a906 remove spmenu:test 2023-05-08 11:57:39 +02:00
speedie a26f64de33 move from makefile 2023-05-08 11:11:49 +02:00
speedie 63e5be2884 add the ability to read from file, been wanting this for a very long
time
2023-05-07 01:41:30 +02:00
speedie 442c40b732 add incremental as well, this should now include most suckless patches people use 2023-05-06 23:39:03 +02:00
speedie 5ff1abc849 add ability to print item number rather than the item itself 2023-05-06 23:29:41 +02:00
speedie db8ed90ff8 disable accurate width by default 2023-05-06 14:59:47 +02:00
speedie 104d46640b don't use all lowercase for mouse click names 2023-05-06 14:13:56 +02:00
speedie 2c34650a63 update documentation to reflect today's changes 2023-05-01 22:46:13 +02:00
speedie 316fcd0a76 add basic theme.conf file support 2023-05-01 17:07:35 +02:00
speedie 4f1a6d5349 add the ability to have text padding depending on item selection 2023-04-30 23:45:58 +02:00
speedie c3b9687e21 add comments to config file for keybinds 2023-04-29 22:53:00 +02:00
speedie ca7955126d add 256 color to array 2023-04-29 22:33:42 +02:00
speedie a8b52b38e9 fix typo, it's -hom not -hem 2023-04-29 16:04:29 +02:00
speedie 45312afc7c center by default, add comments to config file 2023-04-29 15:31:47 +02:00
speedie e9edd9bee0 update docs 2023-04-28 18:24:27 +02:00
speedie 6fa8587622 oops, an issue with the default config 2023-04-28 17:56:48 +02:00
speedie 5b2cbc0c7e fix keybind for setprofile, fix mac support 2023-04-26 10:01:11 +02:00
speedie f94f1ce9ab various docs changes to represent last few commits 2023-04-25 18:11:49 +02:00
speedie b2e933e1a9 minor indentation change and name change for button types 2023-04-25 17:52:52 +02:00
speedie 54797235e1 fix a few issues, add in mouse bindings 2023-04-25 16:42:15 +02:00
speedie ad32165408 finish keybind configuration 2023-04-25 11:39:50 +02:00
speedie d512351828 actually add hidecaps, oops 2023-04-22 21:34:37 +02:00
speedie de3264d4f6 change arg, old arg is still recognized 2023-04-22 14:18:30 +02:00
speedie a4d439976a update docs 2023-04-22 00:20:49 +02:00
speedie f56e0a3ae3 add more docs 2023-04-21 19:36:05 +02:00
speedie b79f5c39c1 add a caps lock indicator, took lots of work 2023-04-20 21:22:45 +02:00
speedie b58eb6cb9f last commit can now be done with an argument 2023-04-20 19:19:46 +02:00
speedie a2c28dbfdd add an option to display SGR sequences as plain text 2023-04-20 19:16:16 +02:00
speedie 700c18d60e change even more color names
NOTE: this breaks compatibility with most existing themes and
configurations, but i decided
it was better to do this change sooner than later
2023-04-17 17:36:18 +02:00
speedie 32c2291936 change the name of a few things 2023-04-17 16:57:09 +02:00
speedie a1ab4b4b74 add alpha to config file 2023-04-17 16:27:48 +02:00
speedie 334b76b2e6 add .Xresources entries 2023-04-17 16:15:03 +02:00
speedie 273fb103c9 add the ability to have vertical/horizontal outer padding (margin) 2023-04-16 23:57:02 +02:00
speedie 8273d1b574 version bump: 0.4.1 2023-04-14 21:47:38 +02:00
speedie 68716f15a3 add some really nice features, and WIP file navigation to spmenu_run 2023-04-10 21:00:48 +02:00
speedie 52f6ecda3e add basic code documentation 2023-04-08 12:08:16 +02:00
speedie 9e2d297742 add the ability to enable/disable powerline for each powerlined part,
and also allow styling them
2023-04-07 21:20:43 +02:00
speedie 073b38faac replace "cursor" with "caret", old arguments are still compatible
though as of now but deprecated
2023-04-07 20:22:25 +02:00
speedie 68b58325d4 allow specifying a specific configuration file to load 2023-04-07 18:42:12 +02:00