Correction italique man, ajout yt-dlp-playlist

This commit is contained in:
Breizh 2023-08-14 18:12:39 +02:00
parent 43b0755211
commit a78ef2fdc1
12 changed files with 105 additions and 64 deletions

View file

@ -58,7 +58,9 @@ XTerm*reverseVideo: on
XTerm*selectToClipboard: true XTerm*selectToClipboard: true
URxvt.font: xft:xos4 Terminus:pixelsize=16,xft:DejaVu Sans Mono:antialias=false:pixelsize=16,xft:Noto Sans Mono:pixelsize=16:antialias=false URxvt.font: xft:xos4 Terminus:pixelsize=16,xft:DejaVu Sans Mono:antialias=false:pixelsize=16,xft:Noto Sans Mono:pixelsize=16:antialias=false
!URxvt.font: xft:IBM Plex Mono:pixelsize=14,xft:DejaVu Sans Mono:antialias=false:pixelsize=14,xft:Noto Sans Mono:pixelsize=14:antialias=true !URxvt.boldFont:
!URxvt.italicFont:
!URxvt.boldItalicFont:
!URxvt.letterSpace: 0 !URxvt.letterSpace: 0
!URxvt.depth: 32 !URxvt.depth: 32
!URxvt.background: [100]#000000 !URxvt.background: [100]#000000
@ -146,11 +148,11 @@ URxvt*cursorUnderline: true
! URxvt*pointerColor2: color ! URxvt*pointerColor2: color
! URxvt*borderColor: color ! URxvt*borderColor: color
! URxvt*iconFile: file ! URxvt*iconFile: file
! URxvt*font: xft:Latin Modern Mono ! URxvt*font:
! URxvt*boldFont: xft:Latin Modern Mono:size=12,xft:xos4 Terminus ! URxvt*boldFont:
! URxvt*italicFont: xft:Latin Modern Mono:size=12,xft:xos4 Terminus ! URxvt*italicFont:
! URxvt*boldItalicFont:
! URxvt.letterSpace: -1 ! URxvt.letterSpace: -1
! URxvt*boldItalicFont: xft:Latin Modern Mono:size=12,xft:xos4 Terminus
! URxvt*intensityStyles: true ! URxvt*intensityStyles: true
! URxvt*inputMethod: name ! URxvt*inputMethod: name
! URxvt*preeditType: style ! URxvt*preeditType: style

View file

@ -10,6 +10,9 @@ export EDITOR=vim
export PAGER=less export PAGER=less
export PATH=~/.local/bin:$PATH export PATH=~/.local/bin:$PATH
# Passe -P -i à groff, pour passer -i à grotty pour afficher du vrai italique
export MANROFFOPT="-P -i"
export HASTE_SERVER="https://haste.breizh.pm" export HASTE_SERVER="https://haste.breizh.pm"
export MPD_HOST="$HOME/.mpd/socket" export MPD_HOST="$HOME/.mpd/socket"
export MAGICK_TMPDIR="$HOME/.cache/ImageMagick/" export MAGICK_TMPDIR="$HOME/.cache/ImageMagick/"

15
.bashrc
View file

@ -96,13 +96,14 @@ On_White='\e[47m' # White
# On_IWhite='\e[0;107m' # White # On_IWhite='\e[0;107m' # White
# Less colors # Less colors
export LESS_TERMCAP_mb=$(tput blink) #export LESS_TERMCAP_mb=$(tput blink)
export LESS_TERMCAP_md=$(tput bold) #export LESS_TERMCAP_md=$(tput bold)
export LESS_TERMCAP_me=$(tput sgr0) #export LESS_TERMCAP_me=$(tput sgr0)
export LESS_TERMCAP_so=$(tput smso) #export LESS_TERMCAP_so=$(tput smso)
export LESS_TERMCAP_se=$(tput rmso) #export LESS_TERMCAP_se=$(tput rmso)
export LESS_TERMCAP_us=$(tput sitm) #export LESS_TERMCAP_us=$(tput smul)
export LESS_TERMCAP_ue=$(tput sgr0) #export LESS_TERMCAP_ZH=$(tput sitm)
#export LESS_TERMCAP_ue=$(tput sgr0)
export LESS="-RI" export LESS="-RI"

