From 1b342f0c3094d75cbe8ef8804000649921299de1 Mon Sep 17 00:00:00 2001 From: Alexis Jhon Gaspar Date: Fri, 29 Sep 2023 23:36:16 +0800 Subject: [PATCH] Add useless context menus --- README.md | 3 ++- dwm-flexipatch/config.def.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 85d6c0d..b454683 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ The weather widget is pretty barebones as of now. Report bugs if found. ### Configuration notes -The bare essentials of my dotfiles are located in the `config` directory. This includes `spmenu`, `picom` and `ncmpcppp`. +The bare essentials of my dotfiles are located in the `config` directory. This includes `spmenu`, `picom`, `ncmpcppp`, and `wal`. ### Compatibility notes @@ -95,6 +95,7 @@ Linux/Unix users: - libmpdclient(-devel or -dev) for mpdclient - yajl for ipc - eww (optional) +- jgmenu Termux users: - xorg diff --git a/dwm-flexipatch/config.def.h b/dwm-flexipatch/config.def.h index d0b5a03..9e1e97b 100644 --- a/dwm-flexipatch/config.def.h +++ b/dwm-flexipatch/config.def.h @@ -1374,8 +1374,11 @@ static const Button buttons[] = { #if BAR_STATUSBUTTON_PATCH { ClkButton, 0, Button1, spawn, SHCMD("spmenu_run -d -a '-g 4 -l 10'") /* use spmenu instead of dmenu */ }, { ClkButton2, 0, Button1, spawn, {.v = termcmd } }, + { ClkButton2, 0, Button3, spawn, SHCMD("printf ' New tabbed session, tabbed -r 2 st -w \"\"\n New dvtm session, st -T dvtm abduco -c dvtm dvtm-status\n' | jgmenu --simple --at-pointer") }, { ClkButton3, 0, Button1, spawn, SHCMD("firefox") }, + { ClkButton3, 0, Button3, spawn, SHCMD("printf ' New Window, firefox\n󱀣 New Private Window, firefox -private-window\n' | jgmenu --simple --at-pointer") }, { ClkButton4, 0, Button1, spawn, SHCMD("st -T ncmpcpp ncmpcpp") }, + { ClkButton4, 0, Button3, spawn, SHCMD("printf '󰒮 Previous Song, mpc prev\n󰐊 Play, mpc play\n󰏤 Pause, mpc pause\n󰓛 Stop, mpc stop\n󰒭 Next Song, mpc next\nVol +5%%,󰕾 mpc vol +5\n󰖀 Vol -5%%, mpc vol -5\n' | jgmenu --simple --at-pointer") }, { ClkButton5, 0, Button1, spawn, SHCMD("shutdown") }, #endif // BAR_STATUSBUTTON_PATCH { ClkLtSymbol, 0, Button1, setlayout, {0} },