update: add keybinds

This commit is contained in:
speedie 2022-10-02 22:59:51 +02:00
parent e6ef163c5f
commit 011f3351fe
5 changed files with 9 additions and 1 deletions

View file

@ -19,7 +19,6 @@
- xwallpaper (Required to set wallpapers)
- xmodmap
- Required if you want the Alt+Tab to have proper keybinds.
- Install if you want Escape instead of Caps Lock and Right Super+hjkl for arrow keys
- xrdb (Install if you want .Xresources support)
- pywal (Install if you want pywal support. Requires swal aka the default way to set wallpapers)
- wmctrl (Needed for proper window management)
@ -28,6 +27,8 @@
- If you want to display a message, you need the text patch.
- If you have the background image patch, you can set the image to ~/.config/speedwm-de/swal/CurrentWallpaper. It is a symlink to the current wallpaper.
- maim (Required for built in 'speedwm-screenshotutil' script)
- j4-dmenu-desktop
- Required for dmenu desktop entries. speedwm will not prevent installation without this because it doesn't provide much functionality.
-- Software --
This build of speedwm comes with binds for software.

View file

@ -42,6 +42,7 @@
- Super+Enter | Switch order of windows
- Super+Shift+q | Close the current window
- Super+Space | Set layout
- Super+Colon | Open a list of desktop entries in dmenu
- Super+r | Reset number of masters
- Super+t | Disable inactive fade
- Super+Shift+Equal | Toggle scratchpads
@ -77,6 +78,7 @@
- Super+Control+7 | Combine the current tag with tag 7
- Super+Control+8 | Combine the current tag with tag 8
- Super+Control+9 | Combine the current tag with tag 9
- Super+Control+Shift+Colon | Open a list of extra software in dmenu
- Super+Control+q | Mutes your audio
- Super+Control+w | Increases your volume
- Super+Control+e | Decreases your volume
@ -112,6 +114,7 @@
- Alt+Control+j/k | Change window size vertically (cfact)
-- Chained keybinds --
- Super+c & w | Curl wttr.in and open in less
- Super+c & m | Ask the user for a topic and curl cheat.sh
- Super+c & n | Switch to the next track
@ -162,6 +165,7 @@
- Focused window title (Middle click) | Rotate stack
- Dragging (Super+Right click) | Increase/decrease size of each window
- Dragging (SuperControl+Right click) | Increase/decrease cfact
- Root window (Right click) | List .desktop entries and open them
There are also keybinds for statuscmd, but you must implement it into your own status bar.
See mouse.h for more information.

View file

@ -30,6 +30,7 @@ static const Key keys[] = {
/* Application keybinds */
{ MODIFIER1|SHIFT, -1, XK_semicolon, spawn, RCMD(RUN) },
{ MODIFIER1, -1, XK_semicolon, spawn, RCMD(RUN_DESKTOP) },
{ MODIFIER1|CONTROL|SHIFT, -1, XK_semicolon, spawn, RCMD(RUN_ALT) },
{ MODIFIER1|SHIFT, -1, XK_Return, spawn, RCMD(TERMINAL) },
{ MODIFIER1|SHIFT, -1, XK_s, spawn, RCMD(SCREENSHOT) },

View file

@ -23,6 +23,7 @@ static const Button buttons[] = {
{ ClkStatusText, 0, Button3, spawn, {.v = statuscmd } },
{ ClkWinTitle, 0, Button1, togglewin, {0} },
{ ClkWinTitle, 0, Button3, spawn, RCMD("speedwm-utils") },
{ ClkRootWin, 0, Button3, spawn, RCMD(RUN_DESKTOP) },
{ ClkTagBar, 0, Button1, view, {0} },
};

View file

@ -54,6 +54,7 @@
#define EDITOR "nvim" /* Text editor to use */
#define RUN "dmenu_run -l 0 -p 'Run:'" /* Run launcher */
#define RUN_ALT "speedwm-applist" /* Alternative run launcher */
#define RUN_DESKTOP "j4-dmenu-desktop --term=st --dmenu='dmenu -l 20 -p Open'"
#define SCREENSHOT "speedwm-screenshotutil -s" /* How to take screenshots (Selection) */
#define SCREENSHOT_FULL "speedwm-screenshotutil -f" /* How to take screenshots (Full screen) */
#define FILEMANAGER "vifmrun || vifm" /* File manager that will be used */