Skip to content

Commit

Permalink
Adding files
Browse files Browse the repository at this point in the history
  • Loading branch information
VinceBT committed Jan 31, 2022
1 parent 5ecc295 commit 6178c1d
Show file tree
Hide file tree
Showing 13 changed files with 3,906 additions and 1 deletion.
243 changes: 243 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,243 @@
# Created by https://www.toptal.com/developers/gitignore/api/node,intellij+all
# Edit at https://www.toptal.com/developers/gitignore?templates=node,intellij+all

### Intellij+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### Intellij+all Patch ###
# Ignores the whole .idea folder and all .iml files
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360

.idea/*

# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023

*.iml
modules.xml
.idea/misc.xml
*.ipr

# Sonarlint plugin
.idea/sonarlint

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

### Node Patch ###
# Serverless Webpack directories
.webpack/

# Optional stylelint cache

# SvelteKit build / generate output
.svelte-kit

# End of https://www.toptal.com/developers/gitignore/api/node,intellij+all

portable
*.zip
*.exe
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v14.18.3
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"tabWidth": 2,
"singleQuote": false,
"trailingComma": "all",
"semi": true
}
1 change: 1 addition & 0 deletions LBMM.vbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CreateObject("Wscript.Shell").Run "LBMM.exe", 0
57 changes: 56 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,56 @@
# LBMM
# LittleBigMouse Manager

Are you facing issues while using borderless fullscreen applications with LittleBigMouse ?

Do you have to Alt+Tab to disable it every time you want to play games ?

This is a third-party tool for [LittleBigMouse](https://github.com/mgth/LittleBigMouse) that gives the possibility to enable or disable the LBM daemon depending on the active window.

## Installation

You can edit the `settings.json` to add a program of your choice, or to adjust some other settings.
Just remember to kill the `Node.js Javascript Runtime` process and run again the `LBMM.vbs` script.

### Basic
- Go to releases, download the zip and extract it to your favorite location
- Double-click the `LBMM.vbs` script, now you should have a running `Node.js Javascript Runtime` process inside Task Manager
- When focusing a window that is specified in the settings, the LBM icon should turn grey and turn back green when focusing a regular one, like this
![eZmF3Np9Co](https://user-images.githubusercontent.com/1362505/151820434-05772094-632d-4884-8828-8f4b275ebee4.gif)

### Automatic
If you want to make it run automatically on every startup (this method is from [this article](https://keestalkstech.com/2016/07/start-nodejs-app-windowless-windows/#vbs-to-the-rescue))

- Open Explorer and paste `%AppData%\Microsoft\Windows\Start Menu\Programs\Startup\` into the address bar, like this
![image](https://user-images.githubusercontent.com/1362505/151819930-d2028edb-c6f0-422a-b3a1-2631f6d2fccb.png)
- Create a new shortcut and point it to the `LBMM.vbs` file inside the project
- Next time your computer will start, it should run automatically

## Settings

- `daemon`: Where the LittleBigMouse_Daemon.exe file is located on your system
- `arguments`: Arguments the are called on the daemon to turn it on or off, you should not have to touch this
- `programs`: The list of programs that should turn OFF LittleBigMouse, feel free to ad your own
- `default`: If LBM is enabled by default or not on your computer, default is true
- `interval`: The interval in milliseconds between each time the process will check the name of your current focused window, default is 500ms

## Dependencies

https://github.com/mgth/LittleBigMouse

## Development

Feel free to create a PR

- Use NVM or Node 14
- Install dependencies with `npm install`
- Run in development mode with `npm run dev`

## Supports

Windows 10 (11 to be confirmed)

## Donation

Feel free to buy me a coffee :)

[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/donate/?hosted_button_id=KKDV8JRNNRDAN)
Loading

0 comments on commit 6178c1d

Please sign in to comment.