Update 2023-04-29 14:32 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id 2023-04-29 14:32:43 +02:00
parent 16e9a48677
commit d7840bc511
4 changed files with 50 additions and 16 deletions

39
.bin/setvideo Executable file
View File

@ -0,0 +1,39 @@
#!/bin/ksh
# set the video device via argument (if you put something stupid her, so be it...)
[ ! -z $1 ] && doas ln -sf /dev/video$1 /dev/video
# we need it a few times, and caching is faster
DUMP=$(dmesg)
# save the current active video device
_cur=$(ls -l /dev/video | sed 's/.*\(.$\)/\1/')
# starting from dev 4, you need to cd /dev && sh MAKEDEV videoX
for i in 0 1 2 3 4 5 6
do
# find video attach and detach lines
_input="$(echo "$DUMP" | grep -E "^video$i\ at.*|^video$i detached" | tail -n 1)"
# if the last match is a detached line, stop here
echo "$_input" | grep -q "detached" && continue
# take the number from videoX, then grep for what's attached to find
# the last description for this device (usb devices may change order
# during runtime)
_type=$(echo "$_input" | cut -d" " -f3)
_number=$(echo "$_input" | cut -d" " -f1 | sed 's/[a-z]//g')
_desc=$(echo "$DUMP" | grep -E "^$_type at.*" | tail -1 | cut -d'"' -f2)
# Once we walked to the first non-existing device, we stop.
[ -z $_number ] && exit 0
# Show the device list and mark the current one
if [ $_cur -eq $_number ]
then
echo "> $_number: $_desc"
else
echo " $_number: $_desc"
fi
done

View File

@ -19,3 +19,4 @@ xinput set-prop /dev/wsmouse "Device Accel Constant Deceleration" 0.4
xinput set-prop /dev/wsmouse "Device Accel Adaptive Deceleration" 1.2
fi
hsetroot -fill /home/sdk/Documents/bg-grey-with-puffy.png

View File

