Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.*.swp
.*~
/.libs/
/Makefile
/Makefile.in
/aclocal.m4
/ar-lib
/autom4te.cache/
/blezz.la
/compile
/config.guess
/config.h
/config.h.in
/config.log
/config.status
/config.sub
/configure
/depcomp
/install-sh
/libtool
/ltmain.sh
/m4/
/missing
/src/.deps/
/src/.dirstamp
/src/.libs/
/src/blezz_la-blezz.lo
/stamp-h1
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@ A plugin for rofi that emulates [blezz](https://github.com/Blezzing/blezz) behav

To run this you need an up to date checkout of rofi git installed.

Build from soruce:

```
cd rofi-blezz
autoreconf -fi
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --prefix /usr/local
make
make install
```


Run rofi like:

```
Expand Down
15 changes: 2 additions & 13 deletions src/blezz.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,7 @@ static Node *blezz_parse_dir_node(char *start) {
if (strv && strv[0] && strv[1]) {
node = g_malloc0(sizeof(Node));
node->type = DIR_REF;
node->icon = g_strdup("folder");
char buf[6] = {
0,
};
gunichar uchar = g_utf8_get_char(strv[0]);
g_unichar_to_utf8(uchar, &(buf[0]));
node->hotkey = g_strdup(buf);
node->hotkey = g_strstrip(g_utf8_strdown(strv[0], -1));
node->name = g_strstrip(g_strdup(strv[1]));
if (strv[2] != NULL) {
node->icon = g_strstrip(g_strdup(strv[2]));
Expand All @@ -164,12 +158,7 @@ static Node *blezz_parse_act_node(char *start, gboolean reload) {
if (strv && strv[0] && strv[1] && strv[2]) {
node = g_malloc0(sizeof(Node));
node->type = ACT_REF;
char buf[6] = {
0,
};
gunichar uchar = g_utf8_get_char(strv[0]);
g_unichar_to_utf8(uchar, &(buf[0]));
node->hotkey = g_strdup(buf);
node->hotkey = g_utf8_strdown(strv[0], -1);
node->name = g_strdup(strv[1]);
node->command = g_strdup(strv[2]);
if (strv[3] != NULL) {
Expand Down