aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPolesznyák Márk <contact@pml68.dev>2025-11-17 23:05:29 +0100
committerPolesznyák Márk <contact@pml68.dev>2025-11-17 23:05:59 +0100
commitb3ded11c9a14571c193469d6bd9a8cc1de9d08ba (patch)
tree1133ab8463489c8087b5ec2e19356990149e500b
parentchore: update screenshot (diff)
downloadsuckless-setup-b3ded11c9a14571c193469d6bd9a8cc1de9d08ba.tar.gz
feat(dwm): add shortcut for Simplemoji emoji picker
-rw-r--r--dwm/config.def.h2
-rw-r--r--dwm/config.h2
-rw-r--r--fetcha/README.md2
-rw-r--r--fetcha/modules.c2
4 files changed, 6 insertions, 2 deletions
diff --git a/dwm/config.def.h b/dwm/config.def.h
index c2df15c..44e31b0 100644
--- a/dwm/config.def.h
+++ b/dwm/config.def.h
@@ -89,6 +89,7 @@ static const char *previouscmd[] = {"adb", "shell", "input", "keyevent", "88", N
static const char *volumeup[] = {"pulsemixer", "--change-volume", "+5", NULL};
static const char *volumedown[] = {"pulsemixer", "--change-volume", "-5", NULL};
static const char *volumereset[] = {"pulsemixer", "--set-volume", "60", NULL};
+static const char *emojicmd[] = {"simplemoji", "-szxpt", "dark", "-m", "#e0def4", "--background-color", "#1e1e2e"};
static const char *qalccmd[] = {
"dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb",
col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf",
@@ -133,6 +134,7 @@ static const Key keys[] = {
{MODKEY | ShiftMask, XK_p, spawn, {.v = previouscmd}},
{MODKEY, XK_s, spawn, {.v = adbscreencmd}},
{MODKEY, XK_c, spawn, {.v = qalccmd}},
+ {MODKEY, XK_e, spawn, {.v = emojicmd}},
{MODKEY | ShiftMask, XK_o, spawn, {.v = volumeup}},
{MODKEY | ShiftMask, XK_l, spawn, {.v = volumedown}},
{MODKEY | ShiftMask, XK_r, spawn, {.v = volumereset}},
diff --git a/dwm/config.h b/dwm/config.h
index c2df15c..44e31b0 100644
--- a/dwm/config.h
+++ b/dwm/config.h
@@ -89,6 +89,7 @@ static const char *previouscmd[] = {"adb", "shell", "input", "keyevent", "88", N
static const char *volumeup[] = {"pulsemixer", "--change-volume", "+5", NULL};
static const char *volumedown[] = {"pulsemixer", "--change-volume", "-5", NULL};
static const char *volumereset[] = {"pulsemixer", "--set-volume", "60", NULL};
+static const char *emojicmd[] = {"simplemoji", "-szxpt", "dark", "-m", "#e0def4", "--background-color", "#1e1e2e"};
static const char *qalccmd[] = {
"dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb",
col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf",
@@ -133,6 +134,7 @@ static const Key keys[] = {
{MODKEY | ShiftMask, XK_p, spawn, {.v = previouscmd}},
{MODKEY, XK_s, spawn, {.v = adbscreencmd}},
{MODKEY, XK_c, spawn, {.v = qalccmd}},
+ {MODKEY, XK_e, spawn, {.v = emojicmd}},
{MODKEY | ShiftMask, XK_o, spawn, {.v = volumeup}},
{MODKEY | ShiftMask, XK_l, spawn, {.v = volumedown}},
{MODKEY | ShiftMask, XK_r, spawn, {.v = volumereset}},
diff --git a/fetcha/README.md b/fetcha/README.md
index 9ce2276..09c8fbb 100644
--- a/fetcha/README.md
+++ b/fetcha/README.md
@@ -3,7 +3,7 @@ fetcha is an fast, small and easy configurated system info fetch.
![fetcha image](docs/img/fetcha.jpg)
## Requirements
-To insatll fetcha you need `git`.
+To install fetcha you need `git`.
## Installation
1. clone the repository.
```
diff --git a/fetcha/modules.c b/fetcha/modules.c
index d9d5f35..6d5b616 100644
--- a/fetcha/modules.c
+++ b/fetcha/modules.c
@@ -190,7 +190,7 @@ get_uptime(void)
char *
get_packages(void)
{
- FILE *f = popen("pacman -Q | wc -l", "r");
+ FILE *f = popen("pacman -Q | wc -l", "r");
if (!f) {
return "0";
}