}
bwm() {
- s bwm-ng -T avg -d
+ # useful: update interval: -t MSEC # default 500 ms is hard to read.
+ # -d1: human units
+ s bwm-ng -d1 -Tavg -t1000 "$@"
}
-o -name .hg -prune -o -name .editor-backups -prune \
-o -name .undo-tree-history -prune \) \! -type d 2>/dev/null
}
+# fas = find all shebang. filter by the last word in the shebang path
+# usage: $0 INTERPRETER_BINARY_NAME [FIND_INITIAL_ARGS...]
+fas() {
+ local name="$1"
+ shift
+ find "$@" -not \( -name .svn -prune -o -name .git -prune \
+ -o -name .hg -prune -o -name .editor-backups -prune \
+ -o -name .undo-tree-history -prune \) \! -type d \
+ -exec awk 'FNR==1 && /^#![^ ]*\/'"$name( |$)/ {print FILENAME; nextfile}" {} + 2>/dev/null
+ }
# like faf, but sort by modification time. like lt()
faft() {
\set QUIET on
\set ON_ERROR_STOP on
-
+\set VERBOSITY verbose
+\set SHOW_CONTEXT always
-- print time of each query.
\timing on
-- print queries as they are sent to the server.
2 screens: Width=1916
2 screens: XPosition=2
2 screens: YPosition=2
-3840x2160 screen: Height=2156
+3840x2160 screen: Height=1076
3840x2160 screen: Width=1916
-3840x2160 screen: XPosition=2
+3840x2160 screen: XPosition=1922
3840x2160 screen: YPosition=2
DP-0=DP-0
DP-1 eDP-1=DP-1