sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit ccd18b02c7301bc81d1c55664732c283bf80c073
parent 6a1d4c4c4b4800d81c5130f33e2263d449739c58
Author: rangerlatham <ghanklatham@gmail.com>
Date:   Mon,  1 Jan 2018 16:09:13 -0500

Merge branch 'master' of git://git.suckless.org/sites

Diffstat:
Mst.suckless.org/patches/visualbell/index.md | 2+-
Ast.suckless.org/patches/visualbell/st-visualbell-20180101-1f24bde.diff | 74++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Msuckless.org/rocks.md | 5+++--
3 files changed, 78 insertions(+), 3 deletions(-)

diff --git a/st.suckless.org/patches/visualbell/index.md b/st.suckless.org/patches/visualbell/index.md @@ -17,7 +17,7 @@ Download -------- * [st-visualbell-20160727-308bfbf.diff](st-visualbell-20160727-308bfbf.diff) - * [st-visualbell-20170924-b1338e9.diff](st-visualbell-20170924-b1338e9.diff) + * [st-visualbell-20180101-1f24bde.diff](st-visualbell-20180101-1f24bde.diff) Authors ------- diff --git a/st.suckless.org/patches/visualbell/st-visualbell-20180101-1f24bde.diff b/st.suckless.org/patches/visualbell/st-visualbell-20180101-1f24bde.diff @@ -0,0 +1,74 @@ +diff --git a/st.c b/st.c +index 7c7ddff..2dc10c2 100644 +--- a/st.c ++++ b/st.c +@@ -218,6 +218,7 @@ char *opt_line = NULL; + char *opt_name = NULL; + char *opt_title = NULL; + int oldbutton = 3; /* button event on startup: 3 = release */ ++int bellon = 0; + + static CSIEscape csiescseq; + static STREscape strescseq; +@@ -2187,8 +2188,7 @@ tcontrolcode(uchar ascii) + } else { + if (!(win.state & WIN_FOCUSED)) + xseturgency(1); +- if (bellvolume) +- xbell(bellvolume); ++ xbell(bellvolume); + } + break; + case '\033': /* ESC */ +diff --git a/st.h b/st.h +index 44d4938..24a6eb6 100644 +--- a/st.h ++++ b/st.h +@@ -231,6 +231,7 @@ extern char *opt_line; + extern char *opt_name; + extern char *opt_title; + extern int oldbutton; ++extern int bellon; + + extern char *usedfont; + extern double usedfontsize; +diff --git a/x.c b/x.c +index c484dfc..0b59d0e 100644 +--- a/x.c ++++ b/x.c +@@ -1484,7 +1484,17 @@ xseturgency(int add) + void + xbell(int vol) + { +- XkbBell(xw.dpy, xw.win, vol, (Atom)NULL); ++ if (vol) ++ XkbBell(xw.dpy, xw.win, vol, (Atom)NULL); ++ ++ /* visual bell*/ ++ if (!bellon) { ++ bellon = 1; ++ MODBIT(term.mode, !IS_SET(MODE_REVERSE), MODE_REVERSE); ++ redraw(); ++ XFlush(xw.dpy); ++ MODBIT(term.mode, !IS_SET(MODE_REVERSE), MODE_REVERSE); ++ } + } + + unsigned long +@@ -1676,7 +1686,12 @@ run(void) + (handler[ev.type])(&ev); + } + +- draw(); ++ if (bellon) { ++ bellon = 0; ++ redraw(); ++ } ++ else draw(); ++ + XFlush(xw.dpy); + + if (xev && !FD_ISSET(xfd, &rfd)) +-- +2.15.1 + diff --git a/suckless.org/rocks.md b/suckless.org/rocks.md @@ -195,11 +195,12 @@ Web Browsers * [Lynx](http://lynx.browser.org/) * [netsurf](http://www.netsurf-browser.org/) * [surf](//surf.suckless.org/) +* [Tridactyl](https://github.com/cmcaine/tridactyl) - A WebExtension that tries to make Firefox Vim like. Unlike many similar extensions it works with firefox 57+ * [uzbl](http://uzbl.org/) - Web interface tools which adhere to the unix philosophy. -* [Vimperator](http://www.vimperator.org/) - An extension to make Firefox keyboard friendly and Vim-like. +* [Vimperator](http://www.vimperator.org/) - An extension to make Firefox keyboard friendly and Vim-like. (Doesn't work with firefox 57+) * [VimFX](https://addons.mozilla.org/en-US/firefox/addon/vimfx/) - Another extension to make Firefox Vim-like. Less invasive than - Vimperator + Vimperator (Doesn't work with firefox 57+) * [w3m](http://w3m.sourceforge.net/) * [xombrero](https://github.com/conformal/xombrero) - A minimalist web browser with sophisticated security features designed-in. Formerly known as "xxxterm".