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 | |
# Yaml EDIT | |
# Uses https://github.com/mikefarah/yq/ | |
set -euo pipefail | |
declare file="" | |
declare editformat="yaml" | |
declare origformat="yaml" | |
declare editsuffix="" | |
declare path="." # path to what to edit |
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/sh | |
THEME=Materia-dark-compact | |
if type xfconf-query >/dev/null ; then | |
xfconf-query -c xsettings -p /Net/ThemeName -s $THEME | |
fi | |
if type gsettings >/dev/null ; then | |
gsettings set org.gnome.desktop.interface gtk-theme $THEME | |
fi |
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
// Zashs Swedish Dvorak | |
// setxkbmap -I$HOME/.xkb prog -print | xkbcomp -I$HOME/.xkb - $DISPLAY | |
partial alphanumeric_keys | |
xkb_symbols "zdvorak" { | |
include "se" | |
include "se(dvorak)" | |
name[Group1]="Sweden - Zashs Dvorak"; |
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 | |
set -euo pipefail | |
case $# in | |
1) | |
diff -u --color --label="$1 @ HEAD" --label="$1" <(git show "HEAD:$1" | yq4 -oj | gron) <(yq4 -oj "$1" | gron) | |
;; | |
2) | |
diff -u --color --label="$1 @ $2^" --label="$1 @ $2" <(git show "$2^:$1" | yq4 -oj | gron) <(git show "$2:$1" | yq4 -oj | gron) | |
;; |
OlderNewer