Skip to content

Instantly share code, notes, and snippets.

View lu0's full-sized avatar
🎹
💻

Lucero Alvarado Ruiz lu0

🎹
💻
View GitHub Profile
@lu0
lu0 / cursor-display-switcher.ahk
Created August 4, 2022 00:25
Autohotkey script to switch the cursor between displays
#NoTrayIcon
#SingleInstance Force
CoordMode, Mouse, Screen
; Autohotkey script to move the cursor from the left to the right monitor and viceversa
; Currently hardcoded
LeftMonitorWidth = 1920
LeftMonitorHeight = 1080
#!/usr/bin/env bash
# Generate unix timestamps in milliseconds
# ./unix-timestamp-generator.sh <seconds> > timestamps.log
run_during_seconds=${1:-2}
end_time=$(( SECONDS + run_during_seconds ))
while [ $SECONDS -lt $end_time ]; do
/usr/bin/env date +%s%3N
@lu0
lu0 / toggle-terminal.ahk
Last active March 10, 2023 07:25 — forked from andrewgodwin/QuakeTerminal.ahk
AutoHotkey script to hide/show a Windows Terminal using a keybinding
#NoTrayIcon
#SingleInstance Force
;
; This scripts toggles between states raised and hidden of a Windows Terminal,
; or opens a new one if not opened, using `Super + T` or `Super + Enter`
;
; Supports multiple workspaces or virtual desktops.
;
@lu0
lu0 / thunderbird-tbkeys-config
Created November 21, 2021 05:47
Keybindings I use on Thunderbird with Tbkeys
{
"0": "unset",
"1": "unset",
"2": "unset",
"3": "unset",
"4": "unset",
"5": "unset",
"6": "unset",
"7": "unset",
"8": "unset",
@lu0
lu0 / thinkpad-usbkeyb-micmute.sh
Created June 20, 2021 16:33
Enable micmute button on the Thinkpad Compact USB Keyboard with Trackpoint
#!/bin/bash
# The micmute (Fn+F4) button of the Thinkpad Compact USB Keyboard
# doesn't work out of the box as its keycode (248) is outside the
# range of the X server, therefore it is not recognizable with xev.
#
# This script enables the button by connecting to the acpid socket
# to catch the acpi event and then simulate the keypress on the X server.
#
# With this running at startup, we don't need to toggle the mic with