From 6a442a9686282242fc099b4c769019d3623432f6 Mon Sep 17 00:00:00 2001 From: Cori Barker Date: Wed, 18 Mar 2026 22:37:09 +0000 Subject: Patched in play/pause button on keyboard --- .xinitrc | 17 ----------------- dwm/config.h | 2 ++ dwm/dwm | Bin 72928 -> 73000 bytes dwm/dwm.o | Bin 58976 -> 59200 bytes 4 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 .xinitrc diff --git a/.xinitrc b/.xinitrc deleted file mode 100644 index a0ba73b..0000000 --- a/.xinitrc +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -while true -do - status_name="`date` `uptime | sed 's/.*,//'`" - - # Set the status - xsetroot -name "$status_name" - - sleep 1 -done & -nvidia-settings -l -feh --bg-fill /home/cori/Pictures/mountain-landscape-5120x2880-24317.jpg -xset -dpms -xset s off - -exec dwm diff --git a/dwm/config.h b/dwm/config.h index 39b91b5..5b9f1c1 100755 --- a/dwm/config.h +++ b/dwm/config.h @@ -66,6 +66,7 @@ static const char *xlockmodes[] = { "spiral", "space", "helix", "grav" }; static const char *lockcmd[] = { "xlock", "-mode", NULL, NULL }; static const char *brightnessupcmd[] = { "brightnessctl", "s", "+10%", NULL }; static const char *brightnessdowncmd[] = { "brightnessctl", "s", "10%-", NULL }; +static const char *playpausecmd[] = { "playerctl", "play-pause", NULL }; static const Key keys[] = { /* modifier key function argument */ @@ -106,6 +107,7 @@ static const Key keys[] = { { MODKEY|ShiftMask, XK_q, quit, {0} }, { 0, XF86XK_MonBrightnessUp, spawn, {.v = brightnessupcmd } }, { 0, XF86XK_MonBrightnessDown, spawn, {.v = brightnessdowncmd } }, + { 0, XF86XK_AudioPlay, spawn, {.v = playpausecmd } }, }; /* button definitions */ diff --git a/dwm/dwm b/dwm/dwm index 07223ec..c4b4476 100755 Binary files a/dwm/dwm and b/dwm/dwm differ diff --git a/dwm/dwm.o b/dwm/dwm.o index 3095cf1..afa595d 100644 Binary files a/dwm/dwm.o and b/dwm/dwm.o differ -- cgit v1.2.3