Update 2024-02-25 14:11 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id 2024-02-25 14:11:12 +01:00
parent eb9276c81c
commit 4d643506db
12 changed files with 111 additions and 48 deletions

View File

@ -25,6 +25,24 @@ xlock.mode: blank
xlock.username: username:
xlock.password: password:
! xnotify.title.faceName:
! xnotify.body.faceName:
! xnotify.background:
! xnotify.foreground:
! xnotify.border:
! xnotify.geometry:
! xnotify.gravity:
! xnotify.borderWidth:
! xnotify.maxHeight:
! xnotify.gap:
! xnotify.imageWidth:
! xnotify.leading:
! xnotify.padding:
! xnotify.shrink:
! xnotify.alignment:
! xnotify.alignTop:
! xnotify.wrap:
! -- XCLOCK -- !
xclock*analog: false
xclock*update: 1
@ -182,7 +200,7 @@ XConsole*height: 160
! -- XFONTSEL -- !
XFontSel.printOnQuit: True
XFontSel.pattern: -*-*-medium-r-normal-*-*-*-*-*-*-*-iso10646-1
XFontSel.pattern: -*-*-*-*-*-*-*-*-*-*-*-*-iso10646-1
XFontSel*Font: lucidasanstypewriter-14
! -- ZUTTY -- !

View File

@ -12,7 +12,7 @@ PIMDIR="${HOME}/Documents"
BACKGROUND="#002020"
COLOR_NB="#002020"
COLOR_NB="#001010"
COLOR_NF="#008080"
COLOR_SB="#004040"
COLOR_SF="#EEEEEE"
@ -21,15 +21,15 @@ COLOR_SF="#EEEEEE"
# TERMINALS
#
STERM="st -f JetBrainsMonoNerdFont:pixelsize=18"
BTERM="st -f JetBrainsMonoNerdFont:pixelsize=26"
HTERM="st -f JetBrainsMonoNerdFont:pixelsize=32"
STERM="st -f TamzenForPowerline:pixelsize=16"
BTERM="st -f JetBrainsMonoNerdFont:pixelsize=18"
HTERM="st -f JetBrainsMonoNerdFont:pixelsize=22"
#
# DMENU
#
DMENUOPTS="-fn JetBrainsMonoNerdFont:pixelsize=18 \
DMENUOPTS="-fn TamzenForPowerline:pixelsize=16 \
-nb $COLOR_NB \
-nf $COLOR_NF \
-sf $COLOR_SF \
@ -46,11 +46,16 @@ DMENURUN_CMD="dmenu_run $DMENUOPTS"
# NOTIFY
#
#NOTIFY_CMD() {
# twmnc -i "${VAR##*/}" \
# -d 5000 \
# -t "$(date +%H:%M)" \
# -c "$@"
#}
NOTIFY_CMD() {
twmnc -i "${VAR##*/}" \
-d 5000 \
-t "$(date +%H:%M)" \
-c "$@"
echo "$@" \
| xnotify \
$NOTIFY_CMD_OPTS &
}
#

BIN
.bin/cbar

Binary file not shown.

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash
. $HOME/.bin/_config
set -x
shopt -s nullglob globstar
@ -14,16 +15,38 @@ password=$(printf '%s\n' "${password_files[@]}" | $DMENU_CMD -p Password)
# read password file
password_out=$(pass "$password" 2> /dev/null)
# copy password line
printf "%s" "$password_out" | head -1 | xclip -r
# extract additional information
password_info=$(printf "%s" "$password_out" | grep -Ei -m 1 'login|user|email')
#url_info=$(printf "%s" "$password_out" | grep -Ei '^url' | awk -F"[ :]*" '{ $1=""; print $0 }' )
copy_password() {
# copy password line
printf "%s" "$password_out" | head -1 | xclip -r
# show desktop notification
if [[ -n $password_info ]]; then
$NOTIFY_CMD "$(printf '%s' "$password_info")"
# extract additional information
password_info=$(printf "%s" "$password_out" | grep -Ei -m 1 'login|user|email')
#url_info=$(printf "%s" "$password_out" | grep -Ei '^url' | awk -F"[ :]*" '{ $1=""; print $0 }' )
# show desktop notification
if [[ -n $password_info ]]; then
NOTIFY_CMD "$(printf '%s' "$password_info")"
else
NOTIFY_CMD "No username provided."
fi
}
copy_otp() {
password_otp=$(pass otp "$password" 2> /dev/null)
printf "%s" "$password_otp" | xclip -r
NOTIFY_CMD "$password_otp"
}
if echo "$password_out" | grep -q otpauth
then
sel=$(printf 'Copy Password\nCopy OTP' | $DMENU_CMD -p Copy)
case $sel in
*Password) copy_password; ;;
*OTP) copy_otp; ;;
esac
else
$NOTIFY_CMD "No username provided."
copy_password
fi

View File

@ -3,5 +3,5 @@
. /home/sdk/.bin/_config
MSG="Drink some water!"
NOTIFY_CMD_OPTS="-s 5"
NOTIFY_CMD "$MSG"

View File

@ -94,7 +94,7 @@ fi
#
if [ -d ~/ytdl ]
then
add "set -A complete_ytdl_1 -- " "$(cd ~/ytdl && ( ls -d *; ls -d */* ))"
add "set -A complete_ytdl_1 -- " "$( find $HOME/ytdl -maxdepth 2 -type d | sed "s,$HOME/ytdl/,,g" | grep -v $HOME)"
fi
#

