Giter Club home page Giter Club logo

arch-commands's Introduction

Obligatory Warning

I am super new to bash and Arch (like 2 weeks new) so this code is probably horrible. Also sorry about the comments.

This is very specific to my environment right now. You will need to change variables and commands based on what you have installed or hardware you are using. Thanks!


Introduction

I really like using the terminal for everything (hence my move to Arch), but I was having a hard time remembering all the commands to do little things like connect to wifi and such. Also I am running on a MS Surface Pro 4 so it can be wonky at times. In comes @commands!

Unfortunately, there is no nice package for this since I just started developing it like 10 days ago, but some of it is working and I already love it.

Commands

  • @commands status - This lists all the commands that are built
    • add status - This adds a command to the list
    • edit status - This just opens the command for editing
    • delete status - This deletes the commands and updates the aliases
  • @wifi status - This shows the status of the wifi
    • connect status - This will force the laptop to connect to wifi
    • disconnect status - This turns the wifi interface off
  • @dock status - This sets the layout of the screens to how my external monitors are setup
  • @undock status - Pretty much the same, but also messes with scaling since the Surface has HiDP
  • @devmode status - Opens and moves windows around into work layout
  • @stream status - Same as devmode, but for gaming/streaming

All commands have a help flag which will dynamically get the command's oiptions and print them to screen.

More will be coming, but this is it for now. As I use Arch more and more I will probably find the need to add more of them.

Examples

webtron @ 03:34:12 in ~/scripts/commands
   :> @commands
---------------
COMMANDS  
---------------
commands
dock
undock
wifi

webtron @ 03:34:14 in ~/scripts/commands
   :> @wifi help

~~ @Wifi Help Menu ~~
----------------------------------
HELP -> Displays this help menu for this command
BLANK -> Displays the current status of the wifi menu
CONNECT -> Forces the wireless NIC to reconnect

webtron @ 03:35:18 in ~/scripts/commands
   :> @wifi connect
Successfully initialized wpa_supplicant
Connecting to SSID...
Connected to [email protected]

Screenshots

Coming soon, but it's just command line stuff so ya...

arch-commands's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.