From 5e5438f9b5d25a1666563972ca87eafe494268d9 Mon Sep 17 00:00:00 2001 From: c0dev0id Date: Tue, 30 Jan 2024 07:41:31 +0100 Subject: [PATCH] Update 2024-01-30 07:41 OpenBSD/amd64-x13 --- .bin/dexec_browser | 9 ++++++--- .bin/dexec_pim | 24 ++---------------------- .config/spectrwm/spectrwm.conf | 28 ++++++++++++++-------------- .vim/vimrc | 5 +++++ 4 files changed, 27 insertions(+), 39 deletions(-) diff --git a/.bin/dexec_browser b/.bin/dexec_browser index ba17323..93c12db 100755 --- a/.bin/dexec_browser +++ b/.bin/dexec_browser @@ -39,6 +39,7 @@ choose_wrapper() { local SE="OPEN URL Amazon +Amazon Order ID CPAN Crates.io DuckDuckGo Web Search @@ -72,9 +73,10 @@ Zalando" http*) DEFAULT="OPEN (default)"; ;; 192.168.*) DEFAULT="OPEN (default)"; C="http://${C}"; ;; 10.20.*) DEFAULT="OPEN (default)"; C="http://${C}"; ;; + ???-???????-???????) DEFAULT="Amazon Order ID (default)"; ;; gopher*) DEFAULT="OPEN (default)"; ;; - g_*) DEFAULT="GLIB Documentation"; ;; - [Ss]oup_*) DEFAULT="LibSOUP Documentation"; ;; + g_*) DEFAULT="GLIB Documentation (default)"; ;; + [Ss]oup_*) DEFAULT="LibSOUP Documentation (default)"; ;; www.*) DEFAULT="OPEN (default)"; C="http://${C}"; ;; \<*@*\>) DEFAULT="Marc Info Message ID (default)"; ;; *.com|*.de|*.net|*.org) DEFAULT="OPEN (default)"; C="http://${C}"; ;; @@ -90,7 +92,8 @@ Zalando" C=$(echo "$C" | sed 's/ /%20/g') case "${S}" in OPEN*) URI="${C}"; ;; - Amazon*) URI="https://www.amazon.de/s?k=${C}&rh=p_n_enc-merchantbin%3AA3JWKAKR8XB7XF"; ;; + Amazon) URI="https://www.amazon.de/s?k=${C}&rh=p_n_enc-merchantbin%3AA3JWKAKR8XB7XF"; ;; + Amazon*O*) URI="https://www.amazon.de/gp/your-account/order-details/ref=ppx_yo_dt_b_order_details_o00?orderID=${C}"; ;; CPAN*) URI="https://metacpan.org/search?q=${C}"; ;; Crate*) URI="https://crates.io/search?q=${C}"; ;; Grep*) URI="https://grep.app/search?q=${C}"; ;; diff --git a/.bin/dexec_pim b/.bin/dexec_pim index 388a369..af90af8 100755 --- a/.bin/dexec_pim +++ b/.bin/dexec_pim @@ -4,14 +4,6 @@ SEL=$(print "Notes\nDocuments\nContacts\nCalendar\nSlides" | $DMENU_CMD -p "Information System") case $SEL in - Notes) - N=$(printf "Todo\nNotes\nEvents" | $DMENU_CMD -p Notes) - case $N in - Todo) hterm -e "vim scp://sdk@shell.codevoid.de/work/notes/todos.txt"; ;; - Notes) hterm -e "vim scp://sdk@shell.codevoid.de/work/notes/notes.txt" ;; - Events) hterm -e "vim scp://sdk@shell.codevoid.de/work/notes/events.txt" ;; - esac - ;; Documents) DOC=$(ls -1pr $PIMDIR/documents/ | grep -v '/$' | sort -hr | $DMENU_CMD -p Documents -l 25) if [ ! -z "$DOC" ]; then @@ -26,24 +18,12 @@ case $SEL in esac fi ;; - Contacts) - eval $(gnome-keyring-daemon --start --components=secrets) - dbus-update-activation-environment --all - export GNOME_KEYRING_CONTROL GNOME_KEYRING_SOCKET GNOME_KEYRING_PID - gnome-contacts - ;; - Calendar) - eval $(gnome-keyring-daemon --start --components=secrets) - dbus-update-activation-environment --all - export GNOME_KEYRING_CONTROL GNOME_KEYRING_SOCKET GNOME_KEYRING_PID - gnome-calendar - ;; Slides) - P=$(ls -1 "$PIMDIR/slides/" | sort -hr | $DMENU_CMD -p Slides -l 25) + P=$(find $PIMDIR/slides -type f -name "*.txt" | sed "s,$PIMDIR/slides/,,g" | sort -hr | $DMENU_CMD -p Slides -l 25) if [ ! -z "$P" ]; then ACT=$(printf "Open\nEdit" | $DMENU_CMD -p Action) case $ACT in - Open) sent "$PIMDIR/slides/$P" ;; + Open) sent -c "$COLOR_SF" -b "$BACKGROUND" -f "Monospace" "$PIMDIR/slides/$P" ;; Edit) texec "vim \"$PIMDIR/slides/$P\"" ;; esac fi diff --git a/.config/spectrwm/spectrwm.conf b/.config/spectrwm/spectrwm.conf index 80f45b7..25d5591 100644 --- a/.config/spectrwm/spectrwm.conf +++ b/.config/spectrwm/spectrwm.conf @@ -11,14 +11,14 @@ # +-------------------------------------------------- border_width = 1 -color_focus = rgb:AF/5F/00 -color_focus_maximized = rgb:AF/5F/00 -color_focus_maximized_free = rgb:AF/5F/00 -color_focus_free = rgb:AF/5F/00 -color_unfocus = rgb:44/44/44 +color_focus = rgb:00/80/80 +color_focus_maximized = rgb:00/80/80 +color_focus_maximized_free = rgb:00/80/80 +color_focus_free = rgb:00/80/80 +color_unfocus = rgb:00/20/20 color_unfocus_free = rgb:55/35/00 -tile_gap = 8 -region_padding = 8 +tile_gap = 10 +region_padding = 10 disable_border = 0 maximize_hide_bar = 0 @@ -27,12 +27,12 @@ maximize_hide_bar = 0 # +-------------------------------------------------- bar_enabled = 1 bar_border_width = 1 -bar_border = rgb:18/18/18 -bar_border_unfocus = rgb:18/18/18 -bar_border_free = rgb:18/18/18 +bar_border = rgb:00/20/20 +bar_border_unfocus = rgb:00/20/20 +bar_border_free = rgb:00/20/20 -bar_color = rgb:18/18/18,rgb:90/40/00,rgb:12/12/12,rgb:58/00/00,rgb:45/20/00 -bar_color_free = rgb:18/18/18,rgb:90/40/00,rgb:12/12/12,rgb:58/00/00,rgb:45/20/00 +bar_color = rgb:00/20/20,rgb:00/60/60,rgb:00/20/20,rgb:58/00/00,rgb:00/40/40 +bar_color_free = rgb:00/20/20,rgb:00/60/60,rgb:00/20/20,rgb:58/00/00,rgb:00/40/40 bar_color_selected = rgb:18/24/28 bar_font_color = rgb:99/99/99 @@ -203,8 +203,8 @@ bind[xpick] = MOD+Print program[lock] = /usr/bin/false -autorun = ws[1]:xconsole -autorun = ws[1]:scratchpad +autorun = ws[10]:xconsole +autorun = ws[10]:sp # +-------------------------------------------------- # | KEYBOARD MAPPING diff --git a/.vim/vimrc b/.vim/vimrc index 463cc88..1ff80e0 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -1,3 +1,6 @@ +packadd termdebug + + set nocompatible " mouse support @@ -119,6 +122,8 @@ let g:autotagTagsFile = ".tags" let g:autotagCtagsCmd = "ectags" +let g:termdebugger = "egdb" + " HIGHLIGHT SPECIAL WORDS match ErrorMsg '\(TODO:\|FIXME\|XXX\|workaround\|WTF\|: error:.*\|\s\+$\| \+\ze\t\)'