This commit is contained in:
DeveloperDurp 2025-06-15 15:47:24 -05:00
parent a96e85fd71
commit 38c58c45b0
5 changed files with 24 additions and 3 deletions

View file

@ -4,10 +4,17 @@
profile: Some(Flat),
speed: 0.0,
)),
click_method: Some(Clickfinger),
scroll_config: Some((
method: Some(TwoFinger),
natural_scroll: Some(false),
scroll_button: None,
scroll_factor: None,
)),
tap_config: Some((
enabled: true,
button_map: Some(LeftRightMiddle),
drag: true,
drag_lock: false,
)),
)

View file

@ -1 +1 @@
false
true

View file

@ -16,8 +16,17 @@ new() {
return
fi
dir=$(find "$HOME/Documents/gitlab" -mindepth 2 -maxdepth 2 -type d | grep "$name$" | head -n 1)
if [ -d "$name" ]; then
dir="$name"
else
# If 'name' isn't a directory, assume it's a subfolder name and search within "Documents/gitlab"
dir=$(find "$HOME/Documents/gitlab" -mindepth 2 -maxdepth 2 -type d | grep "$name$" | head -n 1)
if [ -z "$dir" ]; then
echo "Error: Directory not found for '$name' in Documents/gitlab." >&2
return 1 # Or exit, depending on your script's error handling
fi
fi
fi
if [ -z "$dir" ]; then