diff options
-rw-r--r-- | .config/i3/autostart##template | 6 | ||||
-rw-r--r-- | .config/ncmpcpp/config | 1 | ||||
-rwxr-xr-x | .local/share/bin/cc1080p30 | 2 | ||||
-rwxr-xr-x | .local/share/bin/cc720p60 | 2 | ||||
-rwxr-xr-x | .local/share/bin/ccpreview | 10 |
5 files changed, 15 insertions, 6 deletions
diff --git a/.config/i3/autostart##template b/.config/i3/autostart##template index 5c68f89..e991bcc 100644 --- a/.config/i3/autostart##template +++ b/.config/i3/autostart##template @@ -10,7 +10,6 @@ zsh -c "rwall" & picom -b xbanish & dunst & -flashfocus & autocutsel & fcitx5 -d zsh -c "xbindkeys -f ~/.config/xbindkeys/main" @@ -25,7 +24,10 @@ nicotine & # bw unlock <password> --raw | keyctl padd user bw_session @u sh ~/.config/i3/unlock_bitwarden & -# auto start lazy script +# auto start lazy script after everything else sleep 2 [[ -f ~/do.sh ]] && source ~/do.sh +# flashfocus doesn't work when starting early(?) +sleep 9 +flashfocus & diff --git a/.config/ncmpcpp/config b/.config/ncmpcpp/config index e5d5db6..81aa4e1 100644 --- a/.config/ncmpcpp/config +++ b/.config/ncmpcpp/config @@ -5,6 +5,7 @@ mpd_music_dir = "/mnt/e/mpd/music" mpd_connection_timeout = "5" mpd_crossfade_time = "1" ncmpcpp_directory="~/.config/ncmpcpp" +external_editor = "$EDITOR" progressbar_look = "-> " progressbar_elapsed_color = "cyan" diff --git a/.local/share/bin/cc1080p30 b/.local/share/bin/cc1080p30 index 2682911..6619a17 100755 --- a/.local/share/bin/cc1080p30 +++ b/.local/share/bin/cc1080p30 @@ -1,2 +1,2 @@ #!/bin/sh -ccpreview 1920x1080 30 +ccpreview 1920 1080 30 diff --git a/.local/share/bin/cc720p60 b/.local/share/bin/cc720p60 index 01e208a..c78fe6d 100755 --- a/.local/share/bin/cc720p60 +++ b/.local/share/bin/cc720p60 @@ -1,2 +1,2 @@ #!/bin/sh -ccpreview 1280x720 60 +ccpreview 1280 720 60 diff --git a/.local/share/bin/ccpreview b/.local/share/bin/ccpreview index 1e64593..6452e34 100755 --- a/.local/share/bin/ccpreview +++ b/.local/share/bin/ccpreview @@ -2,8 +2,10 @@ caffeine -FRAMERATE="$2" -RESOLUTION="$1" +WIDTH="$1" +HEIGHT="$2" +FRAMERATE="$3" +RESOLUTION="${WIDTH}x${HEIGHT}" DEVICE="/dev/$(readlink /dev/v4l/by-id/usb-MACROSILICON_USB_Video-* | head -n1 | cut -c7-)" CAPTURE_FL="$(pw-link -oI | grep 'usb-MACROSILICON_USB_Video-.*:capture_AUX0' | cut -f3 -d' ')" @@ -18,6 +20,10 @@ echo "link $CAPTURE_FL -> $OUTPUT_FL" pw-link "$CAPTURE_FL" "$OUTPUT_FL" pw-link "$CAPTURE_FR" "$OUTPUT_FR" +v4l2-ctl -d "$DEVICE" --set-parm "$FRAMERATE" +v4l2-ctl -d "$DEVICE" --set-fmt-video "width=$WIDTH,height=$HEIGHT,pixelformat=MJPG" +v4l2-ctl -d "$DEVICE" --set-ctrl "brightness=0,contrast=128,saturation=128,hue=0" + mpv --demuxer-lavf-format=video4linux2 \ --demuxer-lavf-o-set=input_format=mjpeg,framerate="$FRAMERATE",resolution="$RESOLUTION" \ --cache=no \ |