summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaïm Favier <fnaim42@gmail.com>2020-08-16 13:02:56 +0200
committerNaïm Favier <fnaim42@gmail.com>2020-08-16 13:03:07 +0200
commit9560d65d2ca0bc0996be358d498f478b2ac474f0 (patch)
tree87e29a09fb233223ef21163d833a4f375ec0c4d8
parentbcf210986b9c652294e47db079d733884be8950e (diff)
Many alligators will be slain, but the swamp will remain.
-rw-r--r--Makefile4
-rw-r--r--bash/functions1
-rw-r--r--firefox/userContent.css.template2
-rw-r--r--git/gitconfig1
-rwxr-xr-xscripts/bar5
-rwxr-xr-xscripts/shoot2
-rwxr-xr-xscripts/theme2
-rw-r--r--x/XCompose2
8 files changed, 13 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 2acd865..610b33a 100644
--- a/Makefile
+++ b/Makefile
@@ -8,8 +8,8 @@ here: $(shell hostname)
.PHONY: functor
functor: station
-.PHONY: mono
-mono: station
+.PHONY: monoid
+monoid: station
.PHONY: sigma
sigma: server
diff --git a/bash/functions b/bash/functions
index 9a1b70c..47ee5b7 100644
--- a/bash/functions
+++ b/bash/functions
@@ -121,6 +121,7 @@ grep() {
color=never
fi
command grep --color="$color" "$@" | less -FR
+ return "${PIPESTATUS[0]}"
}
sponge() {
diff --git a/firefox/userContent.css.template b/firefox/userContent.css.template
index beb399b..80a3d93 100644
--- a/firefox/userContent.css.template
+++ b/firefox/userContent.css.template
@@ -40,7 +40,7 @@
}
}
-@-moz-document url-prefix(https://github.com/) {
+@-moz-document url-prefix(https://github.com/), url-prefix(https://gist.github.com/) {
.blob-num, .blob-code-inner {
font-family: monospace !important;
font-size: 13px !important;
diff --git a/git/gitconfig b/git/gitconfig
index 84e3c14..14fed62 100644
--- a/git/gitconfig
+++ b/git/gitconfig
@@ -42,6 +42,7 @@
co = checkout
r = reset
p = push
+ pa = push --all
pl = pull --rebase
cl = clone
cl1 = clone --depth=1
diff --git a/scripts/bar b/scripts/bar
index e81612e..2bf5e2c 100755
--- a/scripts/bar
+++ b/scripts/bar
@@ -186,7 +186,7 @@ xdo above -t "$(xdo id -n root)" "$(xdo id -m -n lemonbar)" &
gmail 'G%s\n' &
# Music
- mpc idleloop player |
+ mpc idleloop |
while
printf 'M\n'
read -r
@@ -377,6 +377,9 @@ while read -rn 1 event; do
escape song_file
song=$song_file
fi
+ if mpc status | grep -q 'random: *on'; then
+ song=" $song"
+ fi
song=" $song"
pad song
song="%{A:music:}%{A2:mpc clear:}%{A3:mpc toggle:}$song%{A}%{A}%{A}"
diff --git a/scripts/shoot b/scripts/shoot
index 6ed6fa3..15a2106 100755
--- a/scripts/shoot
+++ b/scripts/shoot
@@ -86,7 +86,7 @@ if (( video )); then
fi
# First encoding: lossless, fast, matroska
- tmpvideo=$(mktemp --suffix .mkv) || exit 1
+ tmpvideo=$(mktemp -p ~ --suffix .mkv) || exit 1
trap 'rm -f -- "$tmpvideo"' exit
ffmpeg -y -video_size "$geometry" -framerate 30 -f x11grab -i :0.0"$offset" -c:v libx264 -crf 0 -preset ultrafast "$tmpvideo"
diff --git a/scripts/theme b/scripts/theme
index 70a33b8..1bd706b 100755
--- a/scripts/theme
+++ b/scripts/theme
@@ -26,7 +26,7 @@ if (( dark )); then
background_alt=$color7
foreground_alt=$color8
else
- color7='#cccccc'
+ color7='#aaaaaa'
color8='#e9e9e9'
background=$color15
foreground=$color0
diff --git a/x/XCompose b/x/XCompose
index 60d3e80..c1875be 100644
--- a/x/XCompose
+++ b/x/XCompose
@@ -18,6 +18,7 @@ include "%L"
<Multi_key> <o> <k> : "✓"
<Multi_key> <n> <o> <k> : "✗"
<Multi_key> <r> <r> : "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
+<Multi_key> <asciitilde> <equal> : "≅"
<Multi_key> <l> <a> <n> <d> : "∧"
<Multi_key> <l> <o> <r> : "∨"
<Multi_key> <i> <f> <f> : "⇔"
@@ -29,6 +30,7 @@ include "%L"
<Multi_key> <a> <l> <l> : "∀"
<Multi_key> <bar> <minus> : "⊢"
<Multi_key> <bar> <equal> : "⊨"
+<Multi_key> <m> <e> <m> : "∈"
<Multi_key> <i> <n> <c> : "⊂"
<Multi_key> <m> <e> <m> : "∈"
<Multi_key> <slash> <i> <n> <c> : "⊄"