From 92c1d51a5006edaf72b148d7440853e220fcb592 Mon Sep 17 00:00:00 2001 From: AnInternetTroll Date: Mon, 10 Jan 2022 18:08:05 +0100 Subject: Small improvements to dwm --- bootstrap.sh | 2 +- dwm/chadwm/Makefile | 7 +------ dwm/chadwm/config.def.h | 8 ++++---- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 671b2a2..34ecc02 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,6 +1,6 @@ #!/usr/bin/env sh -SYMLINKDIR=(readlink -f "$0") +SYMLINKDIR=$(readlink -f "$0") BASEDIR=$(dirname "$SYMLINKDIR") cd $BASEDIR diff --git a/dwm/chadwm/Makefile b/dwm/chadwm/Makefile index 3341ec3..c05dbdd 100644 --- a/dwm/chadwm/Makefile +++ b/dwm/chadwm/Makefile @@ -4,9 +4,7 @@ include config.mk SRC = drw.c dwm.c util.c -cfiles = $(wildcard ./*.c) -hfiles = $(wildcard ./*.h) -ofiles = $(cfiles:.c=.o) +OBJ = ${SRC:.c=.o} all: options dwm @@ -50,7 +48,4 @@ uninstall: rm -f ${DESTDIR}${PREFIX}/bin/dwm\ ${DESTDIR}${MANPREFIX}/man1/dwm.1 -format: - clang-format -i -style=file $(cfiles) $(hfiles) - .PHONY: all options clean dist install uninstall diff --git a/dwm/chadwm/config.def.h b/dwm/chadwm/config.def.h index ee17db6..b49ef88 100644 --- a/dwm/chadwm/config.def.h +++ b/dwm/chadwm/config.def.h @@ -122,13 +122,13 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = {"dmenu_run", NULL}; -static const char *termcmd[] = {"alacritty", NULL}; // change this to your term +static const char *termcmd[] = {"st", NULL}; // change this to your term static const char *rofi[] = {"rofi", "-show", "drun", NULL}; static const char *xi[] = {"xbacklight", "-inc", "7", NULL}; static const char *screenshotcmd[] = {"flameshot", "gui", NULL}; static const char *xd[] = {"xbacklight", "-dec", "7", NULL}; -static const char *volume_up_cmd[] = {"pamixer", "-i", "5", NULL}; -static const char *volume_down_cmd[] = {"pamixer", "-d", "5", NULL}; +static const char *volume_up_cmd[] = {"pamixer", "--allow-boost", "-i", "5", NULL}; +static const char *volume_down_cmd[] = {"pamixer", "--allow-boost", "-d", "5", NULL}; static const char *volume_mute_toggle[] = {"pamixer", "-t", NULL}; static const char *keyboard_brightness_up[] = {"xbacklight", "-ctrl", "asus::kbd_backlight", "-inc", "33", NULL}; @@ -137,7 +137,7 @@ static const char *keyboard_brightness_down[] = {"xbacklight", "-ctrl", "asus::k static const char *player_toggle[] = {"playerctl", "play-pause", NULL}; static const char *player_next[] = {"playerctl", "next", NULL}; static const char *player_previous[] = {"playerctl", "previous", NULL}; -static const char *screen_lock[] = {"xsecurelock", NULL}; +static const char *screen_lock[] = {"light-locker-command", "-l", NULL}; static Key keys[] = { /* modifier key function argument */ -- cgit v1.2.3