summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/guiscripts/record6
-rw-r--r--config/essentials/shell/functions.sh4
-rw-r--r--config/essentials/zsh/.zshrc2
-rw-r--r--config/home/.zshenv2
4 files changed, 11 insertions, 3 deletions
diff --git a/bin/guiscripts/record b/bin/guiscripts/record
index df4b6e6..f01a5c7 100755
--- a/bin/guiscripts/record
+++ b/bin/guiscripts/record
@@ -93,7 +93,11 @@ case "$option" in
record_cmd $w $h $x $y $dir $current
}
;;
- stop) kill "$(pgrep ffmpeg | xargs ps | grep 'x11grab' | awk '{print $1}')"; rm -f "$lock" ;;
+ stop)
+ pid="$(pgrep ffmpeg | xargs ps | grep 'x11grab' | awk '{print $1}')"
+ [ "$pid" ] && kill "$pid"
+ rm -f "$lock"
+ ;;
full) record_cmd 0 0 1920 1080 $dir $current ;;
audio) $0 -a; exit ;;
help|*) >&2 printf 'record [dir] (active|window|part|stop|full)\n' ;;
diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh
index b7bb5fd..46f2a7e 100644
--- a/config/essentials/shell/functions.sh
+++ b/config/essentials/shell/functions.sh
@@ -399,3 +399,7 @@ ssh() {
done
/usr/bin/ssh $@
}
+
+gccg() {
+ gcc -g -Wall -pedantic -std=c99 -o ${1%.c} $@
+}
diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc
index 139c145..07e859d 100644
--- a/config/essentials/zsh/.zshrc
+++ b/config/essentials/zsh/.zshrc
@@ -140,6 +140,6 @@ setopt histignorealldups
setopt histreduceblanks
setopt interactivecomments
setopt notify
-setopt cdablevars
+# setopt cdablevars
# zprof
diff --git a/config/home/.zshenv b/config/home/.zshenv
index 953ac22..6a40479 100644
--- a/config/home/.zshenv
+++ b/config/home/.zshenv
@@ -80,7 +80,7 @@ export FZF_DEFAULT_OPTS=$FZF_DEFAULT_OPTS'
--color=info:#b48ead,prompt:#bf6069,pointer:#b48dac
--color=marker:#a3be8b,spinner:#ebcb8b,header:#a3be8b'
-export LESS="-i -r"
+# export LESS="-i -r"
# Colored manpages
# export MANPAGER="less -R --use-color -Dd+r -Du+b"