Skip to content

Instantly share code, notes, and snippets.

View revarcline's full-sized avatar

Alex Cline revarcline

View GitHub Profile
@revarcline
revarcline / sway_workspace_tool.py
Last active January 6, 2023 04:57
Sway workspace tool
#!/bin/env python
import subprocess
import argparse
def get_args():
"""parse flags"""
parser = argparse.ArgumentParser(description="Move workspaces in sway")
parser.add_argument("-gn", "--go_next", action="store_true",
help="Next workspace")
@revarcline
revarcline / brightness
Last active November 25, 2022 02:59
python script to adjust backlight settings
#!/bin/env python
# this script is specifically geared toward intel_backlight laptop displays
# with a maximum value of 96000. brightness will not set to zero in this script
# to avoid mishaps. it's recommended to whitelist this program in /etc/sudoers:
# Cmnd_Alias WITHOUTPW = /usr/local/bin/brightness
# Defaults!WITHOUTPW !authenticate
import os
import sys
import argparse
#!/bin/bash
# diary.sh - simple diary organization script
# creates new or edits existing diary entry using $EDITOR.
# will create month and year directories as needed.
# files will be in markdown (.md) format.
# files are sorted as follows:
# yyyy/
# |
# -mm/
# |
@revarcline
revarcline / keybase.md
Last active August 27, 2020 09:47
keybase.md

Keybase proof

I hereby claim:

  • I am revarcline on github.
  • I am revarcline (https://keybase.io/revarcline) on keybase.
  • I have a public key ASA08ea9RH1znmIG0fvMYhDuTWQbU9l909-xEwKmkXh5FAo

To claim this, I am signing this object:

@revarcline
revarcline / rotate_desktop.sh
Last active January 2, 2020 08:18 — forked from mildmojo/rotate_desktop.sh
Script to rotate the screen and touch devices on modern Linux desktops. Great for convertible laptops.
#!/bin/bash
#
# rotate_desktop.sh
#
# Rotates modern Linux desktop screen and input devices to match. Handy for
# convertible notebooks. Call this script from panel launchers, keyboard
# shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.).
#
# Using transformation matrix bits taken from:
# https://wiki.ubuntu.com/X/InputCoordinateTransformation