dotfiles

my shiny new dotfiles
git clone git://git.jakekoroman.com/dotfiles
Log | Files | Refs | README

commit aa4f8a2b8b6169e78713526fc9d52b1e11c29ffa
parent a9abc9dcc0e3adf0c85b4dd5efc391bdf2d0f928
Author: Jake Koroman <jakekoroman@gmail.com>
Date:   Thu,  9 May 2024 17:11:47 -0400

laptop gentoo migration and keybind updates.

Diffstat:
Mdevice-specific/laptop/dwl-hardware.h | 3++-
Mdwl/config.h | 18++++++++++++------
2 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/device-specific/laptop/dwl-hardware.h b/device-specific/laptop/dwl-hardware.h @@ -17,10 +17,11 @@ static const MonitorRule monrules[] = { /* Autostart */ static const char *const autostart[] = { - "artix-pipewire-launcher.sh", NULL, + "sh", "-c", "gentoo-pipewire-launcher", NULL, "swayidle.sh", NULL, "preserve_dbus.sh", NULL, "davmail_launch", NULL, + "baraction.sh", NULL, NULL /* terminate */ }; diff --git a/dwl/config.h b/dwl/config.h @@ -4,12 +4,6 @@ ((hex >> 8) & 0xFF) / 255.0f, \ (hex & 0xFF) / 255.0f } -#define AUDIODOWN XKB_KEY_XF86AudioLowerVolume -#define AUDIOUP XKB_KEY_XF86AudioRaiseVolume -#define AUDIOMUTE XKB_KEY_XF86AudioMute -#define BRIGHTUP XKB_KEY_XF86MonBrightnessUp -#define BRIGHTDOWN XKB_KEY_XF86MonBrightnessDown - /* appearance */ static const int sloppyfocus = 1; /* focus follows mouse */ static const int bypass_surface_visibility = 0; /* 1 means idle inhibitors will disable idle tracking even if it's surface isn't visible */ @@ -66,6 +60,15 @@ enum LayoutFunction { /* helper for spawning shell commands in the pre dwm-5.0 fashion */ #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } + +/* Special Keys */ +#define AUDIODOWN XKB_KEY_XF86AudioLowerVolume +#define AUDIOUP XKB_KEY_XF86AudioRaiseVolume +#define AUDIOMUTE XKB_KEY_XF86AudioMute +#define BRIGHTUP XKB_KEY_XF86MonBrightnessUp +#define BRIGHTDOWN XKB_KEY_XF86MonBrightnessDown +#define PLAYPAUSE XKB_KEY_XF86AudioPlay + /* commands */ #define TERMINAL "foot" #define BROWSER "librewolf" @@ -77,6 +80,7 @@ static const char *emacscmd[] = { "emacs", NULL }; static const char *menucmd[] = { "bemenu-run", NULL }; static const char *passcmd[] = { "passmenu-otp", NULL }; static const char *pavucmd[] = { "pavucontrol", NULL }; +static const char *playerctlcmd[] = { "playerctl", "play-pause", NULL }; static const char *rdpmenucmd[] = { "rdpmenu", NULL }; static const char *sshmenucmd[] = { "sshmenu", NULL }; static const char *swaylockcmd[] = { "swaylock", "-f", "-c", "181818", NULL }; @@ -132,10 +136,12 @@ static const Key keys[] = { { 0, AUDIODOWN, spawn, {.v = voldowncmd} }, { 0, AUDIOUP, spawn, {.v = volupcmd} }, { 0, AUDIOMUTE, spawn, {.v = volmutecmd} }, + { 0, PLAYPAUSE, spawn, {.v = playerctlcmd} }, { 0, BRIGHTUP, spawn, {.v = brightupcmd} }, { 0, BRIGHTDOWN, spawn, {.v = brightdowncmd} }, + TAGKEYS( XKB_KEY_1, XKB_KEY_exclam, 0), TAGKEYS( XKB_KEY_2, XKB_KEY_at, 1), TAGKEYS( XKB_KEY_3, XKB_KEY_numbersign, 2),