From 1ae24861a06d773836fb674814aa03df90bbb095 Mon Sep 17 00:00:00 2001 From: Shipwreckt Date: Wed, 22 Oct 2025 22:23:00 +0100 Subject: Updated install script, some configs, added vimwiki, added doas def --- files/config/suckless/st/st.h | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'files/config/suckless/st/st.h') diff --git a/files/config/suckless/st/st.h b/files/config/suckless/st/st.h index a611939..99b4e2b 100644 --- a/files/config/suckless/st/st.h +++ b/files/config/suckless/st/st.h @@ -12,7 +12,7 @@ #define DEFAULT(a, b) (a) = (a) ? (a) : (b) #define LIMIT(x, a, b) (x) = (x) < (a) ? (a) : (x) > (b) ? (b) : (x) #define ATTRCMP(a, b) ((a).mode != (b).mode || (a).fg != (b).fg || \ - (a).bg != (b).bg || (a).decor != (b).decor) + (a).bg != (b).bg) #define TIMEDIFF(t1, t2) ((t1.tv_sec-t2.tv_sec)*1000 + \ (t1.tv_nsec-t2.tv_nsec)/1E6) #define MODBIT(x, set, bit) ((set) ? ((x) |= (bit)) : ((x) &= ~(bit))) @@ -20,10 +20,6 @@ #define TRUECOLOR(r,g,b) (1 << 24 | (r) << 16 | (g) << 8 | (b)) #define IS_TRUECOL(x) (1 << 24 & (x)) -// This decor color indicates that the fg color should be used. Note that it's -// not a 24-bit color because the 25-th bit is not set. -#define DECOR_DEFAULT_COLOR 0x0ffffff - enum glyph_attribute { ATTR_NULL = 0, ATTR_BOLD = 1 << 0, @@ -39,7 +35,6 @@ enum glyph_attribute { ATTR_WDUMMY = 1 << 10, ATTR_BOXDRAW = 1 << 11, ATTR_BOLD_FAINT = ATTR_BOLD | ATTR_FAINT, - ATTR_IMAGE = 1 << 14, }; enum selection_mode { @@ -48,11 +43,6 @@ enum selection_mode { SEL_READY = 2 }; -static inline void tsetimgrow(Glyph *g, uint32_t row) { - g->u.img.row = row; -} - - enum selection_type { SEL_REGULAR = 1, SEL_RECTANGULAR = 2 @@ -63,14 +53,6 @@ enum selection_snap { SNAP_LINE = 2 }; -enum underline_style { - UNDERLINE_STRAIGHT = 1, - UNDERLINE_DOUBLE = 2, - UNDERLINE_CURLY = 3, - UNDERLINE_DOTTED = 4, - UNDERLINE_DASHED = 5, -}; - typedef unsigned char uchar; typedef unsigned int uint; typedef unsigned long ulong; @@ -84,7 +66,6 @@ typedef struct { ushort mode; /* attribute flags */ uint32_t fg; /* foreground */ uint32_t bg; /* background */ - uint32_t decor; /* decoration (like underline) */ } Glyph; typedef Glyph *Line; @@ -127,8 +108,6 @@ void selextend(int, int, int, int); int selected(int, int); char *getsel(void); -Glyph getglyphat(int, int); - size_t utf8encode(Rune, char *); void *xmalloc(size_t); -- cgit v1.2.3