aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCori Barker <coribarker2@gmail.com>2026-03-18 22:37:09 +0000
committerCori Barker <coribarker2@gmail.com>2026-03-18 22:37:09 +0000
commit6a442a9686282242fc099b4c769019d3623432f6 (patch)
tree7d6270cc574784e291fd533f63a7933603616e41
parent64bef35f1ec1a88203bff4eae35a3d96ccd77c2f (diff)
Patched in play/pause button on keyboard
-rw-r--r--.xinitrc17
-rwxr-xr-xdwm/config.h2
-rwxr-xr-xdwm/dwmbin72928 -> 73000 bytes
-rw-r--r--dwm/dwm.obin58976 -> 59200 bytes
4 files changed, 2 insertions, 17 deletions
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
--- a/dwm/dwm
+++ b/dwm/dwm
Binary files differ
diff --git a/dwm/dwm.o b/dwm/dwm.o
index 3095cf1..afa595d 100644
--- a/dwm/dwm.o
+++ b/dwm/dwm.o
Binary files differ