View file

@ -1,4 +1,5 @@
## Configuration file for CAVA. Default values are commented out. Use either ';' or '#' for commenting. ## Configuration file for CAVA.
# Remove the ; to change parameters.
[general] [general]
@ -7,7 +8,7 @@
; mode = normal ; mode = normal
# Accepts only non-negative values. # Accepts only non-negative values.
; framerate = 240 ; framerate = 60
# 'autosens' will attempt to decrease sensitivity if the bars peak. 1 = on, 0 = off # 'autosens' will attempt to decrease sensitivity if the bars peak. 1 = on, 0 = off
# new as of 0.6.0 autosens of low values (dynamic range) # new as of 0.6.0 autosens of low values (dynamic range)
@ -19,7 +20,7 @@
# 200 means double height. Accepts only non-negative values. # 200 means double height. Accepts only non-negative values.
; sensitivity = 100 ; sensitivity = 100
# The number of bars (0-200). 0 sets it to auto (fill up console). # The number of bars (0-512). 0 sets it to auto (fill up console).
# Bars' width and space between bars in number of characters. # Bars' width and space between bars in number of characters.
; bars = 0 ; bars = 0
; bar_width = 2 ; bar_width = 2
@ -27,12 +28,14 @@
# bar_height is only used for output in "noritake" format # bar_height is only used for output in "noritake" format
; bar_height = 32 ; bar_height = 32
bar_width=1
# For SDL width and space between bars is in pixels, defaults are: # For SDL width and space between bars is in pixels, defaults are:
; bar_width = 20 ; bar_width = 20
; bar_spacing = 5 ; bar_spacing = 5
# sdl_glsl have these default values, they are only used to calulate max number of bars.
; bar_width = 1
; bar_spacing = 0
# Lower and higher cutoff frequencies for lowest and highest bars # Lower and higher cutoff frequencies for lowest and highest bars
# the bandwidth of the visualizer. # the bandwidth of the visualizer.
@ -50,20 +53,27 @@ bar_width=1
[input] [input]
# Audio capturing method. Possible methods are: 'pulse', 'alsa', 'fifo', 'sndio' or 'shmem' # Audio capturing method. Possible methods are: 'pulse', 'alsa', 'fifo', 'sndio' or 'shmem'
# Defaults to 'pulse', 'alsa' or 'fifo', in that order, dependent on what support cava was built with. # Defaults to 'pulse', 'pipewire', 'alsa' or 'fifo', in that order, dependent on what support cava was built with.
# On windows this is automatic and no input settings are needed.
# #
# All input methods uses the same config variable 'source' # All input methods uses the same config variable 'source'
# to define where it should get the audio. # to define where it should get the audio.
# #
# For pulseaudio 'source' will be the source. Default: 'auto', which uses the monitor source of the default sink # For pulseaudio and pipewire 'source' will be the source. Default: 'auto', which uses the monitor source of the default sink
# (all pulseaudio sinks(outputs) have 'monitor' sources(inputs) associated with them). # (all pulseaudio sinks(outputs) have 'monitor' sources(inputs) associated with them).
# #
# For piepwire 'source' will be the object name or object.serial of the device to capture from.
# Both input and output devices are supported.
#
# For alsa 'source' will be the capture device. # For alsa 'source' will be the capture device.
# For fifo 'source' will be the path to fifo-file. # For fifo 'source' will be the path to fifo-file.
# For shmem 'source' will be /squeezelite-AA:BB:CC:DD:EE:FF where 'AA:BB:CC:DD:EE:FF' will be squeezelite's MAC address # For shmem 'source' will be /squeezelite-AA:BB:CC:DD:EE:FF where 'AA:BB:CC:DD:EE:FF' will be squeezelite's MAC address
; method = pulse ; method = pulse
; source = auto ; source = auto
method = pipewire
source = auto
; method = alsa ; method = alsa
; source = hw:Loopback,1 ; source = hw:Loopback,1
@ -81,7 +91,8 @@ bar_width=1
[output] [output]
# Output method. Can be 'ncurses', 'noncurses', 'raw', 'noritake' or 'sdl'. # Output method. Can be 'ncurses', 'noncurses', 'raw', 'noritake', 'sdl'
# or 'sdl_glsl'.
# 'noncurses' uses a custom framebuffer technique and prints only changes # 'noncurses' uses a custom framebuffer technique and prints only changes
# from frame to frame in the terminal. 'ncurses' is default if supported. # from frame to frame in the terminal. 'ncurses' is default if supported.
# #
@ -93,8 +104,16 @@ bar_width=1
# in graphic mode. It only support the 3000 series graphical VFDs for now. # in graphic mode. It only support the 3000 series graphical VFDs for now.
# #
# 'sdl' uses the Simple DirectMedia Layer to render in a graphical context. # 'sdl' uses the Simple DirectMedia Layer to render in a graphical context.
# 'sdl_glsl' uses SDL to create an OpenGL context. Write your own shaders or
# use one of the predefined ones.
; method = ncurses ; method = ncurses
# Orientation of the visualization. Can be 'bottom', 'top', 'left' or 'right'.
# Default is 'bottom'. Other orientations are only supported on sdl and ncruses
# output. Note: many fonts have weird glyphs for 'top' and 'right' characters,
# which can make ncurses not look right.
; orientation = bottom
# Visual channels. Can be 'stereo' or 'mono'. # Visual channels. Can be 'stereo' or 'mono'.
# 'stereo' mirrors both channels with low frequencies in center. # 'stereo' mirrors both channels with low frequencies in center.
# 'mono' outputs left to right lowest to highest frequencies. # 'mono' outputs left to right lowest to highest frequencies.
@ -127,36 +146,51 @@ bar_width=1
; sdl_x = -1 ; sdl_x = -1
; sdl_y= -1 ; sdl_y= -1
# set label on bars on the x-axis. Can be 'frequency' or 'none'. Default: 'none'
# 'frequency' displays the lower cut off frequency of the bar above.
# Only supported on ncurses and noncurses output.
; xaxis = none
# enable alacritty synchronized updates. 1 = on, 0 = off
# removes flickering in alacritty terminal emulator.
# defaults to off since the behaviour in other terminal emulators is unknown
; alacritty_sync = 0
# Shaders for sdl_glsl, located in $HOME/.config/cava/shaders
; vertex_shader = pass_through.vert
; fragment_shader = bar_spectrum.frag
; for glsl output mode, keep rendering even if no audio
; continuous_rendering = 0
[color] [color]
# Colors can be one of seven predefined: black, blue, cyan, green, magenta, red, white, yellow. # Colors can be one of seven predefined: black, blue, cyan, green, magenta, red, white, yellow.
# Or defined by hex code '#xxxxxx' (hex code must be within ''). User defined colors requires # Or defined by hex code '#xxxxxx' (hex code must be within ''). User defined colors requires
# ncurses output method and a terminal that can change color definitions such as Gnome-terminal or rxvt. # a terminal that can change color definitions such as Gnome-terminal or rxvt.
# if supported, ncurses mode will be forced on if user defined colors are used.
# default is to keep current terminal color # default is to keep current terminal color
; background = default ; background = default
; foreground = default ; foreground = default
# SDL only support hex code colors, these are the default: # SDL and sdl_glsl only support hex code colors, these are the default:
; background = '#111111' ; background = '#111111'
; foreground = '#33cccc' ; foreground = '#33ffff'
# Gradient mode, only hex defined colors (and thereby ncurses mode) are supported, # Gradient mode, only hex defined colors are supported,
# background must also be defined in hex or remain commented out. 1 = on, 0 = off. # background must also be defined in hex or remain commented out. 1 = on, 0 = off.
# You can define as many as 8 different colors. They range from bottom to top of screen # You can define as many as 8 different colors. They range from bottom to top of screen
gradient = 1 ; gradient = 0
; gradient_count = 6 ; gradient_count = 8
; gradient_color_1 = '#6699CC' ; gradient_color_1 = '#59cc33'
; gradient_color_2 = '#6699CC' ; gradient_color_2 = '#80cc33'
; gradient_color_3 = '#CC99CC' ; gradient_color_3 = '#a6cc33'
; gradient_color_4 = '#CC99CC' ; gradient_color_4 = '#cccc33'
; gradient_color_5 = '#F2777A' ; gradient_color_5 = '#cca633'
; gradient_color_6 = '#F2777A' ; gradient_color_6 = '#cc8033'
gradient_count = 3 ; gradient_color_7 = '#cc5933'
gradient_color_1 = '#008080' ; gradient_color_8 = '#cc3333'
gradient_color_2 = '#D58E00'
gradient_color_3 = '#D50000'
[smoothing] [smoothing]
@ -180,19 +214,17 @@ gradient_color_3 = '#D50000'
# DEPRECATED as of 0.8.0 # DEPRECATED as of 0.8.0
; ignore = 0 ; ignore = 0
# Noise reduction, float 0 - 1. default 0.77 # Noise reduction, int 0 - 100. default 77
# the raw visualization is very noisy, this factor adjusts the integral and gravity filters to keep the signal smooth # the raw visualization is very noisy, this factor adjusts the integral and gravity filters to keep the signal smooth
# 1 will be very slow and smooth, 0 will be fast but noisy. # 100 will be very slow and smooth, 0 will be fast but noisy.
; noise_reduction = 0.77 ; noise_reduction = 77
[eq] [eq]
# This one is tricky. You can have as much keys as you want. # This one is tricky. You can have as much keys as you want.
# Remember to uncomment more then one key! More keys = more precision. # Remember to uncomment more than one key! More keys = more precision.
# Look at readme.md on github for further explanations and examples. # Look at readme.md on github for further explanations and examples.
# DEPRECATED as of 0.8.0 can be brought back by popular request, open issue at:
# https://github.com/karlstav/cava
; 1 = 1 # bass ; 1 = 1 # bass
; 2 = 1 ; 2 = 1
; 3 = 1 # midtone ; 3 = 1 # midtone

