speedie
3bc300d029
Expose caret width, height and add a padding option
2023-06-11 04:22: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
9eb97d5da0
add rounded variant of the powerline
2023-06-07 21:31:10 +02:00
speedie
a9ee831159
add X11 toggle, so now Xlib, Xinerama and Xrender aren't dependencies if
...
you only use Wayland
2023-06-05 17:16:26 +02:00
speedie
692e3abc68
Add experimental native Wayland support
2023-06-02 18:37:51 +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
3e4e36250c
some minor changes to spmenu_imageviewer and remove additional line when
...
there's an image
2023-05-16 22:06:24 +02:00
speedie
5aefbf249a
fix some bugs, add multisel for spmenu_run
2023-05-16 20:03:52 +02:00
speedie
12b69656a7
add support for marking items (ie. multi selection)
2023-05-16 18:54:26 +02:00
speedie
8c9d33d01f
add LICENSE notice to all code
2023-05-14 00:21:16 +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
195e4252b7
oops, i forgot i needed to set it to 0 first
2023-05-13 16:19:03 +02:00
speedie
11859ff159
allow rofi like "next" colors
2023-05-13 16:07:29 +02:00
speedie
d065aa8ab6
enable highlighting for colored entries
2023-05-10 08:16:22 +02:00
speedie
5efe236380
indent lots of code using vim gg=G
2023-05-08 23:00:45 +02:00
speedie
aad8baef66
save item index
2023-05-07 15:33:09 +02:00
speedie
776de147ea
a minor change to the way indentation is done
2023-05-01 04:30:38 +02:00
speedie
7d160b3766
oops we need to add to the x variable in drawhighlights
2023-05-01 00:14:41 +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
ae96605fcd
fix some wacky stuff
2023-04-29 16:08:00 +02:00
speedie
6afd2e27b9
when lines, don't remove menumarginv
2023-04-22 01:08:39 +02:00
speedie
52f88f6a73
remove the item hovering, it's just not necessary and causes a lot of
...
slowness
if you find a way to speed this up significantly, please let me know
2023-04-21 17:59:10 +02:00
speedie
eca13f2896
fix lots of issues/bad code
2023-04-21 09:49:38 +02:00
speedie
b79f5c39c1
add a caps lock indicator, took lots of work
2023-04-20 21:22:45 +02:00
speedie
a2c28dbfdd
add an option to display SGR sequences as plain text
2023-04-20 19:16:16 +02:00
speedie
1ea6e872f0
oops, fix something very stupid i did a few commits ago
2023-04-18 21:27:34 +02:00
speedie
273fb103c9
add the ability to have vertical/horizontal outer padding (margin)
2023-04-16 23:57:02 +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
e43754f534
add some arguments
2023-04-07 17:58:42 +02:00
speedie
fcd52fa1c2
we must ALWAYS remove 2 * borderwidth and 2 * sp from menu width (mw)
2023-04-07 14:43:45 +02:00
speedie
0753a2ec69
i was wrong about the issue, this was actually a surprisingly simple fix
2023-04-07 03:35:36 +02:00
speedie
087a405ada
some more minor changes to the drawing funcs
2023-04-05 20:54:37 +02:00
speedie
a068296697
cleanup draw functions
2023-04-05 19:07:29 +02:00
speedie
108b72af46
last commit for drawinput();
2023-04-05 18:58:48 +02:00
speedie
4e8c39d3ee
use passed arguments in drawprompt();
2023-04-05 18:56:44 +02:00
speedie
10495b48bf
add experimental configuration file
...
profiles still need to be rewritten
2023-04-04 21:40:22 +02:00
speedie
f7de91850b
remove some useless lines
2023-04-04 00:23:46 +02:00
speedie
854461e046
fix border width as well
2023-04-03 23:55:57 +02:00
speedie
9078dbe61f
fix barpadding for mode/number
2023-04-03 23:48:19 +02:00
speedie
485ad9fb58
support the \033[0m
sequence, it resets the scheme
2023-04-02 17:45:56 +02:00
speedie
0a3c36fcd9
make GCC a bit happier
2023-04-01 15:03:42 +02:00
speedie
1495140dbd
fix: drawing images when the top line is removed causes it to keep
...
resizing for all eternity, which eventually makes your computer
unusable
2023-04-01 14:01:59 +02:00
speedie
6ac2afb240
add plenty of comments to spmenu
2023-03-31 12:42:42 +02:00
speedie
158b89335c
fix: right/left arrow drawing
2023-03-29 22:01:45 +02:00
speedie
93ce81f05f
change some names to make the function more readable
2023-03-29 21:07:23 +02:00
speedie
8c93ee5fbe
some minor improvements
2023-03-29 20:23:49 +02:00
speedie
d91dec4010
password argument fix
2023-03-28 23:35:46 +02:00
speedie
231a43d053
some changes, spmenu is now suitable to be used for simply drawing plain
...
text without any selection or anything
2023-03-28 17:37:06 +02:00
speedie
cf1b79008b
upgrade run launcher significantly
2023-03-28 15:10:57 +02:00
speedie
04b46313ef
move drawing to separate functions
2023-03-26 16:42:11 +02:00
speedie
ceec442bfe
fix some prompt width issues
2023-03-24 04:04:37 +01:00
speedie
1c6c041f5e
fixed: tab completion with sgr sequences
2023-03-24 03:48:56 +01:00
speedie
b8e7fd27db
some changes to the general codebase. also add spmenu:about which
...
displays information about the compiled spmenu build
2023-03-24 03:14:24 +01:00
speedie
1f2a37c1d2
fix: highlighting drawn when it shouldn't be
2023-03-21 22:24:50 +01:00
speedie
73685ee480
fix text sticking out
2023-03-21 17:10:16 +01:00
speedie
ba6dfe2cee
add powerline for number and mode
2023-03-21 16:40:11 +01:00
speedie
dc51707520
powerline the prompt
...
TODO: powerline numbers and match count
2023-03-21 16:30:30 +01:00
speedie
45a46fa4a3
fix a possible segmentation fault
2023-03-18 13:07:15 +01:00
speedie
d163a7262b
remove centered in favor of menuposition == 2
2023-03-16 17:22:14 +01:00
speedie
1153d416ab
replace almost all /* style comments with // where it makes sense
2023-03-16 16:54:36 +01:00
speedie
98b0ae0651
improve highlighting
2023-03-16 11:58:38 +01:00
speedie
8377ec92a9
some cleanup, start using // comments more
2023-03-16 10:09:51 +01:00
speedie
392e5bfffc
Revert "don't set line height beyond item count"
...
This reverts commit 39ddf11931
.
revert this, it caused a lot of issues
will rewrite this later
2023-03-13 23:07:05 +01:00
speedie
39ddf11931
don't set line height beyond item count
2023-03-13 22:48:11 +01:00
speedie
71090e7aa3
add keybinds for setting line/columns
2023-03-13 22:45:04 +01:00
speedie
14075e00a3
fix some bugs with padding
2023-03-12 21:03:35 +01:00
speedie
b24cf560a1
add feature which allows prompt width to be removed from items, with or
...
without arguments
2023-03-11 13:24:20 +01:00
speedie
705cb460bf
fix small warnings gcc will spit out if features have been disabled
2023-03-09 17:26:56 +01:00
speedie
9b806fa9c0
add high priority
2023-03-09 10:10:29 +01:00
speedie
b84494043f
fix one small thing with last commit
2023-03-08 22:51:00 +01:00
speedie
c92d21c5c3
fix SGR size
2023-03-08 22:49:04 +01:00
speedie
6450a36f13
fix: last character not highlighted
2023-03-08 19:20:18 +01:00
speedie
3e0bf9cd83
cleanup all gcc warnings
2023-03-06 21:19:12 +01:00
speedie
c1990916e3
Improve flipimage(); function, enable pango for item, add rtl lang support
...
for items with SGR colors
2023-03-04 19:59:36 +01:00
speedie
73a9622c8e
apply pango markup to colored text
2023-03-04 02:07:06 +01:00
speedie
e3b4a1c700
fix: imagegaps not applied to the right side of the image
2023-03-03 17:22:19 +01:00
speedie
2542474621
fix: prompt increases image gaps
2023-03-03 17:12:38 +01:00
speedie
e60134edd0
Fix segmentation fault
2023-03-02 21:37:08 +01:00
speedie
e6be5d5aad
add option to change the password character
2023-03-02 18:43:09 +01:00
speedie
38b568b997
use TEXTWM for pango
2023-03-02 18:25:28 +01:00
speedie
d455c3a3f2
cleanup item drawing, this means we can now disable any item we want at
...
any time (just don't forget to call drawmenu)
2023-03-02 18:10:37 +01:00
speedie
327636b0ee
cleanup drw_text lines by setting an integer depending on whether or not
...
USERTL is true once globally
2023-03-02 17:51:25 +01:00
speedie
fbfdfe2583
Fix toggle keybind
2023-03-02 16:22:59 +01:00
speedie
be9a9b3547
add image toggle int
2023-03-02 14:53:48 +01:00
speedie
505c03c77b
Move drawing functions
2023-03-02 11:40:52 +01:00