Mise à jour diverses
This commit is contained in:
parent
8bf8ce7a1d
commit
c778becc5e
9 changed files with 112 additions and 11 deletions
|
@ -20,7 +20,7 @@ eval $(ssh-agent -s)
|
||||||
if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then
|
if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then
|
||||||
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
|
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
|
||||||
export QT_QPA_PLATFORMTHEME=qt5ct
|
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 TERMINAL=urxvtc
|
||||||
export XDG_CURRENT_DESKTOP=i3
|
export XDG_CURRENT_DESKTOP=i3
|
||||||
# exec sway -d 2> $HOME/.sway.log
|
# exec sway -d 2> $HOME/.sway.log
|
||||||
|
|
|
@ -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_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
|
column_meter_modes_1=1 2 2 2 2 2 2 2 2 2 2 2 2 2 2
|
||||||
tree_view=0
|
tree_view=0
|
||||||
sort_key=111
|
sort_key=119
|
||||||
tree_sort_key=0
|
tree_sort_key=0
|
||||||
sort_direction=-1
|
sort_direction=-1
|
||||||
tree_sort_direction=1
|
tree_sort_direction=1
|
||||||
tree_view_always_by_pid=0
|
tree_view_always_by_pid=0
|
||||||
all_branches_collapsed=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
|
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_sort_key=PID
|
||||||
.tree_view=0
|
.tree_view=0
|
||||||
.tree_view_always_by_pid=0
|
.tree_view_always_by_pid=0
|
||||||
|
|
|
@ -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
|
bindsym $mod+Delete exec --no-startup-id $HOME/.local/bin/toggle-beep && pkill -SIGRTMIN+14 i3blocks
|
||||||
|
|
||||||
# LEDs controls
|
# LEDs controls
|
||||||
bindsym --release Caps_Lock exec --no-startup-id pkill -SIGRTMIN+11 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
|
# bindsym --release Num_Lock exec --no-startup-id pkill -SIGRTMIN+12 i3blocks
|
||||||
|
|
||||||
# Start Applications
|
# Start Applications
|
||||||
bindsym $mod+Ctrl+b exec urxvtc -e bmenu
|
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 SVPManager
|
||||||
#exec --no-startup-id hp-systray -x
|
#exec --no-startup-id hp-systray -x
|
||||||
exec --no-startup-id sleep 5 && play "$HOME/Musique/WELCOME BACK.wav"
|
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)
|
# Start i3bar to display a workspace bar (plus the system information i3status if available)
|
||||||
bar {
|
bar {
|
||||||
|
|
97
.config/mpv/scripts/catchup.lua
Normal file
97
.config/mpv/scripts/catchup.lua
Normal file
|
@ -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()
|
||||||
|
|
|
@ -102,7 +102,7 @@ visualizer_in_stereo = yes
|
||||||
#
|
#
|
||||||
#visualizer_fps = 60
|
#visualizer_fps = 60
|
||||||
#
|
#
|
||||||
#visualizer_autoscale = yes
|
visualizer_autoscale = yes
|
||||||
#
|
#
|
||||||
#visualizer_look = ●▮
|
#visualizer_look = ●▮
|
||||||
#
|
#
|
||||||
|
@ -129,7 +129,7 @@ visualizer_in_stereo = yes
|
||||||
#
|
#
|
||||||
#visualizer_spectrum_dft_size = 2
|
#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
|
## 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
|
#block_search_constraints_change_if_items_found = yes
|
||||||
#
|
#
|
||||||
#mouse_support = yes
|
mouse_support = no
|
||||||
#
|
#
|
||||||
#mouse_list_scroll_whole_page = no
|
#mouse_list_scroll_whole_page = no
|
||||||
#
|
#
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
--embed-subs
|
--embed-subs
|
||||||
--write-subs
|
--write-subs
|
||||||
--write-auto-subs
|
--write-auto-subs
|
||||||
--sub-langs fr,en,-live_chat
|
--sub-langs fr,en,en(-|_)?[A-Z]+,-live_chat
|
||||||
--embed-thumbnail
|
--embed-thumbnail
|
||||||
-i
|
-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"
|
-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"
|
||||||
|
|
|
@ -33,3 +33,6 @@ set recolor-darkcolor "#e8e6df"
|
||||||
|
|
||||||
set recolor "false"
|
set recolor "false"
|
||||||
set recolor-keephue "false"
|
set recolor-keephue "false"
|
||||||
|
|
||||||
|
map D set "first-page-column 1:1"
|
||||||
|
map <C-d> set "first-page-column 1:2"
|
||||||
|
|
|
@ -11,7 +11,7 @@ trap self-reset PIPE
|
||||||
|
|
||||||
# Initialisation de la connexion au serveur
|
# Initialisation de la connexion au serveur
|
||||||
# coproc nc -U /home/breizh/.mpd/socket
|
# 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]}
|
IN=${COPROC[1]}
|
||||||
OUT=${COPROC[0]}
|
OUT=${COPROC[0]}
|
||||||
#echo "password xxx" >&"${IN}"
|
#echo "password xxx" >&"${IN}"
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
#!/bin/bash
|
#!/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)}';
|
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)}';
|
||||||
|
|
Loading…
Reference in a new issue