From 7268ca1f723d6bd28daa513fb707678a40f38419 Mon Sep 17 00:00:00 2001 From: Breizh Date: Mon, 28 Jun 2021 00:29:06 +0200 Subject: [PATCH] =?UTF-8?q?Configuration=20fontconfig=20+=20diverses=20m?= =?UTF-8?q?=C3=A0j?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bash_profile | 2 +- .config/fontconfig/fonts.conf | 27 +++++++++++++++++++++++++++ .config/htop/htoprc | 16 ++++++++-------- .config/mpv/mpv.conf | 1 + .config/pikaur.conf | 1 + .i3blocks/mpd | 2 +- .i3blocks/mpd.new | 4 +++- .local/bin/rgb-control | 4 ++-- 8 files changed, 44 insertions(+), 13 deletions(-) create mode 100644 .config/fontconfig/fonts.conf diff --git a/.bash_profile b/.bash_profile index 81157e3..cb65e27 100644 --- a/.bash_profile +++ b/.bash_profile @@ -21,7 +21,7 @@ if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then export XDG_CURRENT_DESKTOP=i3 export GTK2_RC_FILES="$HOME/.gtkrc-2.0" export QT_QPA_PLATFORMTHEME=qt5ct - export BROWSER="systemd-run --user --scope -p MemoryMax=2G -E MOZ_X11_EGL=1 firefox" + export BROWSER="systemd-run --user --scope -p MemoryMax=2G firefox" export TERMINAL=urxvtc startx logout diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf new file mode 100644 index 0000000..58ecb95 --- /dev/null +++ b/.config/fontconfig/fonts.conf @@ -0,0 +1,27 @@ + + + + + + true + + + true + + + hintmedium + + + rgb + + + false + + + lcdlegacy + + + 96 + + + diff --git a/.config/htop/htoprc b/.config/htop/htoprc index 3d0af92..cdc8a2c 100644 --- a/.config/htop/htoprc +++ b/.config/htop/htoprc @@ -1,13 +1,13 @@ # Beware! This file is rewritten by htop when settings are changed in the interface. # The parser is also very primitive, and not human-friendly. fields=0 17 18 48 49 39 113 111 109 110 46 47 2 1 -sort_key=46 +sort_key=111 sort_direction=1 tree_sort_key=0 tree_sort_direction=1 hide_kernel_threads=1 hide_userland_threads=1 -shadow_other_users=0 +shadow_other_users=1 show_thread_names=1 show_program_path=1 highlight_base_name=1 @@ -18,13 +18,13 @@ highlight_changes_delay_secs=5 find_comm_in_cmdline=1 strip_exe_from_cmdline=1 show_merged_command=0 -tree_view=0 +tree_view=1 tree_view_always_by_pid=0 header_margin=1 detailed_cpu_time=1 cpu_count_from_one=0 show_cpu_usage=1 -show_cpu_frequency=0 +show_cpu_frequency=1 show_cpu_temperature=0 degree_fahrenheit=0 update_process_names=0 @@ -32,8 +32,8 @@ account_guest_in_cpu_meter=0 color_scheme=0 enable_mouse=0 delay=15 -left_meters=LeftCPUs2 Blank CPU Memory Swap Zram Blank Tasks Blank DiskIO NetworkIO -left_meter_modes=1 2 1 1 1 1 2 2 2 2 2 -right_meters=RightCPUs2 Blank CPU Memory LoadAverage Blank Clock Uptime Blank Systemd -right_meter_modes=1 2 2 2 2 2 2 2 2 2 +left_meters=LeftCPUs2 Blank CPU Memory Swap Zram Blank Tasks Blank Systemd Blank PressureStallCPUSome PressureStallMemorySome PressureStallIOSome +left_meter_modes=1 2 1 1 1 1 2 2 2 2 2 2 2 2 +right_meters=RightCPUs2 Blank CPU Memory LoadAverage Blank Clock Uptime Blank DiskIO NetworkIO Blank PressureStallMemoryFull PressureStallIOFull +right_meter_modes=1 2 2 2 2 2 2 2 2 2 2 2 2 2 hide_function_bar=0 diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf index 4f50e02..aae8d31 100644 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -21,6 +21,7 @@ sub-use-margins sub-file-paths=~/Sous-titres/ sub-font=IBM Plex Sans sub-font-size=35 +sub-margin-y=0 # Codecs hwdec=auto-copy diff --git a/.config/pikaur.conf b/.config/pikaur.conf index 5f26487..d12f14d 100644 --- a/.config/pikaur.conf +++ b/.config/pikaur.conf @@ -11,6 +11,7 @@ keepdevbuilddir = no keepbuilddeps = no skipfailedbuild = no alwaysusedynamicusers = no +ignorearch = no [review] noedit = yes diff --git a/.i3blocks/mpd b/.i3blocks/mpd index e89a3c4..a903ff6 100755 --- a/.i3blocks/mpd +++ b/.i3blocks/mpd @@ -11,7 +11,7 @@ else [[ -z "$origstatus" ]] && origstatus='stop' fi -LONG=15 +LONG=40 SHORT=15 case $BLOCK_BUTTON in diff --git a/.i3blocks/mpd.new b/.i3blocks/mpd.new index e499e8a..b78f21e 100755 --- a/.i3blocks/mpd.new +++ b/.i3blocks/mpd.new @@ -54,7 +54,9 @@ do file="$(basename "$(mpc -f '%file%' current)")" album="$(mpc -f '%album%' current)" - ( zscroll -b "$artist " "${title:-${file}}" ) & + [[ -n "$artist" ]] && artist+=" " + + ( zscroll -n false -b "$(tput bold)$artist$(tput sgr0)" "${title:-${file}}" ) & pid="$!" mpc idle &>/dev/null diff --git a/.local/bin/rgb-control b/.local/bin/rgb-control index 8044d41..aaf2e65 100755 --- a/.local/bin/rgb-control +++ b/.local/bin/rgb-control @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -e declare -A colors=( [r]=0 # Red @@ -40,7 +40,7 @@ then exit fi -lumi=20 +lumi=${LUMI:-100} mode=${3:-Direct} # Direct, Pulse, Flashing logo="$(hsv2rgb "${colors[${1}]}" 100 "$lumi")" fans="$(hsv2rgb "${colors[${2:-$1}]}" 100 "$lumi")"