Màj diverses
This commit is contained in:
parent
3649a90586
commit
fa9b71449a
9 changed files with 40 additions and 37 deletions
|
@ -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 -E MOZ_DISABLE_RDD_SANDBOX=1 firefox"
|
||||
export BROWSER="systemd-run --user --scope -p MemoryMax=2G -p MemorySwapMax=3G firefox"
|
||||
export TERMINAL=urxvtc
|
||||
export XDG_CURRENT_DESKTOP=i3
|
||||
# exec sway -d 2> $HOME/.sway.log
|
||||
|
|
|
@ -62,11 +62,11 @@ ${template1 2}
|
|||
${template1 3}
|
||||
${template1 4}
|
||||
${template1 5}
|
||||
#${template1 6}
|
||||
#${template1 7}
|
||||
#${template1 8}
|
||||
#${template1 9}
|
||||
#${template1 10}
|
||||
${template1 6}
|
||||
${template1 7}
|
||||
${template1 8}
|
||||
${template1 9}
|
||||
${template1 10}
|
||||
|
||||
${color2}${font2}Disque E/S $hr${font}${color}
|
||||
${voffset 2}Lecture SSD ${diskio_read /dev/disk/by-id/wwn-0x5002538e39c2174e}${goto 140}Écriture SSD ${diskio_write /dev/disk/by-id/wwn-0x5002538e39c2174e}
|
||||
|
@ -83,7 +83,7 @@ ${color2}${font2}Carte graphique $hr${font}${color}
|
|||
${voffset 2}Usage${goto 140}${texeci 3 conky_radeon}%
|
||||
VRAM: ${texeci 3 conky_radeon vram mb}M${goto 140}${texeci 3 conky_radeon vram}%
|
||||
Temp${goto 140}${if_match ${execi 5 sensors -j | jq '."amdgpu-pci-2700"."edge"."temp1_input"'}>70}${color F2777A}$endif${execi 5 sensors -j | jq '."amdgpu-pci-2700"."edge"."temp1_input"' | cut -d. -f1}°C${color}
|
||||
Conso${goto 140}${if_match ${execi 5 sensors -j | jq '."amdgpu-pci-2700"."power1"."power1_average"'}>180}${color F2777A}$endif${execi 5 sensors -j | jq '."amdgpu-pci-2700"."power1"."power1_average"' | cut -d. -f1} W${color}
|
||||
Conso${goto 140}${if_match ${execi 5 sensors -j | jq '."amdgpu-pci-2700"."slowPPT"."power1_average"'}>180}${color F2777A}$endif${execi 5 sensors -j | jq '."amdgpu-pci-2700"."slowPPT"."power1_average"' | cut -d. -f1} W${color}
|
||||
Ventilo${goto 140}${if_match ${execi 5 sensors -j | jq '."amdgpu-pci-2700"."fan1"."fan1_input"'}>3000}${color F2777A}$endif${execi 5 sensors -j | jq '."amdgpu-pci-2700"."fan1"."fan1_input"' | cut -d. -f1} RPM${color}
|
||||
|
||||
${color2}${font2}Système $hr$font$color${voffset 2}
|
||||
|
|
|
@ -52,11 +52,11 @@ ${template0 2}
|
|||
${template0 3}
|
||||
${template0 4}
|
||||
${template0 5}
|
||||
#${template0 6}
|
||||
#${template0 7}
|
||||
#${template0 8}
|
||||
#${template0 9}
|
||||
#${template0 10}
|
||||
${template0 6}
|
||||
${template0 7}
|
||||
${template0 8}
|
||||
${template0 9}
|
||||
${template0 10}
|
||||
|
||||
${color2}${font2}Réseau $hr$font$color
|
||||
${voffset 2}Téléchargement ${downspeed enp34s0}${goto 140}Téléversement ${upspeed enp34s0}
|
||||
|
@ -65,7 +65,7 @@ Téléchargé ${totaldown enp34s0}${goto 140}Téléversé ${totalup enp34s0}
|
|||
|
||||
$alignc${addrs enp34s0}
|
||||
$alignc${scroll left 39 2 1 ${v6addrs enp34s0 -n -s}}
|
||||
$alignc${curl ifconfig.co/ip}${if_up tun0}
|
||||
$alignc${curl ifconfig.co/ip}$alignc${curl ip.yunohost.org}${if_up tun0}
|
||||
${color2}${font2}VPN $hr$font$color
|
||||
${voffset 2}Téléchargement ${downspeed tun0}${goto 140}Téléversement ${upspeed tun0}
|
||||
${downspeedgraph tun0 25,125}${alignr}${upspeedgraph tun0 25,125}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
SETUVAR __fish_classic_git_prompt_initialized:\x1d
|
||||
SETUVAR __fish_init_2_39_8:\x1d
|
||||
SETUVAR __fish_init_2_3_0:\x1d
|
||||
SETUVAR __fish_initialized:3100
|
||||
SETUVAR __fish_initialized:3400
|
||||
SETUVAR _fish_abbr_S:sudo\x20systemctl
|
||||
SETUVAR _fish_abbr_s:systemctl
|
||||
SETUVAR _fish_abbr_sa:ssh\x2dadd
|
||||
|
@ -36,6 +36,7 @@ SETUVAR fish_pager_color_completion:\x1d
|
|||
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
|
||||
SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
||||
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
||||
SETUVAR fish_pager_color_selected_background:\x2dr
|
||||
SETUVAR fish_prompt_pwd_dir_length:0
|
||||
SETUVAR fish_user_abbreviations:sa\x20ssh\x2dadd\x1eup\x20yay\x20\x2dSyu
|
||||
SETUVAR fisher_active_prompt:lambda
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
htop_version=3.1.2
|
||||
config_reader_min_version=2
|
||||
fields=0 48 17 18 113 38 39 40 119 111 2 46 47 49 1
|
||||
sort_key=46
|
||||
sort_key=47
|
||||
sort_direction=-1
|
||||
tree_sort_key=0
|
||||
tree_sort_direction=1
|
||||
|
@ -38,7 +38,7 @@ enable_mouse=0
|
|||
delay=15
|
||||
hide_function_bar=0
|
||||
header_layout=two_50_50
|
||||
column_meters_0=LeftCPUs2 Blank CPU Memory Swap Zram Blank Hostname System DateTime Blank Systemd Blank PressureStallCPUSome PressureStallMemorySome PressureStallIOSome
|
||||
column_meter_modes_0=1 2 1 1 1 1 2 2 2 2 2 2 2 2 2 2
|
||||
column_meters_1=RightCPUs2 Blank CPU Memory Swap Zram 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 2
|
||||
column_meters_0=LeftCPUs2 Blank CPU Memory Swap Blank Hostname System DateTime Blank Systemd Blank PressureStallCPUSome PressureStallMemorySome PressureStallIOSome
|
||||
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
|
||||
|
|
|
@ -58,7 +58,7 @@ floating_modifier $mod
|
|||
|
||||
# start a urxvtc
|
||||
bindsym $mod+Return exec urxvtc -sl 65535 -e fish
|
||||
bindsym $mod+Ctrl+Return exec urxvtc -sl 65535
|
||||
bindsym $mod+Shift+Return exec urxvtc -sl 65535
|
||||
#bindsym $mod+Shift+Return exec urxvtc -sl 65535 -fn -xos4-terminus-medium-r-normal--32-320-72-72-c-160-iso10646-1 -e fish
|
||||
|
||||
|
||||
|
@ -354,8 +354,8 @@ bindsym $mod+9 exec --no-startup-id xscreensaver-command -activate
|
|||
## adjustment of i3bar battery reading (only run at the very first login):
|
||||
#exec --no-startup-id /usr/bin/adjust_i3statusconf
|
||||
#exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
#exec --no-startup-id conky --config "$HOME/.config/conky/conkyrc1"
|
||||
#exec --no-startup-id conky --config "$HOME/.config/conky/conkyrc2"
|
||||
exec --no-startup-id conky --config "$HOME/.config/conky/conkyrc1"
|
||||
exec --no-startup-id conky --config "$HOME/.config/conky/conkyrc2"
|
||||
exec_always --no-startup-id setcursor
|
||||
exec claws-mail --online
|
||||
exec --no-startup-id urxvtc -name newsboat -e newsboat
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[sync]
|
||||
develpkgsexpiration = -1
|
||||
alwaysshowpkgorigin = no
|
||||
develpkgsexpiration = 30
|
||||
upgradesorting = versiondiff
|
||||
showdownloadsize = yes
|
||||
ignoreoutofdateaurupgrades = no
|
||||
|
@ -9,13 +9,13 @@ ignoreoutofdateaurupgrades = no
|
|||
keepbuilddir = no
|
||||
keepdevbuilddir = no
|
||||
keepbuilddeps = no
|
||||
skipfailedbuild = no
|
||||
skipfailedbuild = yes
|
||||
alwaysusedynamicusers = no
|
||||
ignorearch = no
|
||||
|
||||
[review]
|
||||
donteditbydefault = no
|
||||
noedit = yes
|
||||
donteditbydefault = yes
|
||||
nodiff = no
|
||||
gitdiffargs = --ignore-space-change,--ignore-all-space
|
||||
diffpager = auto
|
||||
|
@ -29,19 +29,19 @@ versiondiffnew = 9
|
|||
[ui]
|
||||
requireenterconfirm = yes
|
||||
printcommands = no
|
||||
reversesearchsorting = yes
|
||||
aursearchsorting = hottest
|
||||
displaylastupdated = no
|
||||
displaylastupdated = yes
|
||||
groupbyrepository = yes
|
||||
reversesearchsorting = yes
|
||||
|
||||
[misc]
|
||||
sudoloopinterval = 50
|
||||
sudoloopinterval = 30
|
||||
pacmanpath = pacman
|
||||
privilegeescalationtool = sudo
|
||||
|
||||
[network]
|
||||
aururl = https://aur.archlinux.org
|
||||
newsurl = https://www.archlinux.org/feeds/news/
|
||||
newsurl = https://archlinux.fr/category/news/feed
|
||||
socks5proxy =
|
||||
aurhttpproxy =
|
||||
aurhttpsproxy =
|
||||
|
|
|
@ -18,28 +18,28 @@ fi
|
|||
|
||||
# Si l'interface est inactive on quitte sans rien afficher
|
||||
if [[ ! -e "/sys/class/net/${iface}/operstate" \
|
||||
|| "$(</sys/class/net/${iface}/operstate)" != "up" ]]
|
||||
|| "$(<"/sys/class/net/${iface}/operstate")" != "up" ]]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
rx="$(</sys/class/net/${iface}/statistics/rx_bytes)"
|
||||
tx="$(</sys/class/net/${iface}/statistics/tx_bytes)"
|
||||
rx="$(<"/sys/class/net/${iface}/statistics/rx_bytes")"
|
||||
tx="$(<"/sys/class/net/${iface}/statistics/tx_bytes")"
|
||||
|
||||
time="$(date +%s)"
|
||||
|
||||
# Récupération de la précédente mesure et stockage de l'actuelle
|
||||
if [[ -f "${runtime}/bw" ]]
|
||||
then
|
||||
old=($(<${runtime}/bw))
|
||||
mapfile -t old < "${runtime}/bw"
|
||||
fi
|
||||
echo "${time} ${rx} ${tx}" > ${runtime}/bw
|
||||
printf "%s\n" "$time" "$rx" "$tx" > "${runtime}/bw"
|
||||
|
||||
# Calcul du débit en octets/seconde
|
||||
time_diff="$(( $time - ${old[0]} ))"
|
||||
time_diff="$(( time - old[0] ))"
|
||||
[[ "$time_diff" -eq 0 ]] && exit
|
||||
rx_rate="$(( ($rx - ${old[1]}) / $time_diff ))"
|
||||
tx_rate="$(( ($tx - ${old[2]}) / $time_diff ))"
|
||||
rx_rate="$(( (rx - old[1]) / time_diff ))"
|
||||
tx_rate="$(( (tx - old[2]) / time_diff ))"
|
||||
|
||||
# Affichage
|
||||
if [[ "$rx_rate" -lt 1048576 ]]
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
# 1: Temps en minutes
|
||||
# 2: Type d’extinction
|
||||
|
||||
touch /dev/shm/mccount
|
||||
|
||||
while true
|
||||
do
|
||||
|
||||
|
|
Loading…
Reference in a new issue