workspaces

This commit is contained in:
2026-05-11 12:46:20 +07:00
parent 13e4732f90
commit 431656f3a5
8 changed files with 75 additions and 63 deletions
+6 -1
View File
@@ -50,7 +50,12 @@ static const absn_keybind keybinds[] = {
{ ALT, XKB_KEY_3, switch_workspace, { .v = "3" } },
{ ALT, XKB_KEY_4, switch_workspace, { .v = "4" } },
{ ALT, XKB_KEY_5, switch_workspace, { .v = "5" } },
{ ALT, XKB_KEY_E, quit, { 0 } },
{ ALT | SHIFT, XKB_KEY_exclam, focus_move_to_workspace, { .v = "1" } },
{ ALT | SHIFT, XKB_KEY_2, focus_move_to_workspace, { .v = "2" } },
{ ALT | SHIFT, XKB_KEY_3, focus_move_to_workspace, { .v = "3" } },
{ ALT | SHIFT, XKB_KEY_4, focus_move_to_workspace, { .v = "4" } },
{ ALT | SHIFT, XKB_KEY_5, focus_move_to_workspace, { .v = "5" } },
{ ALT, XKB_KEY_Escape, quit, { 0 } },
};
#endif
+1
View File
@@ -3,6 +3,7 @@
#include "types.h"
void unfocus_toplevel(absn_toplevel *toplevel);
void focus_toplevel(absn_toplevel *toplevel);
absn_toplevel *focus_get_topmost(absn_server *server);
+1
View File
@@ -13,6 +13,7 @@ void increase_master_width(absn_server *server, const absn_arg *arg);
void increase_master_count(absn_server *server, const absn_arg *arg);
void switch_workspace(absn_server *server, const absn_arg *arg);
void focus_move_to_workspace(absn_server *server, const absn_arg *arg);
void quit(absn_server *server, const absn_arg *arg);