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
watch 'jq .focus < <(i3-msg -t get_tree)' |
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
urxvt -e bash -i -c "<command>" |
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
i3-msg -t get_tree | jq '.nodes[1].nodes[1].nodes[] | select(.type==workspace)' |
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
sudo find / -ignore_readdir_race -samefile [file] |
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
sudo dmidecode -t memory |
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
# lists matching non-dirs too after dirs | |
ls -dp --group-directories-first `locate -b '\bash*completion'` | |
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
expac '%m\t%n' -H M | sort -hr | less |
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
import { atom, selector, selectorFamily, snapshot_UNSTABLE } from 'recoil' | |
const atomDefaults = {} | |
export const resetThenSetValue = selector ({ | |
key: 'resetThenSetValue', | |
set: ({set}, {atom, ...rest}) => { | |
set(atom, | |
(prevValue) => { | |
// Defaults not already stored |
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 | |
# Little script hack that launches a new xfce4-terminal with the | |
# current working directory as its default. Mimics pwdx with | |
# xfce4-terminal (all of whose windows share a single process for | |
# perfomance) by extracting the cwd from the window title. If the | |
# ACTIVE_WINDOW isn't a xfce4-terminal, use pwdx of the current | |
# window's PID. | |
id=$(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}') | |
class_string=$(xprop -id $id | awk '/WM_CLASS\(STRING\)/' | cut -d'=' -f2 | cut -d',' -f1) |