View file

@ -21,14 +21,14 @@ set base0D 6699CC
set base0E CC99CC set base0E CC99CC
set base0F D27B53 set base0F D27B53
set -x LESS_TERMCAP_mb (tput blink) #set -x LESS_TERMCAP_mb (tput blink)
set -x LESS_TERMCAP_md (tput bold) #set -x LESS_TERMCAP_md (tput bold)
set -x LESS_TERMCAP_me (tput sgr0) #set -x LESS_TERMCAP_me (tput sgr0)
set -x LESS_TERMCAP_so (tput smso) #set -x LESS_TERMCAP_so (tput smso)
set -x LESS_TERMCAP_se (tput rmso) #set -x LESS_TERMCAP_se (tput rmso)
set -x LESS_TERMCAP_us (tput sitm) #set -x LESS_TERMCAP_us (tput smul)
set -x LESS_TERMCAP_ue (tput sgr0) #set -x LESS_TERMCAP_ZH (tput sitm)
#set -x LESS_TERMCAP_ue (tput sgr0)
#if status --is-interactive #if status --is-interactive
if test "$XDG_CURRENT_DESKTOP" = "i3" if test "$XDG_CURRENT_DESKTOP" = "i3"

View file

@ -37,10 +37,12 @@ prefetch-playlist=yes
# Autre # Autre
input-ipc-server=/tmp/mpvsocket input-ipc-server=/tmp/mpvsocket
hr-seek-framedrop=yes hr-seek-framedrop=no
title=${?chapter:${chapter-metadata/by-key/title} | }${media-title} | mpv title=${?chapter:${chapter-metadata/by-key/title} | }${media-title} | mpv
#osd-msg3=${media-title}${?chapter:\n ${chapter-metadata/by-key/title}}\n${time-pos} / ${playtime-remaining} #osd-msg3=${media-title}${?chapter:\n ${chapter-metadata/by-key/title}}\n${time-pos} / ${playtime-remaining}
#osd-font-size=25 #osd-font-size=25
osc=no osc=no
screenshot-directory=~/Images/Screenshots/MPV screenshot-directory=~/Images/Screenshots/MPV
# TV Free
rtsp-transport=lavf

