Compare commits

..

2 Commits

Author SHA1 Message Date
15d55786f3 update mpv config 2026-02-01 15:06:45 -08:00
e9e6dfa2d3 update 2026-02-01 12:20:52 -08:00
11 changed files with 108 additions and 24 deletions

View File

@@ -225,7 +225,8 @@ ctrl+B ignore # script-binding mpvacious-overwrite-selected-note
ctrl+m ignore # script-binding mpvacious-update-last-note
ctrl+M ignore # script-binding mpvacious-overwrite-last-note
G script-binding mpvacious-quick-card-menu-open
alt+g script-binding mpvacious-quick-card-sel-menu-open
alt+g ignore
alt+G script-binding mpvacious-quick-card-sel-menu-open
ctrl+c script-binding mpvacious-copy-primary-sub-to-clipboard
ctrl+C script-binding mpvacious-copy-secondary-sub-to-clipboard
ctrl+= script-binding mpvacious-autocopy-toggle

View File

@@ -25,7 +25,7 @@ sub-fix-timing=yes
sub-ass-override=scale
sub-gauss=1.0
sub-gray=yes
sub-pos=100
sub-pos=95
# --- Audio chain ---
volume=75
@@ -111,6 +111,8 @@ demuxer-max-back-bytes=200MiB # Keep recent data handy for quick reverse seeks
cache-secs=30
demuxer-readahead-secs=30
msg-level=subs2srs=warn
[anime]
profile-desc="Anime upscaling with ArtCNN"
glsl-shaders="~~/shaders/ArtCNN_C4F32.glsl"

View File

@@ -46,6 +46,9 @@ menu_font_name=Noto Serif CJK JP
# Change this if you have changed webBindAddress in AnkiConnect's settings.
ankiconnect_url=127.0.0.1:8765
# AnkiConnect server api key (optional)
#ankiconnect_api_key=
##
## Toggleables.
## Possible values: `yes` or `no`.
@@ -330,3 +333,40 @@ ffmpeg_audio_args=-af loudnorm=I=-16:TP=-1.5:LRA=11:dual_mono=true
mpv_audio_args=--af-append=loudnorm=I=-16:TP=-1.5:LRA=11:dual_mono=true
#mpv_audio_args=
#mpv_audio_args=--af-append=silenceremove=1:0:-50dB
##
## Custom Sub Filter
## Place a `subs2srs_sub_filter.lua` file
## in the `~/.config/mpv/subs2srs_sub_filter` directory.
## The custom script must return a table
## that includes either of a `preprocess` or a `trim` function (or both).
##
## - `preprocess(text)`: Executes before trimming/cleaning.
## - `trim(text)`: Replaces the built-in trimming logic.
##
# Enable custom sub preprocessing by default (yes, no)
custom_sub_filter_enabled=no
# Notification prefix for toggle
custom_sub_filter_notification=Custom Sub Filter
# Use a custom trim instead of the built in one (yes, no)
use_custom_trim=no
##
## New note check timer
##
# Enable the check note timer feature.
# If set to `yes`, mpvacious will periodically check for new notes in Anki
# and automatically update them with media if they match the configured note type
# I.e., you create a note with GoldenDict, Rikaitan, etc.,
# then mpvacious updates the note and adds audio and image automatically.
enable_new_note_timer=yes
# Interval in seconds for checking for new notes.
# This setting controls how often mpvacious checks for new notes in Anki.
# Only used when enable_new_note_timer is set to `yes`
new_note_timer_interval_seconds=5

View File

@@ -1 +1 @@
../submodules/mpv-youtube-queue/mpv-youtube-queue.lua
../../../projects/lua/mpv-youtube-queue/mpv-youtube-queue.lua

View File

