dwm: bar and config updates

This commit is contained in:
DarthMooMancer
2025-09-14 16:47:19 -04:00
parent a1be5a0420
commit b1f4d9542a
3 changed files with 2 additions and 17 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ static const int lockfullscreen = 1;
static const int refreshrate = 120; static const int refreshrate = 120;
static const Layout layouts[] = { static const Layout layouts[] = {
{ "[]=", tile }, { "T", tile },
}; };
#define MODKEY Mod1Mask #define MODKEY Mod1Mask
-15
View File
@@ -1,15 +0,0 @@
#!/usr/bin/env bash
q=$(echo -e "Add\nSubtract\nMultiply\nDivide" | dmenu -l 4 -p "Options: ")
f=$(dmenu -p "First: " < /dev/null)
s=$(dmenu -p "Second: " < /dev/null)
r=""
case "$q" in
Add) r=$((f + s)) ;;
Subtract) r=$((f - s)) ;;
Multiply) r=$((f * s)) ;;
Divide) r=$(echo "scale=2; $f / $s" | bc) ;;
esac
echo "$r" | dmenu -p "Answer: "
+1 -1
View File
@@ -26,7 +26,7 @@ const char* age() {
} }
void execute_bar(char *out, size_t len) { void execute_bar(char *out, size_t len) {
snprintf(out, len, "V: %s A: %s", vol(), age()); snprintf(out, len, " V: %s A: %s ", vol(), age());
} }
void die(const char *fmt, ...) { void die(const char *fmt, ...) {