Compare commits

...

4 Commits

4 changed files with 8 additions and 7 deletions

View File

@ -11,11 +11,6 @@ super + r
pkill -USR1 -x sxhkd; \ pkill -USR1 -x sxhkd; \
bspc wm -r bspc wm -r
# reinitialize ancillary services
super + w
disp && keyboard
# control the national weather service
super + {_,shift + }n super + {_,shift + }n
nws {local,national} nws {local,national}
@ -39,6 +34,10 @@ super + shift + e
super + z super + z
passmenu passmenu
# start a browser
super + b
chromium
# manipulate a node # manipulate a node
super + {_,ctrl +,shift + }{h,j,k,l} super + {_,ctrl +,shift + }{h,j,k,l}
bspc node -{f,p,s} {west,south,north,east} bspc node -{f,p,s} {west,south,north,east}

View File

@ -25,6 +25,7 @@
ffmpeg ffmpeg
thunderbird thunderbird
ledger ledger
ranger
]; ];
hardware.bluetooth = { hardware.bluetooth = {

View File

@ -24,7 +24,7 @@ struct module mods[] = {
{mod_battstatus, "battstatus", "BAT0", { '\0' }}, {mod_battstatus, "battstatus", "BAT0", { '\0' }},
{mod_time, "time", "", { '\0' }}, {mod_time, "time", "", { '\0' }},
{mod_bspwm, "bspwm", "", { '\0' }}, {mod_bspwm, "bspwm", "", { '\0' }},
{mod_message, "message", "/home/usr/.cache/statusbar_notification", { '\0' }}, /* {mod_message, "message", "/home/usr/.cache/statusbar_notification", { '\0' }}, */
}; };
void create_module_proc(int index, char *pipename) { void create_module_proc(int index, char *pipename) {

View File

@ -17,7 +17,8 @@ int mod_message(char *config, char *name, char *pipename) {
for(;;) { for(;;) {
int watchdesc = inotify_add_watch(fd, config, IN_MODIFY); int watchdesc = inotify_add_watch(fd, config, IN_MODIFY);
read(fd, &buf, sizeof(struct inotify_event)); read:
int watchread = read(fd, &buf, sizeof(struct inotify_event));
/* the file's changed, so reread it */ /* the file's changed, so reread it */
int filefd = open(config, O_RDONLY, 0); int filefd = open(config, O_RDONLY, 0);