aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/mpd/mpd.conf3
-rw-r--r--.config/polybar/config.ini147
-rwxr-xr-x.local/share/bin/ccpreview4
3 files changed, 5 insertions, 149 deletions
diff --git a/.config/mpd/mpd.conf b/.config/mpd/mpd.conf
index 42f8e22..3d96a7f 100644
--- a/.config/mpd/mpd.conf
+++ b/.config/mpd/mpd.conf
@@ -16,6 +16,9 @@ group "users"
default_permissions "read,add,control,admin"
+replaygain "track"
+replaygain_preamp "0"
+
# input {
# plugin "curl"
# }
diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini
deleted file mode 100644
index e1b9602..0000000
--- a/.config/polybar/config.ini
+++ /dev/null
@@ -1,147 +0,0 @@
-[barsettings]
-padding = 1.9
-
-include-file = ./colors
-
-[global/wm]
-margin-bottom = 50
-margin-top = 0
-
-[bar/main]
-
-tray-position = right
-tray-padding = ${barsettings.padding}
-tray-background = ${color.bg}
-tray-margin = 8
-
-monitor =
-monitor-fallback =
-monitor-strict = false
-
-override-redirect = false
-
-bottom = false
-fixed-center = true
-
-width = 100%
-height = 20
-offset-x = 0
-offset-y = 0
-
-background = ${color.bg}
-foreground = ${color.fg}
-
-radius-top = 0.0
-radius-bottom = 0.0
-
-padding = 2
-
-module-margin-left = 0
-module-margin-right = 0
-
-font-0 = "JetBrains Mono Nerd Font:pixelsize=8:weight=regular:size=0;2"
-font-1 = "JetBrains Mono Nerd Font:pixelsize=8:weight=bold:size=0;2"
-font-2 = "Noto Sans JP:pixelsize=8:weight=medium:size=0;2"
-font-3 = "Noto Sans KR:pixelsize=8:weight=medium:size=0;2"
-
-modules-left = time date
-modules-center = weather mpd
-modules-right = keyboard volume whoami
-
-separator =
-
-spacing = 0
-
-dim-value = 1.0
-
-wm-name =
-
-locale = ja_JP.UTF-8
-
-wm-restack = i3
-
-enable-ipc = true
-
-click-left =
-click-middle =
-click-right =
-scroll-up =
-scroll-down =
-double-click-left =
-double-click-middle =
-double-click-right =
-
-cursor-click =
-cursor-scroll =
-
-[settings]
-throttle-output = 5
-throttle-output-for = 10
-
-screenchange-reload = false
-
-compositing-background = source
-compositing-foreground = over
-compositing-overline = over
-compositing-underline = over
-compositing-border = over
-
-format-foreground = ${color.fg}
-format-background = ${color.bg}
-format-padding = ${barsettings.padding}
-
-pseudo-transparency = false
-
-[module/volume]
-type = internal/pulseaudio
-format-volume = <label-volume>
-label-volume = %percentage%%
-label-muted = "muted"
-
-[module/date]
-type = internal/date
-interval = 1.0
-time = %m月%d日 %A
-format = <label>
-label = %time%
-
-[module/time]
-type = internal/date
-interval = 1.0
-time = %{T2}%H時%M分%{T-}
-format = <label>
-label = %time%
-
-[module/weather]
-type = custom/script
-exec = ~/.config/polybar-forecast/target/release/polybar-forecast
-interval = 120
-exec-if = ping openweathermap.org -c 1
-label-font = 2
-
-[module/whoami]
-type = custom/script
-exec = echo "%{T2}$(id -u -n)%{T-}@%{T2}$(uname -n)%{T-}"
-interval = 9999999
-label-font = 2
-
-[module/keyboard]
-type = custom/script
-exec = ~/.local/share/bin/kbindicator
-interval = 3
-label-font = 1
-
-[module/mpd]
-type = internal/mpd
-format-online = <toggle> <label-song>
-format-offline = [mpd offline]
-format-stopped =
-icon-play = 
-icon-pause = 
-label-song = %{T2}%artist%%{T-}: %title%
-label-song-maxlen = 50
-label-song-ellipsis = true
-
-# vim:ft=dosini
-
-; vim:ft=dosini
diff --git a/.local/share/bin/ccpreview b/.local/share/bin/ccpreview
index 7ad19b4..1e64593 100755
--- a/.local/share/bin/ccpreview
+++ b/.local/share/bin/ccpreview
@@ -6,8 +6,8 @@ FRAMERATE="$2"
RESOLUTION="$1"
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_FL' | cut -f3 -d' ')"
-CAPTURE_FR="$(pw-link -oI | grep 'usb-MACROSILICON_USB_Video-.*:capture_FR' | cut -f3 -d' ')"
+CAPTURE_FL="$(pw-link -oI | grep 'usb-MACROSILICON_USB_Video-.*:capture_AUX0' | cut -f3 -d' ')"
+CAPTURE_FR="$(pw-link -oI | grep 'usb-MACROSILICON_USB_Video-.*:capture_AUX1' | cut -f3 -d' ')"
DEFAULT_SINK_ALIAS="$(pw-metadata 0 default.audio.sink | grep -Po "value:'(.*?)'" | head -c-2 | cut -c8- | jq --raw-output .name)"
OUTPUT_FL="$(pw-link -iI | grep "$DEFAULT_SINK_ALIAS:playback_FL" | cut -f3 -d' ')"
OUTPUT_FR="$(pw-link -iI | grep "$DEFAULT_SINK_ALIAS:playback_FR" | cut -f3 -d' ')"