@@ -1,12 +1,35 @@
@import "catppuccin-macchiato.rasi"
configuration {
show-icons: true;
icon-theme: "Dracula";
dpi: 144;
}
// @import "catppuccin-latte"
// @import "catppuccin-frappe"
// @import "catppuccin-macchiato"
// @import "catppuccin-mocha"
* {
rosewater: #f4dbd6;
flamingo: #f0c6c6;
pink: #f5bde6;
mauve: #c6a0f6;
red: #ed8796;
maroon: #ee99a0;
peach: #f5a97f;
yellow: #eed49f;
green: #a6da95;
teal: #8bd5ca;
sky: #91d7e3;
sapphire: #7dc4e4;
blue: #8aadf4;
lavender: #b7bdf8;
text: #cad3f5;
subtext1: #b8c0e0;
subtext0: #a5adcb;
overlay2: #939ab7;
overlay1: #8087a2;
overlay0: #6e738d;
surface2: #5b6078;
surface1: #494d64;
surface0: #363a4f;
base: #24273a;
mantle: #1e2030;
crust: #181926;
selected-active-foreground: @background;
lightfg: @text;
separatorcolor: @foreground;
@@ -35,6 +58,11 @@ configuration {
alternate-active-foreground: @blue;
}
configuration {
show-icons: true;
icon-theme: "Dracula";
dpi: 144;
}
element {
padding: 1px ;
cursor: pointer;
@@ -90,12 +118,6 @@ element-icon {
text-color: inherit;
}
window {
border: 4;
padding: 12px;
border-radius: 12px;
anchor: center;
location: center;
padding: 5;
background-color: @background;
border: 1;
@@ -180,4 +202,3 @@ textbox-prompt-colon {
str: ":";
text-color: inherit;
}

View File

@@ -30,6 +30,7 @@ configuration {
show-icons: true;
icon-theme: "Dracula";
dpi: 144;
modes: "window,run,ssh,drun,filebrowser";
}
#window {

View File

@@ -2,7 +2,7 @@
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
*
* Rofi Theme File
* Rofi Version: 1.7.3
**/
@@ -49,7 +49,7 @@ mainbox {
border-radius: 0px 0px 0px 0px;
border-color: @selected;
background-color: transparent;
children: [ "inputbar", "listview" ];
children: [ "inputbar", "listview-split" ];
}
/*****----- Inputbar -----*****/
@@ -99,7 +99,7 @@ listview {
reverse: false;
fixed-height: true;
fixed-columns: true;
spacing: 0px;
margin: 0px;
padding: 0px;
@@ -110,6 +110,18 @@ listview {
text-color: @foreground;
cursor: "default";
}
listview-split {
orientation: horizontal;
children: [listview, icon-current-entry];
spacing: 1em;
background-color: @background;
}
icon-current-entry {
expand: true;
size: 40%;
background-color: transparent;
border-radius: 8px;
}
scrollbar {
handle-width: 5px ;
handle-color: @selected;
@@ -173,3 +185,10 @@ textbox {
horizontal-align: 0.0;
highlight: none;
}
scrollbar {
width: 4px;
handle-color: @surface2;
handle-width: 4px;
background-color: @surface0;
}

View File

@@ -4,7 +4,7 @@ set -Eeuo pipefail
THEME="$HOME/.config/rofi/launchers/type-3/style-4.rasi"
DIR="$HOME/Pictures/wallpapers/favorites"
SELECTED_WALL=$(cd "$DIR" && for a in *.jpg *.png; do echo -en "$a\0icon\x1f$a\n"; done | rofi -dmenu -i -no-custom -theme "$THEME" -p "Select a wallpaper" -theme-str 'configuration {icon-size: 128; dpi: 96;} window {width: 45%; height: 45%;}')
SELECTED_WALL=$(cd "$DIR" && for a in *.jpg *.png; do echo -en "$a\0icon\x1f$a\n"; done | rofi -dmenu -i -no-custom -theme "$THEME" -p "Select a wallpaper" -theme-str 'configuration {icon-size: 256; dpi: 96;} window {width: 75%; height: 69%;} listview {rows: 5; lines: 7;}')
PTH="$(printf "%s" "$DIR/$SELECTED_WALL" | tr -s '/')"
hyprctl hyprpaper wallpaper "DP-1, $PTH"
notify-send -a "rofi-wallpaper" "Wallpaper set to" -i "$PTH" "$PTH"