This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'neatjson' | |
@hash = {} | |
begin | |
loop do | |
sleep 15 | |
x = `xprop -id $(xprop -root 32x '\t$0' _NET_ACTIVE_WINDOW | cut -f 2) _NET_WM_NAME` | |
x = x.match(/.*\"(.*)\"\n\z/)[1][0..60] | |
@hash[x] = @hash[x].to_f + 0.25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#no PATH, no way to accidently run any programs | |
PATH='' | |
#useful variables | |
term_height=0 | |
term_width=0 | |
term_scroll_height=0 | |
status_line_row=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# DESCRIPTION: | |
# This is a script to rearrange your windows like this: | |
# _________________________ _________________________ | |
# | _________ | x| | | major x| minor x| | |
# | | major x |__| | | | |____________| | |
# | | | |_____| | --> | | minor x| | |
# | |_________| | ______ | | |____________| | |
# | |______|| x|| | | minor x| |