• Stars
    star
    139
  • Rank 261,783 (Top 6 %)
  • Language
    C
  • License
    GNU General Publi...
  • Created over 9 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Set your keyboard LEDs from the Mac OS X command-line

SetLEDs for Mac OS X

This command-line tool lets you set your keyboard LEDs. This is especially useful if you have a back-lit keyboard and don't want scroll lock, number lock or caps lock to remain unlit.

Note

Setting the LED on or off does not affect the behavior of that key so even though the led for caps lock will be on caps lock itself will still be off. Tapping the key will cause the lock to come on but the LED will already be on so it will not appear to change. Tapping it again will turn it off (and cause the LED to turn off).

Usage

You can set LEDs by simply specifing either a - to turn an LED off, a + to turn an LED on or a ^ to toggle an LED followed by either the word scroll (for scroll lock), num (for numeric lock) or caps (for caps lock). e.g.

setleds -caps +scroll ^num

Name matching

By default setledsmac will set the modifiers for all keyboards attached to your Mac. If you wish to limit it you can use the -name parameter followed by a wildcard. Note that if you want to use a space then specify the wildcard in quotes, e.g.

setleds +scroll -name "Apple Key*"

Verbose mode

setledsmac will report what keys it changed for each keyboard. This is sometimes different per keyboard if either the keyboard does not have that modifier (e.g. Apple keyboards do not have scroll lock) or if the keyboard already had that LED on.

Specifying -v on the command line will cause setledsmac to report the state of the other unchanged modifier keys on that keyboard too. Note that you will not see the state of modifiers that keyboard does not have.

More Repositories

1

DamienGKit

Useful utility classes and helpers from DamienG.com
C#
266
star
2

Linq.Translations

Declare properties on an object that can be translated by LINQ
C#
72
star
3

DiskImageManager

Visual inspection tool for .dsk Spectrum/Amstrad disk images
Pascal
60
star
4

silk-companion

Silk-Companion icon set, made available in various package managers, shipped with CSS spritesheet
JavaScript
37
star
5

jekyll-blog-comments

Add comments to your Jekyll powered blog
HTML
24
star
6

L2ST4

T4 templates with the functionality of SQLMetal/LINQ to SQL classes designer code-generators for C# & VB.Net
23
star
7

envy-code-r

Envy Code R font
23
star
8

pixelworld

ZX Spectrum bitmap font tools.
C#
19
star
9

electron-typescript-vscode

A template for Electron TypeScript apps with VSCode debugging.
TypeScript
13
star
10

QuickTools

Tools for Windows written in C# that live in the system tray
C#
7
star
11

BBCMicroTools

Various tools for the BBC Micro
Shell
7
star
12

graveyard

A collection of old tools for old systems.
Pascal
5
star
13

github-scripting

Small scripts and samples for automating GitHub operations
JavaScript
5
star
14

MultiDasm

Disassembler that uses textual processor descriptions.
C#
4
star
15

font-creation-tools

Various simple tools and scripts for making fonts.
Python
4
star
16

Parallel.ForEachAsync.NET

Port of Microsoft's Parallel.ForEachAsync from .NET 6.0 to .NET Core 3.1.
C#
4
star
17

adventofcode-csharp

Advent of code solutions of mine in C#
C#
3
star
18

DartHash

Hashing tool and algorithms in Dart.
Dart
3
star
19

ZXmorphic

Experimental Sinclair Spectrum emulator in C# (incomplete)
C#
2
star
20

retro-render

Canvas rendering of retro file formats.
TypeScript
2
star
21

CSharpCodeFixes

A collection of code analyzers and code fixes for C# using Roslyn
C#
2
star
22

damieng

1
star
23

web-adventure

Run legacy text adventure games on the web
TypeScript
1
star
24

binarycpu

Identify the processor architecture of binary files
JavaScript
1
star
25

smark

Dynamic bookmarks based on your browser history.
JavaScript
1
star
26

talks

Talks and presentations I have given.
1
star
27

MagneticImage

Magnetic disk image manipulation and inspection tools.
C#
1
star
28

atom-language-bbcbasic

Atom grammar for the BBC Basic language
1
star
29

RestExampleAspNet6

REST WebAPI example for .NET 6
C#
1
star
30

tesla-preview

HTML
1
star
31

inform7-playground

Playing around with the Inform 7 text adventure DSL
Inform 7
1
star
32

mustcode-openapi

TypeScript
1
star
33

LINQmock

Mock your remote LINQ queries against LINQ to Objects.
C#
1
star
34

atom-humane-syntax

Humane theme for Atom
CSS
1
star
35

ESP8266MultiWeMoSwitch

Emulate multiple WeMo switches on an ESP8266 WiFi controller
C++
1
star
36

SampleDomainData

Sample data for a few common domains
PowerShell
1
star
37

legacy-to-utf8

Convert legacy (micro computer) text files to UTF8
JavaScript
1
star