Skip to content

Instantly share code, notes, and snippets.

View dcasati's full-sized avatar

Diego Casati dcasati

View GitHub Profile
@dcasati
dcasati / renameworkspace.py
Last active May 27, 2021 04:30 — forked from fahrstuhl/renameworkspace.py
Renaming i3 workspaces with https://github.com/acrisci/i3ipc-python while keeping the <number> <letter> prefix for keyboard navigation.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# renameworkspace.py - Renaming i3 workspaces with https://github.com/acrisci/i3ipc-python while keeping the <number>: <letter> prefix for keyboard navigation.
# Written in 2017 by Fahrstuhl
# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
# You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
import i3ipc
@dcasati
dcasati / requirements.txt
Created March 7, 2019 00:04 — forked from zoni/requirements.txt
Example Python WSGI app which displays the hostname of the system it runs on when accessing /hostname
flask
@dcasati
dcasati / freebsd-bluetooth-mouse.txt
Created July 5, 2018 21:00
Configure FreeBSD Bluetooth Mouse
Add to /boot/loader.conf:
ng_ubt_load="YES"
Add to /etc/rc.conf:
hcsecd_enable="YES"
sdpd_enable="YES"
bthidd_enable="YES"
Reboot, or run: