Update 2024-02-25 14:11 OpenBSD/amd64-x13
This commit is contained in:
parent
eb9276c81c
commit
4d643506db
20
.Xdefaults
20
.Xdefaults
@ -25,6 +25,24 @@ xlock.mode: blank
|
|||||||
xlock.username: username:
|
xlock.username: username:
|
||||||
xlock.password: password:
|
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 -- !
|
||||||
xclock*analog: false
|
xclock*analog: false
|
||||||
xclock*update: 1
|
xclock*update: 1
|
||||||
@ -182,7 +200,7 @@ XConsole*height: 160
|
|||||||
|
|
||||||
! -- XFONTSEL -- !
|
! -- XFONTSEL -- !
|
||||||
XFontSel.printOnQuit: True
|
XFontSel.printOnQuit: True
|
||||||
XFontSel.pattern: -*-*-medium-r-normal-*-*-*-*-*-*-*-iso10646-1
|
XFontSel.pattern: -*-*-*-*-*-*-*-*-*-*-*-*-iso10646-1
|
||||||
XFontSel*Font: lucidasanstypewriter-14
|
XFontSel*Font: lucidasanstypewriter-14
|
||||||
|
|
||||||
! -- ZUTTY -- !
|
! -- ZUTTY -- !
|
||||||
|
23
.bin/_config
23
.bin/_config
@ -12,7 +12,7 @@ PIMDIR="${HOME}/Documents"
|
|||||||
|
|
||||||
BACKGROUND="#002020"
|
BACKGROUND="#002020"
|
||||||
|
|
||||||
COLOR_NB="#002020"
|
COLOR_NB="#001010"
|
||||||
COLOR_NF="#008080"
|
COLOR_NF="#008080"
|
||||||
COLOR_SB="#004040"
|
COLOR_SB="#004040"
|
||||||
COLOR_SF="#EEEEEE"
|
COLOR_SF="#EEEEEE"
|
||||||
@ -21,15 +21,15 @@ COLOR_SF="#EEEEEE"
|
|||||||
# TERMINALS
|
# TERMINALS
|
||||||
#
|
#
|
||||||
|
|
||||||
STERM="st -f JetBrainsMonoNerdFont:pixelsize=18"
|
STERM="st -f TamzenForPowerline:pixelsize=16"
|
||||||
BTERM="st -f JetBrainsMonoNerdFont:pixelsize=26"
|
BTERM="st -f JetBrainsMonoNerdFont:pixelsize=18"
|
||||||
HTERM="st -f JetBrainsMonoNerdFont:pixelsize=32"
|
HTERM="st -f JetBrainsMonoNerdFont:pixelsize=22"
|
||||||
|
|
||||||
#
|
#
|
||||||
# DMENU
|
# DMENU
|
||||||
#
|
#
|
||||||
|
|
||||||
DMENUOPTS="-fn JetBrainsMonoNerdFont:pixelsize=18 \
|
DMENUOPTS="-fn TamzenForPowerline:pixelsize=16 \
|
||||||
-nb $COLOR_NB \
|
-nb $COLOR_NB \
|
||||||
-nf $COLOR_NF \
|
-nf $COLOR_NF \
|
||||||
-sf $COLOR_SF \
|
-sf $COLOR_SF \
|
||||||
@ -46,11 +46,16 @@ DMENURUN_CMD="dmenu_run $DMENUOPTS"
|
|||||||
# NOTIFY
|
# NOTIFY
|
||||||
#
|
#
|
||||||
|
|
||||||
|
#NOTIFY_CMD() {
|
||||||
|
# twmnc -i "${VAR##*/}" \
|
||||||
|
# -d 5000 \
|
||||||
|
# -t "$(date +%H:%M)" \
|
||||||
|
# -c "$@"
|
||||||
|
#}
|
||||||
NOTIFY_CMD() {
|
NOTIFY_CMD() {
|
||||||
twmnc -i "${VAR##*/}" \
|
echo "$@" \
|
||||||
-d 5000 \
|
| xnotify \
|
||||||
-t "$(date +%H:%M)" \
|
$NOTIFY_CMD_OPTS &
|
||||||
-c "$@"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
. $HOME/.bin/_config
|
. $HOME/.bin/_config
|
||||||
|
set -x
|
||||||
|
|
||||||
shopt -s nullglob globstar
|
shopt -s nullglob globstar
|
||||||
|
|
||||||
@ -14,16 +15,38 @@ password=$(printf '%s\n' "${password_files[@]}" | $DMENU_CMD -p Password)
|
|||||||
# read password file
|
# read password file
|
||||||
password_out=$(pass "$password" 2> /dev/null)
|
password_out=$(pass "$password" 2> /dev/null)
|
||||||
|
|
||||||
# copy password line
|
|
||||||
printf "%s" "$password_out" | head -1 | xclip -r
|
|
||||||
|
|
||||||
# extract additional information
|
copy_password() {
|
||||||
password_info=$(printf "%s" "$password_out" | grep -Ei -m 1 'login|user|email')
|
# copy password line
|
||||||
#url_info=$(printf "%s" "$password_out" | grep -Ei '^url' | awk -F"[ :]*" '{ $1=""; print $0 }' )
|
printf "%s" "$password_out" | head -1 | xclip -r
|
||||||
|
|
||||||
# show desktop notification
|
# extract additional information
|
||||||
if [[ -n $password_info ]]; then
|
password_info=$(printf "%s" "$password_out" | grep -Ei -m 1 'login|user|email')
|
||||||
$NOTIFY_CMD "$(printf '%s' "$password_info")"
|
#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
|
else
|
||||||
$NOTIFY_CMD "No username provided."
|
copy_password
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -3,5 +3,5 @@
|
|||||||
. /home/sdk/.bin/_config
|
. /home/sdk/.bin/_config
|
||||||
|
|
||||||
MSG="Drink some water!"
|
MSG="Drink some water!"
|
||||||
|
NOTIFY_CMD_OPTS="-s 5"
|
||||||
NOTIFY_CMD "$MSG"
|
NOTIFY_CMD "$MSG"
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ fi
|
|||||||
#
|
#
|
||||||
if [ -d ~/ytdl ]
|
if [ -d ~/ytdl ]
|
||||||
then
|
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
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
20
.bin/nnn.sh
20
.bin/nnn.sh
@ -24,9 +24,9 @@ fi
|
|||||||
if print "$f" | egrep -qi '^http[s]{0,1}://';
|
if print "$f" | egrep -qi '^http[s]{0,1}://';
|
||||||
then
|
then
|
||||||
case "$f" in
|
case "$f" in
|
||||||
*.mkv) tmpv "$f"; ;;
|
*.mkv) mpv "$f"; ;;
|
||||||
*.mp4) tmpv "$f"; ;;
|
*.mp4) mpv "$f"; ;;
|
||||||
*.webm) tmpv "$f"; ;;
|
*.webm) mpv "$f"; ;;
|
||||||
*) sacc "$f"; ;;
|
*) sacc "$f"; ;;
|
||||||
esac
|
esac
|
||||||
${BROWSER:=vimb} "$f"
|
${BROWSER:=vimb} "$f"
|
||||||
@ -36,9 +36,9 @@ fi
|
|||||||
if print "$f" | egrep -qi '^gopher://';
|
if print "$f" | egrep -qi '^gopher://';
|
||||||
then
|
then
|
||||||
case "$f" in
|
case "$f" in
|
||||||
*.mkv) tmpv "$f"; ;;
|
*.mkv) mpv "$f"; ;;
|
||||||
*.mp4) tmpv "$f"; ;;
|
*.mp4) mpv "$f"; ;;
|
||||||
*.webm) tmpv "$f"; ;;
|
*.webm) mpv "$f"; ;;
|
||||||
*) sacc "$f"; ;;
|
*) sacc "$f"; ;;
|
||||||
esac
|
esac
|
||||||
exit 0
|
exit 0
|
||||||
@ -64,8 +64,8 @@ case "$EXT" in
|
|||||||
docx) libreoffice "$f"; ;;
|
docx) libreoffice "$f"; ;;
|
||||||
xlsx) libreoffice "$f"; ;;
|
xlsx) libreoffice "$f"; ;;
|
||||||
txt) vim "$f"; ;;
|
txt) vim "$f"; ;;
|
||||||
m2ts) tmpv "$f"; ;;
|
m2ts) mpv "$f"; ;;
|
||||||
flv) tmpv "$f"; ;;
|
flv) mpv "$f"; ;;
|
||||||
mp3) aplay "$f"; ;;
|
mp3) aplay "$f"; ;;
|
||||||
aiff) mpva "$f"; ;;
|
aiff) mpva "$f"; ;;
|
||||||
sid) sidplay "$f"; ;;
|
sid) sidplay "$f"; ;;
|
||||||
@ -93,8 +93,8 @@ case "$(file -ib "$f")" in
|
|||||||
audio/midi) timidity "$f"; ;;
|
audio/midi) timidity "$f"; ;;
|
||||||
# with wildcards
|
# with wildcards
|
||||||
audio/*) aplay "$f"; ;;
|
audio/*) aplay "$f"; ;;
|
||||||
video/*) tmpv "$f"; ;;
|
video/*) mpv "$f"; ;;
|
||||||
image/webp) tmpv "$f"; ;;
|
image/webp) mpv "$f"; ;;
|
||||||
image/*) nsxiv -N floating -g 1280x720+300+180 -ab "$f"; ;;
|
image/*) nsxiv -N floating -g 1280x720+300+180 -ab "$f"; ;;
|
||||||
# can't handle
|
# can't handle
|
||||||
application/octet-stream) print "Sorry, can't handle: $f"; ;;
|
application/octet-stream) print "Sorry, can't handle: $f"; ;;
|
||||||
|
@ -10,15 +10,15 @@
|
|||||||
# | WINDOW DECORATION
|
# | WINDOW DECORATION
|
||||||
# +--------------------------------------------------
|
# +--------------------------------------------------
|
||||||
|
|
||||||
border_width = 1
|
border_width = 2
|
||||||
color_focus = rgb:00/80/80
|
color_focus = rgb:00/80/80
|
||||||
color_focus_maximized = rgb:00/80/80
|
color_focus_maximized = rgb:00/80/80
|
||||||
color_focus_maximized_free = rgb:00/80/80
|
color_focus_maximized_free = rgb:00/80/80
|
||||||
color_focus_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
|
color_unfocus_free = rgb:55/35/00
|
||||||
tile_gap = 10
|
tile_gap = -2
|
||||||
region_padding = 10
|
region_padding = 0
|
||||||
disable_border = 0
|
disable_border = 0
|
||||||
maximize_hide_bar = 0
|
maximize_hide_bar = 0
|
||||||
|
|
||||||
@ -26,20 +26,21 @@ maximize_hide_bar = 0
|
|||||||
# | BAR SETTINGS
|
# | BAR SETTINGS
|
||||||
# +--------------------------------------------------
|
# +--------------------------------------------------
|
||||||
bar_enabled = 1
|
bar_enabled = 1
|
||||||
bar_border_width = 1
|
bar_border_width = 2
|
||||||
bar_border = rgb:00/20/20
|
bar_border = rgb:00/00/00
|
||||||
bar_border_unfocus = rgb:00/20/20
|
bar_border_unfocus = rgb:00/10/10
|
||||||
bar_border_free = rgb:00/20/20
|
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 = 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/20/20,rgb:00/60/60,rgb:00/20/20,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_color_selected = rgb:18/24/28
|
||||||
|
|
||||||
bar_font_color = rgb:99/99/99
|
bar_font_color = rgb:CC/CC/CC
|
||||||
bar_font_color_free = rgb:99/99/99
|
bar_font_color_free = rgb:CC/CC/CC
|
||||||
bar_font_color_selected = rgb:ff/ff/ff
|
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 = cbar
|
||||||
bar_action_expand = 0
|
bar_action_expand = 0
|
||||||
bar_at_bottom = 0
|
bar_at_bottom = 0
|
||||||
@ -190,6 +191,12 @@ bind[xconsole] = MOD+Shift+minus
|
|||||||
program[screenshot_wind] = sshot
|
program[screenshot_wind] = sshot
|
||||||
bind[screenshot_wind] = Print
|
bind[screenshot_wind] = Print
|
||||||
|
|
||||||
|
program[xcolor] = xcolorcopy
|
||||||
|
bind[xcolor] = MOD+Print
|
||||||
|
|
||||||
|
program[xmenu] = myxmenu
|
||||||
|
bind[xmenu] = Super_L
|
||||||
|
|
||||||
program[lock] = /usr/bin/false
|
program[lock] = /usr/bin/false
|
||||||
|
|
||||||
autorun = ws[10]:xcons
|
autorun = ws[10]:xcons
|
||||||
@ -215,7 +222,7 @@ bind[focus_next] = MOD+Down
|
|||||||
bind[focus_prev] = MOD+Up
|
bind[focus_prev] = MOD+Up
|
||||||
bind[focus_prev] = MOD+Shift+Tab
|
bind[focus_prev] = MOD+Shift+Tab
|
||||||
bind[focus_urgent] = MOD+u
|
bind[focus_urgent] = MOD+u
|
||||||
bind[focus_free] = Super_L
|
#bind[focus_free] = Super_L
|
||||||
|
|
||||||
# ICONFIY / HIDE
|
# ICONFIY / HIDE
|
||||||
bind[iconify] = MOD+i
|
bind[iconify] = MOD+i
|
||||||
|
@ -5,7 +5,7 @@ background_color=#FF6A00
|
|||||||
# bounce=true
|
# bounce=true
|
||||||
# bounce_duration=1000
|
# bounce_duration=1000
|
||||||
font=JetBrainsMonoNerdFont
|
font=JetBrainsMonoNerdFont
|
||||||
font_size=20
|
font_size=15
|
||||||
font_variant=medium
|
font_variant=medium
|
||||||
foreground_color=#121212
|
foreground_color=#121212
|
||||||
height=26
|
height=26
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
asterisk = "*";
|
asterisk = "*";
|
||||||
prompt = "";
|
prompt = "";
|
||||||
font = "JetBrainsMonoNerdFont:pixelsize=20";
|
font = "JetBrainsMonoNerdFont:pixelsize=15";
|
||||||
bottom = false;
|
bottom = false;
|
||||||
|
|
||||||
prompt_fg = "#FFFFFF";
|
prompt_fg = "#FFFFFF";
|
||||||
|
10
.kshrc
10
.kshrc
@ -234,6 +234,16 @@ pj() {
|
|||||||
|| cd $LIST
|
|| cd $LIST
|
||||||
}
|
}
|
||||||
|
|
||||||
|
obsd-full-system-update() {(
|
||||||
|
set -x
|
||||||
|
cvs-update-all
|
||||||
|
set -e
|
||||||
|
obsdmake kernel
|
||||||
|
obsdmake base
|
||||||
|
obsdmake xenocara
|
||||||
|
doas pkg_add -u
|
||||||
|
)}
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# REMIND
|
# REMIND
|
||||||
########################################################################
|
########################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user