View file

@ -1,6 +1,6 @@
[sync] [sync]
develpkgsexpiration = 30
alwaysshowpkgorigin = yes alwaysshowpkgorigin = yes
develpkgsexpiration = 30
upgradesorting = versiondiff upgradesorting = versiondiff
showdownloadsize = yes showdownloadsize = yes
ignoreoutofdateaurupgrades = no ignoreoutofdateaurupgrades = no
@ -9,14 +9,14 @@ ignoreoutofdateaurupgrades = no
keepbuilddir = yes keepbuilddir = yes
keepdevbuilddir = yes keepdevbuilddir = yes
keepbuilddeps = no keepbuilddeps = no
skipfailedbuild = no
ignorearch = no
gpgdir = /etc/pacman.d/gnupg gpgdir = /etc/pacman.d/gnupg
skipfailedbuild = no
dynamicusers = root dynamicusers = root
ignorearch = no
[review] [review]
donteditbydefault = no
noedit = yes noedit = yes
donteditbydefault = no
nodiff = no nodiff = no
gitdiffargs = --ignore-space-change,--ignore-all-space gitdiffargs = --ignore-space-change,--ignore-all-space
diffpager = auto diffpager = auto
@ -37,7 +37,6 @@ reversesearchsorting = yes
warnaboutpackageupdates = warnaboutpackageupdates =
[misc] [misc]
sudoloopinterval = 30
pacmanpath = pacman pacmanpath = pacman
privilegeescalationtool = sudo privilegeescalationtool = sudo
privilegeescalationtarget = pikaur privilegeescalationtarget = pikaur
@ -45,7 +44,7 @@ userid = 0
[network] [network]
aururl = https://aur.archlinux.org aururl = https://aur.archlinux.org
newsurl = https://archlinux.org/feeds/news/ newsurl = https://www.archlinux.org/feeds/news/
socks5proxy = socks5proxy =
aurhttpproxy = aurhttpproxy =
aurhttpsproxy = aurhttpsproxy =

