diff --git a/.bash_profile b/.bash_profile index 04d8650..2dcabf4 100644 --- a/.bash_profile +++ b/.bash_profile @@ -20,7 +20,7 @@ eval $(ssh-agent -s) if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then export GTK2_RC_FILES="$HOME/.gtkrc-2.0" export QT_QPA_PLATFORMTHEME=qt5ct - export BROWSER="systemd-run --user --scope -p MemoryMax=2G -p MemorySwapMax=3G firefox" + export BROWSER="systemd-run --user --scope -p MemoryMax=3G -p MemorySwapMax=3G firefox" export TERMINAL=urxvtc export XDG_CURRENT_DESKTOP=i3 # exec sway -d 2> $HOME/.sway.log diff --git a/.config/htop/htoprc b/.config/htop/htoprc index 4106d78..4d99833 100644 --- a/.config/htop/htoprc +++ b/.config/htop/htoprc @@ -37,14 +37,14 @@ column_meter_modes_0=1 2 1 1 1 2 2 2 2 2 2 2 2 2 2 column_meters_1=RightCPUs2 Blank CPU Memory Swap Blank Uptime LoadAverage Tasks Blank DiskIO NetworkIO Blank PressureStallMemoryFull PressureStallIOFull column_meter_modes_1=1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 tree_view=0 -sort_key=111 +sort_key=119 tree_sort_key=0 sort_direction=-1 tree_sort_direction=1 tree_view_always_by_pid=0 all_branches_collapsed=0 screen:Main=PID USER PRIORITY NICE OOM M_VIRT M_RESIDENT M_SHARE M_SWAP IO_RATE STATE PERCENT_CPU PERCENT_MEM TIME Command -.sort_key=IO_RATE +.sort_key=M_SWAP .tree_sort_key=PID .tree_view=0 .tree_view_always_by_pid=0 diff --git a/.config/i3/config b/.config/i3/config index 40356f6..ffc3e14 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -126,8 +126,8 @@ bindsym Ctrl+dollar exec dunstctl history-pop bindsym $mod+Delete exec --no-startup-id $HOME/.local/bin/toggle-beep && pkill -SIGRTMIN+14 i3blocks # LEDs controls -bindsym --release Caps_Lock exec --no-startup-id pkill -SIGRTMIN+11 i3blocks -bindsym --release Num_Lock exec --no-startup-id pkill -SIGRTMIN+12 i3blocks +# bindsym --release Caps_Lock exec --no-startup-id pkill -SIGRTMIN+11 i3blocks +# bindsym --release Num_Lock exec --no-startup-id pkill -SIGRTMIN+12 i3blocks # Start Applications bindsym $mod+Ctrl+b exec urxvtc -e bmenu @@ -373,7 +373,7 @@ exec --no-startup-id steam-native -silent -noverifyfiles -language french #exec --no-startup-id SVPManager #exec --no-startup-id hp-systray -x exec --no-startup-id sleep 5 && play "$HOME/Musique/WELCOME BACK.wav" -# exec --no-startup-id variety +exec --no-startup-id variety # Start i3bar to display a workspace bar (plus the system information i3status if available) bar { diff --git a/.config/mpv/scripts/catchup.lua b/.config/mpv/scripts/catchup.lua new file mode 100644 index 0000000..91455f2 --- /dev/null +++ b/.config/mpv/scripts/catchup.lua @@ -0,0 +1,97 @@ +local mp = require 'mp' +local mp_options = require 'mp.options' + +local enabled = false +local catching_up = false + +local target = 1 +local brick = 0 + +function on_pause_change(name, value) + if not enabled then return end + + if value == true then + mp.osd_message("resetting catchup info on pausing", 1) + local catching_up = false + mp.set_property('speed', 1) + end +end + +function do_process_timer() + if not enabled then return end + + local pause = mp.get_property('pause') + local rem = tonumber(mp.get_property('time-remaining') or 0) + + if pause == 'no' then + local cspeed = tonumber(mp.get_property('speed') or 1) + + if rem > target + 0.8 + brick and not catching_up then + mp.osd_message("catchup", 1) + catching_up = true + mp.set_property('speed', 1.5) + elseif (rem < target - 0.1 + brick and catching_up) or rem < target - 0.4 + brick and cspeed > 1 then + mp.osd_message("done catching up", 1) + catching_up = false + mp.set_property('speed', 1) + end + + if catching_up and cspeed == 1 then + catching_up = false + end + end +end + +function on_keybind() + if enabled then + mp.osd_message("disabling catchup features", 3) + enabled = false + + if catching_up then + catching_up = false + mp.set_property('speed', 1) + end + else + mp.osd_message("enabling catchup features", 3) + enabled = true + end +end + +function increase_target() + target = target + 0.1 + mp.osd_message("target: " .. target, 1) +end + +function decrease_target() + target = target - 0.1 + mp.osd_message("target: " .. target, 1) +end + +function increase_brick() + brick = brick + 0.1 + mp.osd_message("brick: " .. brick, 1) +end + +function decrease_brick() + brick = brick - 0.1 + mp.osd_message("brick: " .. brick, 1) +end + +mp.observe_property("pause", "bool", on_pause_change) +mp.add_periodic_timer(0.07, do_process_timer) +mp.add_key_binding("Shift+c", "catchup-toggle", on_keybind) + +mp.add_key_binding("Ctrl+Down", "catchup-decrease-target", decrease_target) +mp.add_key_binding("Ctrl+Up", "catchup-increase-target", increase_target) +mp.add_key_binding("Ctrl+Left", "catchup-decrease-brick", decrease_brick) +mp.add_key_binding("Ctrl+Right", "catchup-increase-brick", increase_brick) + +local options = { + enable = false +} + +mp_options.read_options(options, "catchup") + +enabled = not options.enable +on_keybind() + diff --git a/.config/ncmpcpp/config b/.config/ncmpcpp/config index b7ce251..c5f9247 100644 --- a/.config/ncmpcpp/config +++ b/.config/ncmpcpp/config @@ -102,7 +102,7 @@ visualizer_in_stereo = yes # #visualizer_fps = 60 # -#visualizer_autoscale = yes +visualizer_autoscale = yes # #visualizer_look = ●▮ # @@ -129,7 +129,7 @@ visualizer_in_stereo = yes # #visualizer_spectrum_dft_size = 2 # -visualizer_spectrum_gain = 23 +#visualizer_spectrum_gain = 23 # ## Left-most frequency of visualizer in Hz, must be less than HZ MAX # @@ -494,7 +494,7 @@ clock_display_seconds = yes # #block_search_constraints_change_if_items_found = yes # -#mouse_support = yes +mouse_support = no # #mouse_list_scroll_whole_page = no # diff --git a/.config/yt-dlp/config b/.config/yt-dlp/config index 4817bc6..5594c89 100644 --- a/.config/yt-dlp/config +++ b/.config/yt-dlp/config @@ -3,7 +3,7 @@ --embed-subs --write-subs --write-auto-subs ---sub-langs fr,en,-live_chat +--sub-langs fr,en,en(-|_)?[A-Z]+,-live_chat --embed-thumbnail -i -f "((bestvideo[vcodec^=av01][height<=?1440][width<=?2560]/bestvideo[vcodec=vp9][height<=?1440][width<=?2560]/bestvideo[height<=?1440][width<=?2560]/bestvideo)+(bestaudio[acodec=opus]/bestaudio[acodec=vorbis]/bestaudio))/best" diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc index 51252f3..52146f2 100644 --- a/.config/zathura/zathurarc +++ b/.config/zathura/zathurarc @@ -33,3 +33,6 @@ set recolor-darkcolor "#e8e6df" set recolor "false" set recolor-keephue "false" + +map D set "first-page-column 1:1" +map set "first-page-column 1:2" diff --git a/.i3blocks/mpd b/.i3blocks/mpd index d7cff4f..4f3e5ee 100755 --- a/.i3blocks/mpd +++ b/.i3blocks/mpd @@ -11,7 +11,7 @@ trap self-reset PIPE # Initialisation de la connexion au serveur # coproc nc -U /home/breizh/.mpd/socket -coproc socat stdio /home/breizh/.mpd/socket +coproc socat -T 5 stdio /home/breizh/.mpd/socket IN=${COPROC[1]} OUT=${COPROC[0]} #echo "password xxx" >&"${IN}" diff --git a/.local/bin/mping b/.local/bin/mping index 424d5fa..51474be 100755 --- a/.local/bin/mping +++ b/.local/bin/mping @@ -1,2 +1,3 @@ #!/bin/bash +export LANGUAGE=en ping $1|awk -F[=\ ] '/me=/{t=$(NF-1);f=3000-14*log(t^20);c="play -q -n synth 1 pl " f;print $0;system(c)}';