View File

@ -24,9 +24,9 @@ fi
if print "$f" | egrep -qi '^http[s]{0,1}://';
then
case "$f" in
*.mkv) tmpv "$f"; ;;
*.mp4) tmpv "$f"; ;;
*.webm) tmpv "$f"; ;;
*.mkv) mpv "$f"; ;;
*.mp4) mpv "$f"; ;;
*.webm) mpv "$f"; ;;
*) sacc "$f"; ;;
esac
${BROWSER:=vimb} "$f"
@ -36,9 +36,9 @@ fi
if print "$f" | egrep -qi '^gopher://';
then
case "$f" in
*.mkv) tmpv "$f"; ;;
*.mp4) tmpv "$f"; ;;
*.webm) tmpv "$f"; ;;
*.mkv) mpv "$f"; ;;
*.mp4) mpv "$f"; ;;
*.webm) mpv "$f"; ;;
*) sacc "$f"; ;;
esac
exit 0
@ -64,8 +64,8 @@ case "$EXT" in
docx) libreoffice "$f"; ;;
xlsx) libreoffice "$f"; ;;
txt) vim "$f"; ;;
m2ts) tmpv "$f"; ;;
flv) tmpv "$f"; ;;
m2ts) mpv "$f"; ;;
flv) mpv "$f"; ;;
mp3) aplay "$f"; ;;
aiff) mpva "$f"; ;;
sid) sidplay "$f"; ;;
@ -93,8 +93,8 @@ case "$(file -ib "$f")" in
audio/midi) timidity "$f"; ;;
# with wildcards
audio/*) aplay "$f"; ;;
video/*) tmpv "$f"; ;;
image/webp) tmpv "$f"; ;;
video/*) mpv "$f"; ;;
image/webp) mpv "$f"; ;;
image/*) nsxiv -N floating -g 1280x720+300+180 -ab "$f"; ;;
# can't handle
application/octet-stream) print "Sorry, can't handle: $f"; ;;

View File

@ -10,15 +10,15 @@
# | WINDOW DECORATION
# +--------------------------------------------------
border_width = 1
border_width = 2
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 = rgb:00/00/00
color_unfocus_free = rgb:55/35/00
tile_gap = 10
region_padding = 10
tile_gap = -2
region_padding = 0
disable_border = 0
maximize_hide_bar = 0
@ -26,20 +26,21 @@ maximize_hide_bar = 0
# | BAR SETTINGS
# +--------------------------------------------------
bar_enabled = 1
bar_border_width = 1
bar_border = rgb:00/20/20
bar_border_unfocus = rgb:00/20/20
bar_border_free = rgb:00/20/20
bar_border_width = 2
bar_border = rgb:00/00/00
bar_border_unfocus = rgb:00/10/10
bar_border_free = rgb:00/10/10
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 = rgb:00/10/10,rgb:00/60/60,rgb:00/10/10,rgb:58/00/00,rgb:00/40/40
bar_color_free = rgb:00/10/10,rgb:00/60/60,rgb:00/10/10,rgb:58/00/00,rgb:00/40/40
bar_color_selected = rgb:18/24/28
bar_font_color = rgb:99/99/99
bar_font_color_free = rgb:99/99/99
bar_font_color = rgb:CC/CC/CC
bar_font_color_free = rgb:CC/CC/CC
bar_font_color_selected = rgb:ff/ff/ff
bar_font = JetBrainsMonoNerdFont:pixelsize=18
bar_font = TamzenForPowerline:pixelsize=16
bar_font_pua = JetBrainsMonoNerdFont:pixelsize=13
bar_action = cbar
bar_action_expand = 0
bar_at_bottom = 0
@ -190,6 +191,12 @@ bind[xconsole] = MOD+Shift+minus
program[screenshot_wind] = sshot
bind[screenshot_wind] = Print
program[xcolor] = xcolorcopy
bind[xcolor] = MOD+Print
program[xmenu] = myxmenu
bind[xmenu] = Super_L
program[lock] = /usr/bin/false
autorun = ws[10]:xcons
@ -215,7 +222,7 @@ bind[focus_next] = MOD+Down
bind[focus_prev] = MOD+Up
bind[focus_prev] = MOD+Shift+Tab
bind[focus_urgent] = MOD+u
bind[focus_free] = Super_L
#bind[focus_free] = Super_L
# ICONFIY / HIDE
bind[iconify] = MOD+i

View File

@ -5,7 +5,7 @@ background_color=#FF6A00
# bounce=true
# bounce_duration=1000
font=JetBrainsMonoNerdFont
font_size=20
font_size=15
font_variant=medium
foreground_color=#121212
height=26

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
asterisk = "*";
prompt = "";
font = "JetBrainsMonoNerdFont:pixelsize=20";
font = "JetBrainsMonoNerdFont:pixelsize=15";
bottom = false;
prompt_fg = "#FFFFFF";

10
.kshrc
View File

@ -234,6 +234,16 @@ pj() {
|| cd $LIST
}
obsd-full-system-update() {(
set -x
cvs-update-all
set -e
obsdmake kernel
obsdmake base
obsdmake xenocara
doas pkg_add -u
)}
########################################################################
# REMIND
########################################################################