Skip to content

Instantly share code, notes, and snippets.

View GordonGustafson's full-sized avatar
🎉

Gordon Gustafson GordonGustafson

🎉
  • Motional
View GitHub Profile
@GordonGustafson
GordonGustafson / change_brightness.sh
Created April 14, 2020 02:27
Change linux screen brightness by a percentage
#!/usr/bin/env bash
# Mimics the functionality of xbacklight by directly writing to a file.
# Must be run as a user with permission to write to the brightness file.
#
# usage:
#
# sudo ./change_brightness.sh 10 # increase screen brightness by 10%
# sudo ./change_brightness.sh -10 # decrease screen brightness by 10%
@GordonGustafson
GordonGustafson / i3-config
Last active August 4, 2019 18:16
Gordon's i3 configuration
set $mod Mod4
set $alt Mod1
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below. ISO 10646 = Unicode
font pango:Consolas 10
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, if you need a lot of unicode glyphs or
# right-to-left text rendering, you should instead use pango for rendering and
# chose a FreeType font, such as:
#IfWinActive ahk_class AcrobatSDIWindow
h::
if (inAcrobatSearchMode)
Send h
else Send {Left}
return
j::
if (inAcrobatSearchMode)