View file

@ -2,7 +2,7 @@
SINK="$(pactl get-default-sink)" SINK="$(pactl get-default-sink)"
currentport=$(pactl list sinks | grep -Po "Active Port: analog.*") currentport=$(pactl list sinks | grep -Po "Active Port: analog-output-.*")
if [[ -n "$button" ]] if [[ -n "$button" ]]
then then

View file

@ -1 +0,0 @@
/home/breizh/.local/opt/svp/SVPManager

View file

@ -79,7 +79,7 @@ do
else else
# Copie les autres types de fichiers # Copie les autres types de fichiers
echo "[${green}COPY${reset}] ${dir#./}$file" echo "[${green}COPY${reset}] ${dir#./}$file"
cp -n --reflink=auto "${file}" "${dstdir}/" || true cp -n --reflink=auto "${file}" "${dstdir}/"
fi fi
done done
wait wait

View file

@ -76,7 +76,7 @@ do
else else
# Copie les autres types de fichiers # Copie les autres types de fichiers
echo "[${green}COPY${reset}] ${dir#./}$file" echo "[${green}COPY${reset}] ${dir#./}$file"
cp -n --reflink=auto "${file}" "${dstdir}/" || true cp -n --reflink=auto "${file}" "${dstdir}/"
fi fi
done done
done done

3
.local/bin/yt-dlp-playlist Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
yt-dlp -o"%(playlist_title)s/%(playlist_index)s.%(title)s.%(ext)s" "$@"