@ -1,5 +1,5 @@
de.newusers.infos: 1-18402,18404-18643,18651
de.newusers.questions: 1-8533
de.newusers.infos: 1-18655,18658-18667
de.newusers.questions: 1-8533,8538-8546,8550-8564,8566-8568,8570-8584,8587-8652,8654-8748,8751-8762,8765-8824,8832-8901,8904-8906,8911-8913,8917-8928,8932-8942,8944-8973,8979,8982-8987,8994-9019,9021-9022,9024-9074,9076-9096,9098-9100,9103-9123,9127-9183,9185-9186,9189-9219
de.test: 1-558319
de.admin.news.announce: 1-2743,2747,2750-2753,2758-2759,2761,2763-2764,2766-2767,2773-2776,2782,2784-2787,2794-2797,2801,2805,2808-2811,2813,2818-2819,2821-2822,2828-2829,2836,2839,2841,2844,2848-2849,2851,2854,2861-2862,2868-2869,2871-2873,2875-2876,2878,2880-2884,2886,2888-2890,2892-2896,2898-2901,2903,2906,2909-2911,2914-2916,2924-2926,2929-2931,2935,2937,2940-2941,2944,2948-2949,2954-2955,2957,2963,2968,2971,2974-2975,2981,2986-2987,2993,2995,2998,3005,3013,3021-3022,3033,3044,3050,3053,3060,3064,3068,3070,3076,3078-3079,3081,3084,3086-3092,3094,3096-3097,3099,3103,3106-3107,3109-3111,3115-3116,3118-3120,3122-3125,3127-3130,3133,3137,3139,3142-3143,3146-3150,3152-3155,3157-3159,3161-3162,3164,3167
news.announce.newusers: 1-488
@ -7,7 +7,7 @@ news.newusers.questions: 1-5055
misc.test: 1-561161
misc.test.moderated: 1-211
news.announce.newgroups: 1-2204
news.answers: 1-51343
news.answers: 1-51343,54563,54722
control! 1-647
control.cancel! 1-55253700
control.checkgroups! 1-1486
@ -24,7 +24,7 @@ de.admin.net-abuse.mail! 1-200518
de.admin.net-abuse.misc! 1-1411
de.admin.net-abuse.news! 1-15597
de.admin.news.groups! 1-90970,91708,91792,91920,92002
de.admin.news.misc! 1-11774
de.admin.news.misc! 1-11774,12577
de.admin.news.regeln! 1-21903
de.alt.0d! 1-1907
de.alt.admin! 1-24205,24812
@ -48,7 +48,7 @@ de.alt.games.schach! 1-4125
de.alt.gruppenkasper! 1-304547
de.alt.hoerfunk! 1-5756
de.alt.mud! 1-2182
de.alt.music.jazz: 1-1547,1551
de.alt.music.jazz: 1-1548,1550-1551
de.alt.music.metal! 1-30547
de.alt.naturheilkunde! 1-24946
de.alt.netdigest! 1-15343
@ -66,7 +66,7 @@ de.alt.technik.misc! 1-1822
de.alt.technik.waffen! 1-9499
de.alt.test! 1-27832
de.alt.ufo! 1-16143
de.answers! 1-11871
de.answers! 1-11871,13997,14076
de.comm.abuse! 1-5990
de.comm.chatsystems! 1-1135
de.comm.funk.cb! 1-2455
@ -91,7 +91,7 @@ de.comm.provider.metronet! 1-12937
de.comm.provider.misc! 1-16602
de.comm.provider.status! 1-2874
de.comm.provider.t-online! 1-21146
de.comm.provider.usenet! 1-13495
de.comm.provider.usenet! 1-13495,14504
de.comm.software.40tude-dialog! 1-39925
de.comm.software.browser.internet-explorer! 1-2281
de.comm.software.browser.misc! 1-2573
@ -104,9 +104,9 @@ de.comm.software.mozilla.browser! 1-99719
de.comm.software.mozilla.mailnews! 1-99044
de.comm.software.mozilla.misc! 1-23622
de.comm.software.mozilla.nightly-builds! 1-24072
de.comm.software.newsreader! 1-22744
de.comm.software.newsreader! 1-22744,24788
de.comm.software.newsserver! 1-4195
de.comm.software.outlook-express! 1-6625
de.comm.software.outlook-express! 1-6625,6845
de.comm.software.webserver! 1-4819
de.comm.technik.dsl! 1-64287
de.comm.technik.isdn! 1-5298
@ -134,7 +134,7 @@ de.comp.hardware.monitore! 1-6768
de.comp.hardware.netzwerke.misc! 1-35386
de.comp.hardware.netzwerke.wireless! 1-39440
de.comp.hardware.scanner! 1-3283
de.comp.lang.c: 1-17026,17028-17034,17038-17039,17042,17044,17046,17048-17051,17053-17059,17061,17063,17071,17077,17082,17084,17087-17088,17141,17143-17144,17161,17190,17199-17200,17232,17239,17247,17253,17503,17510-17511,17516-17518,17534-17536,17541,17552-17553,17555-17560,17562-17564,17568-17571,17579-17582,17585,17594,17596-17598,17609-17610,17612,17619,17627-17630,17635-17641,17647,17650-17664,17674-17675,17690,17704,17712,17719-17721,17735-17736,17775-17776,17881,17953,18555,18711,18987,19295-19299,19303,19524,19973,20115
de.comp.lang.c: 1-17072,17074-17077,17082,17084,17086-17088,17090-17096,17103,17108,17115,17123,17125,17141,17143-17144,17161,17190,17199-17200,17232,17239,17247,17253,17503,17510-17511,17516-17518,17534-17536,17541,17552-17553,17555-17560,17562-17564,17568-17571,17579-17582,17585,17594,17596-17598,17609-17610,17612,17619,17627-17630,17635-17641,17647,17650-17664,17674-17675,17690,17704,17712,17719-17721,17735-17736,17775-17776,17881,17953,18555,18711,18987,19295-19299,19303,19524,19973,20115,20918
de.comp.lang.delphi.misc! 1-49786
de.comp.lang.delphi.non-tech! 1-4359
de.comp.lang.forth! 1-1782

6
.kshrc
View File

@ -292,12 +292,6 @@ l() {
# cam
alias camformats="ffplay -f v4l2 -list_formats all -i /dev/video"
alias cam="ffplay -loglevel quiet -f v4l2 -input_format mjpeg -video_size 640x480 -i /dev/video"
setcam() {
_dev=$1
echo ln -sf /dev/video${_dev:=0} /dev/video
doas ln -sf /dev/video${_dev:=0} /dev/video
}
########################################################################
# EMAIL HANDLING