~q3cpma/dotfiles

daeefe987715d75c2ce9dfbaf570d2d4a98734d8 — q3cpma 1 year, 10 months ago 27e976c
Update
M .Xresources => .Xresources +4 -1
@@ 1,2 1,5 @@
Xcursor.theme: Bluecurve
Xcursor.size: 16
\ No newline at end of file
Xcursor.size: 16
Sxiv.font: xos4 Terminus:pixelsize=16
Sxiv.background: gray10
Sxiv.foreground: gray80
\ No newline at end of file

M .config/lemonbar/bar_fifo.sh => .config/lemonbar/bar_fifo.sh +1 -1
@@ 33,7 33,7 @@ do
			cpu="cpu: ${line#?}"
			;;
		t*)
			temp="temp: ${line#?}"
			temp="${line#?}"
			;;
		M*)
			mus="mus: ${line#?}"

M .config/lemonbar/config => .config/lemonbar/config +1 -1
@@ 13,7 13,7 @@ cmus_fmt='%A - %{?y?(%y) ?}%l - %{?n?%02n.?} %t%{?va? (%a)?}'
cpu_usage_delay=2
cpu_usage_high=90

hwmon_temp_prefix="/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon1/temp1"
hwmon_temp_prefix="/sys/class/hwmon/hwmon1/temp2"
hwmon_temp_delay=4

diskfree_delay=30

M .config/lemonbar/hwmon_temp.awk => .config/lemonbar/hwmon_temp.awk +21 -5
@@ 1,10 1,26 @@
BEGIN\
{
	tmax = gets(prefix "_max") / 1000
	while(1)
	label = gets(prefix "_label")
	if (!label)
		label = "temp"
	tmax = gets(prefix "_max")
	if (tmax)
	{
		tcur = gets(prefix "_input") / 1000
		printf "t%s%d°C\n", (tcur > tmax ? red : ""), tcur
		sleep(delay)
		tmax /= 1000
		while(1)
		{
			tcur = gets(prefix "_input") / 1000
			printf "t%s: %s%d°C\n", label, (tcur > tmax ? red : ""), tcur
			sleep(delay)
		}

	}
	else
	{
		while(1)
		{
			printf "t%s: %d°C\n", label, gets(prefix "_input") / 1000
			sleep(delay)
		}
	}
}

M .config/lemonbar/mus_status.sh => .config/lemonbar/mus_status.sh +12 -7
@@ 78,12 78,12 @@ esac
case "$status" in
	paused|playing)
		buttons="%{A:mus_client track_first:}%{R}first%{R}%{A}"
		buttons="$buttons %{A:mus_client track_prev:}%{R}prev%{R}%{A}"
		buttons="$buttons %{A:mus_client track_rewind:}%{R}rewind%{R}%{A}"
		buttons="$buttons %{A:mus_client pause_play:}%{R}$mid_button%{R}%{A}"
		buttons="$buttons %{A:mus_client track_next:}%{R}next%{R}%{A}"
		buttons="$buttons %{A:mus_client album_next:}%{R}nextalbm%{R}%{A}"
		buttons="$buttons %{A:mus_client pl_edit:}"
		buttons="$buttons %{A:mus_client TRACK_PREV:}%{R}prev%{R}%{A}"
		buttons="$buttons %{A:mus_client TRACK_REWIND:}%{R}rewind%{R}%{A}"
		buttons="$buttons %{A:mus_client TOGGLE_PLAY_PAUSE:}%{R}$mid_button%{R}%{A}"
		buttons="$buttons %{A:mus_client TRACK_NEXT:}%{R}next%{R}%{A}"
		buttons="$buttons %{A:mus_client ALBUM_NEXT:}%{R}nextalbm%{R}%{A}"
		buttons="$buttons %{A:mus_client PL_EDIT:}"
		msg=$(mbcut -e "$(format_status)" $music_maxlen | sed 's#%#%%#g')
		;;
	no_playlist|empty_playlist)


@@ 94,4 94,9 @@ esac
msg="$msg%{A}"

set +e; mkfifo -- "$fifo" 2>/dev/null; set -e
printf "M%s%s%s\n" "$color" "$buttons" "$msg" >"$fifo"
if command -v timeout >/dev/null
then
	timeout 2 printf "M%s%s%s\n" "$color" "$buttons" "$msg" >"$fifo"
else
	printf "M%s%s%s\n" "$color" "$buttons" "$msg" >"$fifo"
fi

M .config/lemonbar/util.awk => .config/lemonbar/util.awk +2 -1
@@ 26,7 26,8 @@ function sleep(val)

function gets(path)
{
	getline _s <path
	if (getline _s <path == -1)
		_s = ""
	close(path)
	return _s
}

