dotfiles

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

commit 89e34541e948cb826b9316b051a478b340aa81b6
parent 867df7307780e99890de5286cf14cd802d951c3f
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Tue, 27 Aug 2019 13:07:26 +0200

Add dmenu based address book

Diffstat:
Abin/dmenu_addressbook | 3+++
Mdotfiles.sh | 3++-
Msuckless/dwm/config.h | 10+++++++---
3 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/bin/dmenu_addressbook b/bin/dmenu_addressbook @@ -0,0 +1,3 @@ +#!/bin/sh + +cat ~/.mutt/aliases.muttrc | sed '/#/d' | sed '/^[[:space:]]*$/d' | cut -d' ' -f3- | dmenu -p "Address book:" -l 40 -fn "Sans:size=11" -i diff --git a/dotfiles.sh b/dotfiles.sh @@ -99,7 +99,8 @@ echo "$GIT_REPO/bin/cowsay_volume.sh --> ~/bin/cowsay_volume.sh" rsync -ac --progress $GIT_REPO/bin/cowsay_volume.sh ~/bin/cowsay_volume.sh echo "$GIT_REPO/bin/cowsay_current_song.sh --> ~/bin/cowsay_current_song.sh" rsync -ac --progress $GIT_REPO/bin/cowsay_current_song.sh ~/bin/cowsay_current_song.sh - +echo "$GIT_REPO/bin/dmenu_addressbook --> ~/bin/dmenu_addressbook" +rsync -ac --progress $GIT_REPO/bin/dmenu_addressbook ~/bin/dmenu_addressbook echo "$GIT_REPO/newsboat/config --> ~/.config/newsboat/config" rsync -ac --progress $GIT_REPO/newsboat/config ~/.config/newsboat/config diff --git a/suckless/dwm/config.h b/suckless/dwm/config.h @@ -71,12 +71,14 @@ static const char *dmenucmd[] = { "dmenu_run", "-p", "Run:", "-l", dmenuln, "-m" static const char *termcmd[] = { "st", NULL }; static const char *clipcmd[] = { "clipmenu", "-p", "Clipboard:", "-l", dmenuln, "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; /* Define clipmenu command */ static const char *passcmd[] = { "passmenu", "--type", "-p", "Pass:", "-l", dmenuln, "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; /* Define passmenu command */ -static const char *firefoxcmd[] = { "firefox-nightly", NULL}; /* Define firefox command */ +static const char *firefoxcmd[] = { "firefox-nightly", NULL }; /* Define firefox command */ static const char *muttcmd[] = { "st", "-e", "mutt", NULL }; /* Define mutt command */ -static const char *statusbarcmd[] = { "dmenu_statusbar", NULL}; /* Define command for starting dmenu-based statusbar */ -static const char *lockcmd[] = { "slock", NULL}; /* Define command for locking screen */ +static const char *statusbarcmd[] = { "dmenu_statusbar", NULL }; /* Define command for starting dmenu-based statusbar */ +static const char *histcmd[] = { "dmenu_hist", NULL }; /* Define command for searching the command history */ +static const char *lockcmd[] = { "slock", NULL }; /* Define command for locking screen */ static const char *musiclibcmd[] = { "mpdmenu", "::", "-i", "-l", dmenuln, "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; /* Define command for browsing music collection */ static const char *musicplcmd[] = { "mpdmenu", "-p", "::", "-i", "-l", dmenuln, "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; /* Define command for browsing music collection */ +static const char *addressbookcmd[] = { "dmenu_addressbook", NULL }; /* Define command to show addressbook */ static Key keys[] = { /* modifier key function argument */ @@ -87,8 +89,10 @@ static Key keys[] = { { MODKEY, XK_l, spawn, {.v = lockcmd } }, /* Define shortcut for lockcmd */ { MODKEY, XK_u, spawn, {.v = musiclibcmd } }, /* Add from music library to playlist */ { MODKEY, XK_y, spawn, {.v = musicplcmd } }, /* Choose from music playlist */ + { MODKEY, XK_a, spawn, {.v = addressbookcmd } }, /* Show email addressbook */ { MODKEY, XK_x, togglebar, {0} }, { MODKEY, XK_b, spawn, {.v = statusbarcmd } }, + { MODKEY, XK_r, spawn, {.v = histcmd } }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_Left, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } },