add LICENSE notice to all code
This commit is contained in:
parent
16daefc4fe
commit
8c9d33d01f
|
@ -2,6 +2,7 @@
|
|||
* It is recommended you set keybinds in ~/.config/spmenu/spmenu.conf instead.
|
||||
*
|
||||
* See https://spmenu.speedie.site/index.php/keybinds.h+documentation for more information.
|
||||
* See LICENSE file for copyright and license details.
|
||||
*/
|
||||
|
||||
static Key keys[] = {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
void moveleft(Arg *arg) {
|
||||
struct item *tmpsel;
|
||||
int i, offscreen = 0;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
typedef union {
|
||||
int i; // integer
|
||||
unsigned int ui; // unsigned int
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
void readargs(int argc, char *argv[]) {
|
||||
int i = 0;
|
||||
int j = 0;
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
static void readargs(int argc, char *argv[]);
|
||||
static void usage(void);
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
void prepare_window_size(void) {
|
||||
// set horizontal and vertical padding
|
||||
sp = menupaddingh;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
static void create_window(int x, int y, int w, int h);
|
||||
static void prepare_window_size(void);
|
||||
static void set_window(void);
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
// alpha array
|
||||
static unsigned int alphas[][2] = {
|
||||
// fg bg
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
#include <libconfig.h>
|
||||
#include "../theme/theme.c"
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
#include "../theme/theme.h"
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
// declare various macros
|
||||
#define CLEANMASK(mask) (mask & ~(numlockmask|LockMask) & (ShiftMask|ControlMask|Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask))
|
||||
#define BUTTONMASK (ButtonPressMask|ButtonReleaseMask)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
void drawhighlights(struct item *item, int x, int y, int w, int p, const char *ittext) {
|
||||
int i, indent;
|
||||
char *highlight;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
// declare functions
|
||||
static void drawmenu(void);
|
||||
static int drawprompt(int x, int y, int w);
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
void eventloop(void) {
|
||||
XEvent ev;
|
||||
int noimg = 0;
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
static void eventloop(void);
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
void loadhistory(void) {
|
||||
FILE *fp = NULL;
|
||||
static size_t cap = 0;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
static char *histfile;
|
||||
static char **history;
|
||||
static size_t histsz, histpos;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
#if USEIMAGE
|
||||
void setimagesize(int width, int height) {
|
||||
int oih = 0;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
#if USEIMAGE
|
||||
#include <errno.h>
|
||||
#include <pwd.h>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
void updatenumlockmask(void) {
|
||||
unsigned int i, j;
|
||||
XModifierKeymap *modmap;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
typedef struct {
|
||||
unsigned int mode;
|
||||
unsigned int mod;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
void fuzzymatch(void) {
|
||||
struct item *it;
|
||||
struct item **fuzzymatches = NULL;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
static void fuzzymatch(void);
|
||||
static void match(void);
|
||||
static int compare_distance(const void *a, const void *b);
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
void buttonpress(XEvent *e) {
|
||||
struct item *item;
|
||||
XButtonPressedEvent *ev = &e->xbutton;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
// clicks
|
||||
enum {
|
||||
ClickWindow,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
#if USERTL
|
||||
void apply_fribidi(char *str) {
|
||||
FriBidiStrIndex len = strlen(str);
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
static char fribidi_text[BUFSIZ] = "";
|
||||
static void apply_fribidi(char *str);
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
char sixd_to_8bit(int x) {
|
||||
return x == 0 ? 0 : 0x37 + 0x28 * x;
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
static void init_appearance(void);
|
||||
|
||||
// Color schemes
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
char ** tokenize(char *source, const char *delim, int *llen) {
|
||||
int listlength = 0, list_size = 0;
|
||||
char **list = NULL, *token;
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
static char **tokenize(char *source, const char *delim, int *llen);
|
||||
static int arrayhas(char **list, int length, char *item);
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
void readstdin(void) {
|
||||
char buf[sizeof text], *p;
|
||||
size_t i, imax = 0, itemsiz = 0;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
static void readstdin(void);
|
||||
static void readfile(void);
|
||||
static int parsemarkup(int index);
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
void theme_load(void) {
|
||||
char *xdg_conf;
|
||||
char *theme = NULL;
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
static void theme_load(void);
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
#if USEXRESOURCES
|
||||
void resource_load(XrmDatabase db, char *name, enum resource_type rtype, void *dst) {
|
||||
char *sdst = NULL;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
#if USEXRESOURCES
|
||||
enum resource_type {
|
||||
STRING = 0,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
// This .Xresources array is read and compared to the xrdb. Simply add to the array if you need to.
|
||||
#if USEXRESOURCES
|
||||
ResourcePref resources[] = {
|
||||
|
|
2
mouse.h
2
mouse.h
|
@ -1,6 +1,8 @@
|
|||
/* Mouse bindings
|
||||
* These are all your hardcoded mouse bindings. It is recommended you set these in ~/.config/spmenu/spmenu.conf though.
|
||||
*
|
||||
* See https://spmenu.speedie.site/index.php/mouse.h+documentation for more information.
|
||||
* See LICENSE file for copyright and license details.
|
||||
*/
|
||||
|
||||
static Mouse buttons[] = {
|
||||
|
|
Loading…
Reference in a new issue