aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/.bashrc14
-rw-r--r--misc/.config/i3/config1
-rw-r--r--misc/.gdbinit26
3 files changed, 41 insertions, 0 deletions
diff --git a/misc/.bashrc b/misc/.bashrc
index f64de44..2cab0f6 100644
--- a/misc/.bashrc
+++ b/misc/.bashrc
@@ -282,5 +282,19 @@ gs-merge() {
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile="$@"
}
+_chime() {
+ "$@"
+ local rc=$?
+ local d=/usr/share/sounds/freedesktop/stereo
+ if [ $rc -eq 0 ]; then
+ paplay "/usr/share/filezilla/resources/finished.wav"
+ else
+ paplay "/usr/share/sounds/Oxygen-Sys-App-Error-Serious-Very.ogg"
+ fi
+ return $rc
+}
+
+alias chime='_chime '
+
# dptrp1
alias quaderno="dptrp1 --addr $QUADERNO_IP"
diff --git a/misc/.config/i3/config b/misc/.config/i3/config
index 84b1247..4928269 100644
--- a/misc/.config/i3/config
+++ b/misc/.config/i3/config
@@ -215,3 +215,4 @@ exec ibus-daemon
exec redshift-gtk
exec --no-startup-id i3-msg 'workspace $ws1; exec urxvt'
exec xscreensaver -no-splash &
+exec xautolock -time 15 -locker 'i3lock -c 000000' &
diff --git a/misc/.gdbinit b/misc/.gdbinit
index 00be34f..433973a 100644
--- a/misc/.gdbinit
+++ b/misc/.gdbinit
@@ -25,6 +25,14 @@ define bc
b $arg0
c
end
+define enc
+ en $arg0
+ c
+end
+define disc
+ dis $arg0
+ c
+end
# Print backtrace of all threads
alias abt = thread apply all bt
set history save on
@@ -44,5 +52,23 @@ define wlrc
watch -l $arg0
rc
end
+define brc
+ b $arg0
+ rc
+end
+
+# bison
+define pbs
+ print yyvsp[$arg0 - yylen]
+end
+
+define disw
+python
+for b in gdb.breakpoints():
+ if b.type in (gdb.BP_WATCHPOINT, gdb.BP_HARDWARE_WATCHPOINT,
+ gdb.BP_READ_WATCHPOINT, gdb.BP_ACCESS_WATCHPOINT):
+ b.enabled = False
+end
+end
source ~/.gdbinit_local