diff options
| -rw-r--r-- | .config/emacs/modules/bd--completions.el | 3 | ||||
| -rw-r--r-- | .config/emacs/modules/bd--modeline.el | 4 | ||||
| -rw-r--r-- | .config/guix/modules/dwm/config.def.h | 27 | 
3 files changed, 25 insertions, 9 deletions
diff --git a/.config/emacs/modules/bd--completions.el b/.config/emacs/modules/bd--completions.el index d484f05..360e0e1 100644 --- a/.config/emacs/modules/bd--completions.el +++ b/.config/emacs/modules/bd--completions.el @@ -7,9 +7,11 @@           (shell-mode . corfu-mode)           (eshell-mode . corfu-mode))    :custom +  (corfu-auto t)    (corfu-cycle t)    (corfu-separator ?\s)) +  (use-package cape    :bind (("C-c p p" . completion-at-point)           ("C-c p t" . complete-tag) @@ -30,6 +32,7 @@           ("C-c p r" . cape-rfc1345))    :init    (add-to-list 'completion-at-point-functions #'cape-dabbrev) +  (add-to-list 'completion-at-point-functions #'cape-keyword)    (add-to-list 'completion-at-point-functions #'cape-file)    (add-to-list 'completion-at-point-functions #'cape-elisp-block)) diff --git a/.config/emacs/modules/bd--modeline.el b/.config/emacs/modules/bd--modeline.el index f508ce0..5900173 100644 --- a/.config/emacs/modules/bd--modeline.el +++ b/.config/emacs/modules/bd--modeline.el @@ -31,7 +31,7 @@              (throw 'done t)))          mode-line-modes)) -(global-set-key (kbd "C-c m") 'minor-mode-blackout-mode) +(global-set-key (kbd "C-c ,") 'minor-mode-blackout-mode)  ;;;; time and date @@ -49,7 +49,7 @@  ;;;; buffer name  (defun modeline-buffer-name ()    "Return 'buffer-name' with proper spacing and icon." -  (format " %s %s" (all-the-icons-icon-for-file (buffer-name)) (buffer-name))) +  (format " %s %s" (all-the-icons-icon-for-mode major-mode) (buffer-name)))  (defvar-local bd/buffer-identification-mode-line      '(:eval (format "%s" (modeline-buffer-name))) diff --git a/.config/guix/modules/dwm/config.def.h b/.config/guix/modules/dwm/config.def.h index 214ed2b..4588f0c 100644 --- a/.config/guix/modules/dwm/config.def.h +++ b/.config/guix/modules/dwm/config.def.h @@ -73,16 +73,23 @@ static const Layout layouts[] = {  /* commands */  static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */  /* tools */ -static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_black, "-sf", col_gray4, NULL }; -static const char *termcmd[]  = { "st", NULL }; -static const char *slockcmd[]   = { "slock", NULL }; +static const char *dmenucmd[]    = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_black, "-sf", col_gray4, NULL }; +static const char *termcmd[]     = { "st", NULL }; +static const char *slockcmd[]    = { "slock", NULL }; +/* sound control */ +static const char *togmute[]     = { "pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL }; +static const char *lowervol[]    = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-4%", NULL}; +static const char *uppervol[]    = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+4%", NULL}; +static const char *mpcprev[]     = { "mpc", "prev", NULL }; +static const char *togmpc[]      = { "mpc", "toggle", NULL }; +static const char *mpcnext[]     = { "mpc", "next", NULL };  /* screenshot control */ -static const char *flameselect[]   = { "flameshot", "launcher", NULL }; -static const char *flameall[]   = { "flameshot", "full", NULL }; +static const char *flameselect[] = { "flameshot", "launcher", NULL }; +static const char *flameall[]    = { "flameshot", "full", NULL };  /* other applications */ -static const char *icecatcmd[] = { "icecat", NULL }; +static const char *icecatcmd[]   = { "icecat", NULL };  static const char *chromiumcmd[] = { "chromium", "--incognito", NULL }; -static const char *emacscmd[] = { "emacsclient", "-nc", NULL }; +static const char *emacscmd[]    = { "emacsclient", "-nc", NULL };  static const Key keys[] = { @@ -94,6 +101,12 @@ static const Key keys[] = {    { MODKEY|ShiftMask,             XK_c,      spawn,          {.v = chromiumcmd } },    { MODKEY|ShiftMask,             XK_o,      spawn,          SHCMD("xdotool type $(grep -v '^#' /home/bdunahu/Personal/scripts/bookmarks.txt | dmenu -i -l 4 | awk '{print $NF}')") },    { MODKEY|ShiftMask,             XK_p,      spawn,          SHCMD("passmenu --type") }, +  { 0,                            XK_F6,     spawn,          {.v = togmute } }, +  { 0,                            XK_F7,     spawn,          {.v = lowervol } }, +  { 0,                            XK_F8,     spawn,          {.v = uppervol } }, +  { 0,                            XK_F9,     spawn,          {.v = mpcprev } }, +  { 0,                            XK_F10,    spawn,          {.v = togmpc } }, +  { 0,                            XK_F11,    spawn,          {.v = mpcnext } },    { 0,                            XK_Print,  spawn,          {.v = flameselect } },    { 0|ShiftMask,                  XK_Print,  spawn,          {.v = flameall } },    { MODKEY,                       XK_l,      togglebar,      {0} },  | 
