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/env python | |
''' | |
Print old package version paths of pacman cache | |
''' | |
import re | |
from glob import glob | |
pkg_name = re.compile(r'.+/(\w+)-') |
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/env python3 | |
from subprocess import check_output as output | |
from subprocess import run | |
from os.path import exists | |
from subprocess import CalledProcessError | |
import argparse | |
import re | |
import sys | |
wacom_max_res = (44800, 29600) # Width, height |
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
-- These are changes required to enable DWM-like window swallowing. | |
-- The code is some spaghetti mess but.. it works (TM) | |
-- First, a callback must be added to all clients to find PPID of the window, which | |
-- refers to terminal window PID. | |
-- The behaviour I've noticed when launching applications from within zsh shell, | |
-- the PPID of the launched window is actually the PID of the zsh instance. | |
-- So I had to get PPID of it, to get the PID of terminal. | |