diff --git a/.gitmodules b/.gitmodules index ce6e3ff..ba520d2 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,15 @@ [submodule "spmenu"] path = spmenu url = https://git.speedie.site/speedie/spmenu +[submodule "scripts/clipmenu-spmenu"] + path = scripts/clipmenu-spmenu + url = https://git.speedie.site/speedie/clipmenu-spmenu +[submodule "scripts/pirokit-spmenu"] + path = scripts/pirokit-spmenu + url = https://git.speedie.site/speedie/pirokit-spmenu.git +[submodule "scripts/screenshot-spmenu"] + path = scripts/screenshot-spmenu + url = https://git.speedie.site/speedie/screenshot-spmenu.git +[submodule "scripts/wallpaper-spmenu"] + path = scripts/wallpaper-spmenu + url = https://git.speedie.site/speedie/wallpaper-spmenu.git diff --git a/README.md b/README.md index 708924e..b7767fe 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,30 @@ These are my builds of suckless software such as dwm and st. It's simple to compile these things. +## Notes + Additionals are spmenu configs made by myself, as well as scripts for `spmenu_run`. If you prefer dmenu, it still exists, and could be launched via `Win/Super/Cmd+Alt+S`, while `Win/Super/Cmd+S` would launch `spmenu_run -d` by default (only with .desktop entries, while `Win/Super/Cmd+Shift+S` would launch `spmenu_run` in a similar fashion to dmenu. +Some user scripts are also included, which has it's own set of dependencies. For example, `clipmenu-spmenu` needs `xsel` and `clipnotify`. These are optional, however. + +``` +clipmenu-spmenu dependencies: +- xsel +- clipnotify (included on the folder) + +screenshot-spmenu dependencies: +- curl +- xclip (X11) +- maim (X11) +- wayshot (Wayland) +- wl-clipboard (Wayland) +- slurp (Wayland) + +wallpaper-spmenu dependencies: +- xwallpaper +``` +## Building + 1. Install necessary tools and libraries ``` Linux/Unix users: diff --git a/dwm/config.def.h b/dwm/config.def.h index 06a91a0..f6e7ea9 100644 --- a/dwm/config.def.h +++ b/dwm/config.def.h @@ -103,6 +103,12 @@ static Key keys[] = { { Mod4Mask, XK_s, spawn, SHCMD("spmenu_run -d -a '-g 4 -l 10'") }, { Mod4Mask|ShiftMask, XK_s, spawn, SHCMD("spmenu_run -a '-g 4 -l 10'") }, { Mod4Mask|Mod1Mask, XK_s, spawn, SHCMD("dmenu_run -fn 'Hack Nerd Font:size=14' -nb '#173f4f' -nf '#ffffff' -sb '#124f5f' -sf '#eeeeee' -g 6 -l 6") }, + /* needs spmenu */ + { Mod4Mask, XK_v, spawn, SHCMD("clipmenu-spmenu") }, + { Mod4Mask|ShiftMask, XK_Print, spawn, SHCMD("screenshot-spmenu -f") }, + { Mod4Mask|Mod1Mask, XK_Print, spawn, SHCMD("screenshot-spmenu -s") }, + { Mod4Mask, XK_p, spawn, SHCMD("pirokit") }, + { Mod4Mask|ShiftMask, XK_w, spawn, SHCMD("wallpaper-spmenu") }, { MODKEY|ShiftMask, XK_Return, spawn, SHCMD("st -e") }, { MODKEY|ShiftMask, XK_t, spawn, SHCMD("tabbed -r 2 st -w ''") }, { MODKEY|ShiftMask, XK_i, spawn, SHCMD("firefox") }, diff --git a/scripts/clipmenu-spmenu b/scripts/clipmenu-spmenu new file mode 160000 index 0000000..8a97407 --- /dev/null +++ b/scripts/clipmenu-spmenu @@ -0,0 +1 @@ +Subproject commit 8a97407e64a0d81c64ce855e1cbc942beb2db6af diff --git a/scripts/pirokit-spmenu b/scripts/pirokit-spmenu new file mode 160000 index 0000000..af65148 --- /dev/null +++ b/scripts/pirokit-spmenu @@ -0,0 +1 @@ +Subproject commit af65148b3db7d1ba36e7a8e9f848491e5f5e2cd2 diff --git a/scripts/screenshot-spmenu b/scripts/screenshot-spmenu new file mode 160000 index 0000000..806e437 --- /dev/null +++ b/scripts/screenshot-spmenu @@ -0,0 +1 @@ +Subproject commit 806e4373a75533ab18ddcad922883a07f1287329 diff --git a/scripts/wallpaper-spmenu b/scripts/wallpaper-spmenu new file mode 160000 index 0000000..e708901 --- /dev/null +++ b/scripts/wallpaper-spmenu @@ -0,0 +1 @@ +Subproject commit e708901453584800cf6b10aa9ec64dc79ea901b4