-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update README.md to reflect version bump * Update to README.md, new shields Added AUR Package shield Changed gitter.im shield * Added support for oblique gesture swipes. To add the support the config class was modified to include the new gestures types: left_up, right_up, left_down, right_down. Also changed the way the commands are saved in the config class, so there won't be a need for a lot of if statements to handle 4 finger swipes and 3 finger swipes. Finally, the handle_swipe_event_without_coords was modified to detect the oblique swipes. * Commenting the code a bit and some minor cosmetic and semantic changes - Added comments to each function - Increased string array size to 10 in config.h even though we only need 9 slots, I'm being a bit pedantic about this - Adding some build flags to CMakeLists.txt to show every error, preferably we'd get clean output eventually - Renamed find_gesture_device to gesture_device_exists in Input class - Renamed find_config_file to config_file_exists as this actually describes the logic of this function in Config class - Renamed find_home_folder to find_config_file in Config class in preparation to adding /etc/gebaar/gebaard.toml to list of possible config file locations * Prepare for release by bumping up version in README.md * Let warnings be warnings, release v0.0.4 * Goodbye Gitter, Hello Discord. * Fix config location (#13) If XDG_CONFIG_HOME is set, .config will be appended a second time resulting in /home/example/.config/.config/gebaar/gebaard.toml This is fixed by only appending .config, when the HOME directory workaround is used. Fixes #12 * Fix nullptr conversion to std::string (#16) Instead of using the result of getenv directly, we must check first, if getenv returned a nullptr, otherwise the program will crash. Regression from 41c7c05 * Add the build directory to gitignore (#15) The README build instructions use this directory. * Add a desktop file (#14) Users can copy this desktop file to $XDG_CONFIG_HOME/autostart to enable autostart on most desktop environments.
- Loading branch information
1 parent
ca51681
commit 2c6f74a
Showing
7 changed files
with
84 additions
and
9 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
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,8 @@ | ||
[Desktop Entry] | ||
Name=gebaar-libinput | ||
Comment=Touchpad Gesture Daemon for libinput | ||
Exec=/usr/bin/gebaard -b | ||
StartupNotify=false | ||
Terminal=false | ||
Type=Application | ||
X-GNOME-Autostart-enabled=true |
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,29 @@ | ||
/* | ||
gebaar | ||
Copyright (C) 2019 coffee2code | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include "util.h" | ||
|
||
/** | ||
* @brief Safely converts a char array to a std::string | ||
* @param charArr The char array to convert | ||
* @return charArr or an empty string, if charArr is a nullptr | ||
*/ | ||
std::string gebaar::util::stringFromCharArray(char* charArr) | ||
{ | ||
return charArr == nullptr ? "" : charArr; | ||
} |
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,28 @@ | ||
/* | ||
gebaar | ||
Copyright (C) 2019 coffee2code | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef UTIL_H | ||
#define UTIL_H | ||
|
||
#include <string> | ||
|
||
namespace gebaar::util { | ||
std::string stringFromCharArray(char* charArr); | ||
} | ||
|
||
#endif // UTIL_H |