This file contains hidden or 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
-- basic imports | |
import XMonad | |
-- needed for layouts | |
import XMonad.Layout.Grid | |
-- needed for hot keys | |
import XMonad.Util.EZConfig(additionalKeys) | |
import XMonad.Actions.CycleWS (nextWS, prevWS, shiftToNext, shiftToPrev) |
This file contains hidden or 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 | |
pidlist=`ps ax | grep -i -E $1 | grep -v grep | awk '{print $1}' | grep -v PID | xargs echo` | |
for pid in $pidlist; do | |
sincetime $pid | |
done |
This file contains hidden or 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 python | |
# -*- coding: utf-8 -*- | |
from subprocess import check_output | |
from sys import argv | |
from time import time | |
cmd = lambda pid: "stat -t /proc/%s | awk '{print $14}'" % (pid,) | |
NewerOlder