Skip to content

Instantly share code, notes, and snippets.

View NeoTheFox's full-sized avatar

NeoTheFox NeoTheFox

  • Yerevan
View GitHub Profile
@NeoTheFox
NeoTheFox / config
Last active October 22, 2018 05:47
;Config for Lemur7 on Archlinux
[colors]
;background = ${xrdb:color0:#222}
background = #222
background-alt = #444
;foreground = ${xrdb:color7:#222}
foreground = #dfdfdf
foreground-alt = #555
primary = #ffb52a
Section "InputDevice"
Identifier "Trackball"
Option "MatchProduct" "Primax Kensington Eagle Trackball"
Driver "evdev"
Option "Evdev Middle Button Emulation" "1"
EndSection
ACTION=="add", SUBSYSTEM=="input", ATTRS{name}=="Bluetooth Gamepad", ATTRS{uniq}=="00:17:02:01:ae:2a", SYMLINK+="ipega"
@NeoTheFox
NeoTheFox / kitty.conf
Last active August 6, 2021 05:47
kitty config with solarized dark theme
# vim:fileencoding=utf-8:ft=conf
# Font family. You can also specify different fonts for the
# bold/italic/bold-italic variants. By default they are derived automatically,
# by the OSes font system. Setting them manually is useful for font families
# that have many weight variants like Book, Medium, Thick, etc. For example:
# font_family Operator Mono Book
# bold_font Operator Mono Thick
# bold_italic_font Operator Mono Medium
font_family Hack
@NeoTheFox
NeoTheFox / powerswitch.sh
Last active October 30, 2017 20:55
A script to switch the governor if steam is running
#!/bin/bash
GOVERNOR=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
if [ $1 == "-d" ]
then
while :
do
GOVERNOR=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
# Shadow
shadow = false;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
# shadow-opacity = 0.7;
# shadow-red = 0.0;
SUBSYSTEM=="usb", ATTR{idVendor}=="0603", ATTR{idProduct}=="0008", RUN+="/bin/sudo -u neothefox /bin/sh /usr/local/bin/init_keyboard.sh :0"
#!/bin/bash
#This is a simple calc for looking glass
#Licenced by WTFPL
#by NeoTheFox 2018
#USAGE:
#glasscalc.sh WidthxHeight
function printhelp
@NeoTheFox
NeoTheFox / keybase
Created October 2, 2018 14:48
Keybase Proof
### Keybase proof
I hereby claim:
* I am NeoTheFox on github.
* I am neothefox (https://keybase.io/neothefox) on keybase.
* I have a public key whose fingerprint is 8F6D 5625 1B75 F6F2 388B 3C63 AADE F32B D45E 6587
To claim this, I am signing this object:
#!/bin/sh
if [ -z "$1" ]
then
echo "No argument supplied"
else
export DISPLAY=$1
fi
if pgrep Xorg > /dev/null
then