Commit graph

913 commits

Author SHA1 Message Date
speedie 75637c4ae6 version bump: 2.3 2023-06-28 19:44:08 +02:00
speedie bab025207f Return exit code 1 if no item is selected 2023-06-27 01:46:34 +02:00
speedie ba32ad46cb Change the default number of columns for -fm 2023-06-27 01:41:36 +02:00
speedie d4b43ac072 Fix $HISTORY passed to spmenu without -H argument 2023-06-27 01:36:54 +02:00
speedie 2124d33044 fix typo breaking -fm 2023-06-26 22:47:33 +02:00
speedie 706be5fbe0 Fix $PATH on BSD by using compgen instead 2023-06-26 18:48:49 +02:00
speedie a6efdbc17f Some history fixing for FreeBSD 2023-06-26 18:34:25 +02:00
speedie b33f0bc68e More BSD compatibility 2023-06-26 18:26:53 +02:00
speedie 5806bcc897 Always check if the desktop entry exists. 2023-06-26 18:25:35 +02:00
speedie d4f8f58178 Redirect find errors to /dev/null, fixing bugs on BSD. 2023-06-26 18:20:46 +02:00
speedie 8e257d5f6b Improve FreeBSD compatibility by moving meson.options to
meson_options.txt
Also fix a -Wsometimes-uninitialized
2023-06-26 18:09:03 +02:00
speedie 20e019b748 Update documentation for spmenu_run to mention bookmarking 2023-06-25 22:21:54 +02:00
speedie 6bc994399f pandoc version update 2023-06-25 18:38:13 +02:00
Jacob 591023c471 Fix headers being deleted when they shouldn't be 2023-06-25 20:23:15 +02:00
Jacob 1ac60b25ad Add $RUNLAUNCHER_BM_ARGS variable 2023-06-25 20:19:41 +02:00
Jacob 0c9ae3977a Add -sb and -nsb arguments to spmenu_run 2023-06-25 20:14:58 +02:00
Jacob 9b062f7dfb Set prefix in script 2023-06-25 19:56:00 +02:00
Jacob d439b14ea2 Rename some variables, allow setting prompt 2023-06-25 19:53:22 +02:00
Jacob 88bbfa2cb9 Add the ability to run a command for the bookmark.
Typing in @GNU:xdg-open https://gnu.org will create a bookmark called
GNU which opens up gnu.org in your browser. '@' will show bookmarks and
'@c' will clear bookmarks.
2023-06-25 19:43:17 +02:00
Jacob 53dca773a7 Add bookmarking to spmenu_run 2023-06-25 18:41:43 +02:00
speedie f08b9bdccc spmenu_test.1 must be installed 2023-06-25 02:26:30 +02:00
speedie 1a4f2c08ef Replace sed -i with sed for *BSD compatibility 2023-06-24 23:30:03 +02:00
speedie c7632f342e Fix generate.sh
Fix generate.sh, it should now generate properly. Also remove the actual
protocols, the user should generate those, not me.
2023-06-24 21:12:18 +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 2cee004182 Remove more useless Xinerama code 2023-06-24 17:34:03 +02:00
speedie 336bdd5830 Simplify display width/height code
With this commit, display width/height is only grabbed once. This means
we don't need to deal with all that X11 and Xinerama code when we're
simply resizing the window.
2023-06-24 17:13:17 +02:00
speedie bd49d876cd Move to the first item when setting lines
This fixes an issue where you can resize beyond the number of items
2023-06-24 17:01:43 +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 748db7eed1 simplify full screen 2023-06-24 04:43:05 +02:00
speedie c0cd874348 Use /usr/bin/env bash instead of /bin/bash in the spmenu_make script for
consistency with spmenu_run and spmenu_test
2023-06-24 04:22:15 +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 aba3541d37 Disable fullscreen when no image 2023-06-24 03:00:00 +02:00
speedie 02c6c4ac5c Remove unnecessary else continue; from X11 and Wayland keybind
handling
2023-06-23 20:28:22 +02:00
Jacob 98240c4d13 Merge pull request 'Codebase improvements' (#8) from imp into master
Reviewed-on: speedie/spmenu#8
2023-06-23 15:30:22 +00:00
speedie 8e0de8f556 Simplify some variables 2023-06-23 17:27:57 +02:00
speedie 152b14330f Xlib must now be included in spmenu.c
Also, we should be checking the length of wl_cbuttons, not cbuttons on
Wayland.
2023-06-23 04:04:02 +02:00
speedie 59983981c2 Rename libdrw functions to simply "draw" 2023-06-23 03:49:23 +02:00
speedie 6328edc5cd Use global structs 2023-06-23 03:38:21 +02:00
speedie f0b22fd14d Add some more functions 2023-06-23 01:08:36 +02:00
speedie e9f88bbb50 Auto refresh enabled by default 2023-06-23 00:56:07 +02:00
speedie f6d4ea8cb9 Add some functions that can be defined in the configuration file 2023-06-23 00:55:03 +02:00
speedie aa33711795 Replace read -r code with mapfile
This may break compatibility with Bash 3, but that shouldn't really
matter much.
2023-06-23 00:49:56 +02:00
speedie 2c256c6d5f Remove entry validation, not very useful and breaks several features
Still need some speed improvements
2023-06-23 00:38:44 +02:00
speedie e22c5f7e75 Simplify caching of desktop entries
This commit simplifies the caching of desktop entries. Previously
spmenu_run would cache each desktop entry into a cache directory, of
course using it's own format and then parses that yet again to add it to
the arrays. This is terribly inefficient and wastes the user's valuable
space.

With this commit, the entries are parsed and directly written to the six
cache files, which spmenu can then grab from in plain text, without any
parsing. Significantly speeds up the caching and saves disk space.
2023-06-22 23:27:56 +02:00
speedie ca624e1ca6 Default to the default value of $XDG_CACHE_DIR in case $XDG_CACHE_DIR is
not set.

Both the current behavior and this commit are valid according to the XDG
base directory standard, however realistically no one wants dotfiles in
their home directory, and that's what would happen if $XDG_CACHE_DIR
is unset.

Also fix key inconsistency between X and Wayland.
2023-06-22 00:17:23 +02:00
speedie 7389d28be5 Version bump: 2.2 2023-06-21 16:20:35 +02:00
speedie 37dfc0548c cleanup macOS check 2023-06-21 16:18:17 +02:00
speedie 04cbde4dfb Update documentation to reflect spmenu_make 2023-06-20 10:57:56 +02:00
speedie dfc4ad0fa4 cleanup a bit, fix margin-vertical and fullscreen 2023-06-20 09:40:40 +02:00
speedie a22526b275 add layout picker screenshot 2023-06-20 09:08:09 +02:00