mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
Implement key bindings
This commit is contained in:
parent
4181c36862
commit
a78b921803
6 changed files with 97 additions and 7 deletions
|
|
@ -11,7 +11,7 @@ struct sway_config *config;
|
|||
|
||||
void load_config() {
|
||||
// TODO: Allow use of more config file locations
|
||||
const char *name = "/.i3/config";
|
||||
const char *name = "/.sway/config";
|
||||
const char *home = getenv("HOME");
|
||||
char *temp = malloc(strlen(home) + strlen(name) + 1);
|
||||
strcpy(temp, home);
|
||||
|
|
@ -45,6 +45,9 @@ int main(int argc, char **argv) {
|
|||
.request = {
|
||||
.geometry = handle_view_geometry_request
|
||||
}
|
||||
},
|
||||
.keyboard = {
|
||||
.key = handle_key
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue