-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #436 from joewing/defaults
Configuration defaults.
- Loading branch information
Showing
5 changed files
with
98 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/** | ||
* @file default.c | ||
* @author Joe Wingbermuehle | ||
* @date 2017 | ||
* | ||
* @brief Default configuration. | ||
* | ||
*/ | ||
|
||
#include "default.h" | ||
|
||
const char * const BASE_CONFIG = | ||
"<JWM>" | ||
"<Key key=\"Up\">up</Key>" | ||
"<Key key=\"Down\">down</Key>" | ||
"<Key key=\"Right\">right</Key>" | ||
"<Key key=\"Left\">left</Key>" | ||
"<Key key=\"Return\">select</Key>" | ||
"<Key key=\"Escape\">escape</Key>" | ||
"<Key mask=\"A\" key=\"Tab\">nextstacked</Key>" | ||
"<Key mask=\"A\" key=\"F4\">close</Key>" | ||
"<Mouse context=\"title\" button=\"1\">move</Mouse>" | ||
"<Mouse context=\"title\" button=\"2\">move</Mouse>" | ||
"<Mouse context=\"title\" button=\"3\">window</Mouse>" | ||
"<Mouse context=\"title\" button=\"11\">maximize</Mouse>" | ||
"<Mouse context=\"icon\" button=\"1\">window</Mouse>" | ||
"<Mouse context=\"icon\" button=\"2\">move</Mouse>" | ||
"<Mouse context=\"icon\" button=\"3\">window</Mouse>" | ||
"<Mouse context=\"border\" button=\"1\">resize</Mouse>" | ||
"<Mouse context=\"border\" button=\"2\">move</Mouse>" | ||
"<Mouse context=\"border\" button=\"3\">window</Mouse>" | ||
"<Mouse context=\"close\" button=\"-1\">close</Mouse>" | ||
"<Mouse context=\"close\" button=\"2\">move</Mouse>" | ||
"<Mouse context=\"close\" button=\"-3\">close</Mouse>" | ||
"<Mouse context=\"maximize\" button=\"-1\">maximize</Mouse>" | ||
"<Mouse context=\"maximize\" button=\"-2\">maxv</Mouse>" | ||
"<Mouse context=\"maximize\" button=\"-3\">maxh</Mouse>" | ||
"<Mouse context=\"minimize\" button=\"-1\">minimize</Mouse>" | ||
"<Mouse context=\"minimize\" button=\"2\">move</Mouse>" | ||
"<Mouse context=\"minimize\" button=\"-3\">shade</Mouse>" | ||
"</JWM>" | ||
; | ||
|
||
const char * const DEFAULT_CONFIG = | ||
"<JWM>" | ||
"<RootMenu onroot=\"1\">" | ||
"<Program>xterm</Program>" | ||
"<Restart/>" | ||
"<Exit/>" | ||
"</RootMenu>" | ||
"<Tray x=\"0\" y=\"-1\">" | ||
"<Pager/><TaskList/><Dock/><Clock/>" | ||
"</Tray>" | ||
"</JWM>" | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* @file default.h | ||
* @author Joe Wingbermuehle | ||
* @date 2017 | ||
* | ||
* @brief Default configuration. | ||
* | ||
*/ | ||
|
||
#ifndef DEFAULT_H | ||
#define DEFAULT_H | ||
|
||
/** Base configuration that is always included first. */ | ||
extern const char * const BASE_CONFIG; | ||
|
||
/** A default configuration that is included if no configuration is found. */ | ||
extern const char * const DEFAULT_CONFIG; | ||
|
||
#endif /* DEFAULT_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters