Skip to content

Instantly share code, notes, and snippets.

View staticf0x's full-sized avatar

Riley staticf0x

View GitHub Profile
[tool.poetry]
name = "xxx"
version = "1.0.0"
description = "xxx"
authors = ["xxx"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.7"
numpy = "^1.20.1"
@staticf0x
staticf0x / us
Last active January 7, 2021 13:17
CZ/SK/DE/FI/NO/IS keyboard layout, place in /usr/share/X11/xkb/symbols/ and set by setxkbmap "us(cz_sk_de)"
default partial alphanumeric_keys modifier_keys
xkb_symbols "basic" {
name[Group1]= "English (US)";
key <TLDE> { [ grave, asciitilde ] };
key <AE01> { [ 1, exclam ] };
key <AE02> { [ 2, at ] };
key <AE03> { [ 3, numbersign ] };
key <AE04> { [ 4, dollar ] };
@staticf0x
staticf0x / ros.sh
Last active May 18, 2020 12:20
ros stands for "run or switch", a simple script to either start a program or switch to its window using wmctrl, ideal for shortcuts
#!/bin/bash
PID=$(pgrep $1)
if [ ${PID:-null} = null ]
then
$1 &
else
wmctrl -xa $1
fi