M .config/mpv/input.conf => .config/mpv/input.conf +9 -3
@@ 1,10 1,16 @@
Ctrl+i vf toggle "lavfi=[fps=30000/1001, pullup, dejudder]"
Ctrl+w vf toggle "vapoursynth=~~/scripts/awarpsharp2.vpy"
Ctrl+S cycle-values glsl-shaders "~~/shaders/luma_sharpen.hook" ""
Ctrl+u cycle-values glsl-shaders "~~/shaders/FSRCNNX_x2_16-0-4-1.glsl" "~~/shaders/SSimSuperRes.glsl" ""
Ctrl+& change-list glsl-shaders toggle "~~/shaders/FSRCNNX_x2_8-0-4-1.glsl"
Ctrl+é change-list glsl-shaders toggle "~~/shaders/FSRCNNX_x2_16-0-4-1.glsl"
Ctrl+" change-list glsl-shaders toggle "~~/shaders/SSimSuperRes.glsl"
Ctrl+' change-list glsl-shaders toggle "~~/shaders/SSimDownscaler.glsl"
#Ctrl+& change-list glsl-shaders toggle "~~/shaders/FSRCNNX_x2_8-0-4-1.glsl:~~/shaders/SSimDownscaler.glsl"
#Ctrl+é change-list glsl-shaders toggle "~~/shaders/FSRCNNX_x2_16-0-4-1.glsl:~~/shaders/SSimDownscaler.glsl"
#Ctrl+" change-list glsl-shaders toggle "~~/shaders/SSimSuperRes.glsl"
Ctrl+à set glsl-shaders ""

a cycle audio
A cycle audio down
u cycle sub
U cycle sub down
R cycle-values video-aspect "16:9" "4:3" "2.35:1" "3:2" "-1"
R cycle-values video-aspect-override "16:9" "4:3" "2.35:1" "3:2" "-1"

M .config/sxhkd/sxhkdrc => .config/sxhkd/sxhkdrc +4 -1
@@ 95,7 95,10 @@ super + alt + shift + {Left, Down, Up, Right}
# Custom bindings

Pause
	mus_client pause_play
	mus_client TOGGLE_PLAY_PAUSE

super + {Prior, Next}
	mus_client {TRACK_PREV, TRACK_NEXT}

super + p
	passmenu --type

M .xinitrc => .xinitrc +1 -1
@@ 28,7 28,7 @@ wallpaper_cycle.sh ~/.wallpapers/current ~/.wallpapers
xwallpaper --maximize ~/.wallpapers/current                   &
redshift -t 6500:4500 -l 48.5:2.2                             &
# xscreensaver -nosplash 2>/dev/null                            &
ionice -c2 -n0 mus_daemon -u ~/.config/lemonbar/mus_status.sh &
[ -d ~/Music ] && ionice -c2 -n0 mus_daemon -s ~/.config/lemonbar/mus_status.sh &
st -c neomutt -e zsh -ic 'neomutt; exec zsh'                  &
st -c newsboat -e zsh -ic 'newsboat; exec zsh'                &
sxhkd                                                         &

M .zshenv => .zshenv +1 -1
@@ 19,7 19,7 @@ export QT_QPA_PLATFORMTHEME=qt5ct

export EDITOR='emacs -nw'
#export VISUAL="emacs"
export LESS=-RSMLi
export LESS=-RSMi

# remove / and =
WORDCHARS='*?_-.[]~&;!#$%^(){}<>'

M .zshrc => .zshrc +4 -3
@@ 4,9 4,9 @@ promptinit
prompt walters
[ "$SSH_CLIENT" ] && PS1="%B%F{red}(ssh)%b%f $PS1"

setopt auto_cd auto_pushd complete_aliases extended_glob hist_ignore_all_dups \
	inc_append_history no_hash_dirs numeric_glob_sort prompt_sp pushd_silent \
	rm_star_silent sh_word_split transient_rprompt
setopt AUTO_CD AUTO_PUSHD COMPLETE_ALIASES EXTENDED_GLOB HIST_IGNORE_ALL_DUPS \
	HIST_IGNORE_SPACE INC_APPEND_HISTORY NO_HASH_DIRS NUMERIC_GLOB_SORT \
	PROMPT_SP PUSHD_SILENT SH_WORD_SPLIT TRANSIENT_RPROMPT

zstyle ':completion:*:sudo:*' environ PATH="$SUDO_PATH:$PATH"
zstyle ':completion::complete:*' use-cache 1


@@ 26,6 26,7 @@ alias ffmpeg='ffmpeg -hide_banner'
alias ffprobe='ffprobe -hide_banner'
alias grep='grep --color=auto'
alias ls='ls --color=auto'
alias lsblk='lsblk -o NAME,MODEL,PARTLABEL,FSTYPE,SIZE,MOUNTPOINT'
alias make='make -j$(nproc)'
alias odhex='od -Ax -t x1z'
alias parallel='parallel --no-notice'