Compare commits
9 Commits
4c2b8eb267
...
master
Author | SHA1 | Date | |
---|---|---|---|
539102d713
|
|||
82f581d0a5
|
|||
276bb1c239
|
|||
f386c25a22
|
|||
81c5870943
|
|||
ad43053789
|
|||
418c44e47d
|
|||
17e5212f76
|
|||
d21cb6a169
|
17
config.yaml
17
config.yaml
@ -79,6 +79,17 @@ dotfiles:
|
||||
src: local/bin/convert-libaom.sh
|
||||
dst: ~/.local/bin/convert-libaom.sh
|
||||
chmod: '755'
|
||||
f_dark-mode-theme.sh:
|
||||
src: local/share/dark-mode.d/01-gtk-theme.sh
|
||||
dst: ~/.local/share/dark-mode.d/01-gtk-theme.sh
|
||||
chmod: '755'
|
||||
f_light-mode-theme.sh:
|
||||
src: local/share/light-mode.d/01-gtk-theme.sh
|
||||
dst: ~/.local/share/light-mode.d/01-gtk-theme.sh
|
||||
chmod: '755'
|
||||
f_darkman_config.yaml:
|
||||
src: config/darkman/config.yaml
|
||||
dst: ~/.config/darkman/config.yaml
|
||||
profiles:
|
||||
everywhere:
|
||||
dotfiles:
|
||||
@ -110,6 +121,9 @@ profiles:
|
||||
- f_fuzzel.ini
|
||||
- f_wezterm.lua
|
||||
- f_convert-libaom.sh
|
||||
- f_dark-mode-theme.sh
|
||||
- f_light-mode-theme.sh
|
||||
- f_darkman_config.yaml
|
||||
knafeh:
|
||||
dotfiles:
|
||||
- d_vim
|
||||
@ -135,3 +149,6 @@ profiles:
|
||||
- f_fuzzel.ini
|
||||
- f_wezterm.lua
|
||||
- f_convert-libaom.sh
|
||||
- f_dark-mode-theme.sh
|
||||
- f_light-mode-theme.sh
|
||||
- f_darkman_config.yaml
|
||||
|
1
dotfiles/config/darkman/config.yaml
Normal file
1
dotfiles/config/darkman/config.yaml
Normal file
@ -0,0 +1 @@
|
||||
usegeoclue: true
|
@ -70,7 +70,7 @@ set $WOBSOCK $XDG_RUNTIME_DIR/wob.sock
|
||||
#
|
||||
# exec swayidle -w \
|
||||
# timeout 300 'swaylock -f -c 000000' \
|
||||
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
||||
# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
|
||||
# before-sleep 'swaylock -f -c 000000'
|
||||
#
|
||||
# This will lock your screen after 300 seconds of inactivity, then turn off
|
||||
@ -130,13 +130,6 @@ input type:keyboard {
|
||||
# Exit sway (logs you out of your Wayland session)
|
||||
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
|
||||
|
||||
bindsym XF86AudioRaiseVolume exec pamixer -ui 5 && pamixer --get-volume > $WOBSOCK
|
||||
bindsym XF86AudioLowerVolume exec pamixer -ud 5 && pamixer --get-volume > $WOBSOCK
|
||||
bindsym XF86AudioMute exec pamixer --toggle-mute && ( pamixer --get-mute && echo 0 > $WOBSOCK ) || pamixer --get-volume > $WOBSOCK
|
||||
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||
bindsym XF86MonBrightnessUp exec light -S "$(light -G | awk '{ print int(($1 + .72) * 1.4) }')" && light -G | cut -d'.' -f1 > $WOBSOCK
|
||||
bindsym XF86MonBrightnessDown exec light -S "$(light -G | awk '{ print int($1 / 1.4) }')" && light -G | cut -d'.' -f1 > $WOBSOCK
|
||||
|
||||
#
|
||||
# Moving around:
|
||||
#
|
||||
@ -259,6 +252,19 @@ mode "resize" {
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
#
|
||||
# Utilities:
|
||||
#
|
||||
# Special keys to adjust volume via PulseAudio
|
||||
bindsym --locked XF86AudioMute exec pamixer --toggle-mute && ( pamixer --get-mute && echo 0 > $WOBSOCK ) || pamixer --get-volume > $WOBSOCK
|
||||
bindsym --locked XF86AudioLowerVolume exec pamixer -ud 5 && pamixer --get-volume > $WOBSOCK
|
||||
bindsym --locked XF86AudioRaiseVolume exec pamixer -ui 5 && pamixer --get-volume > $WOBSOCK
|
||||
bindsym --locked XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||
# Special keys to adjust brightness via brightnessctl
|
||||
bindsym --locked XF86MonBrightnessUp exec light -S "$(light -G | awk '{ print int(($1 + .72) * 1.4) }')" && light -G | cut -d'.' -f1 > $WOBSOCK
|
||||
bindsym --locked XF86MonBrightnessDown exec light -S "$(light -G | awk '{ print int($1 / 1.4) }')" && light -G | cut -d'.' -f1 > $WOBSOCK
|
||||
|
||||
|
||||
|
||||
#
|
||||
# Status Bar:
|
||||
|
@ -8,8 +8,8 @@ Type=simple
|
||||
ExecStart=/usr/bin/swayidle -w \
|
||||
timeout 300 'swaylock -f -c 000000 \
|
||||
-i /home/aorth/Downloads/3121px-Jerusalem-2013-Temple_Mount-Dome_of_the_Rock-Detail_01.jpg' \
|
||||
timeout 600 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
timeout 600 'swaymsg "output * power off"' \
|
||||
resume 'swaymsg "output * power on"' \
|
||||
before-sleep 'swaylock -f -c 000000 \
|
||||
-i /home/aorth/Downloads/3121px-Jerusalem-2013-Temple_Mount-Dome_of_the_Rock-Detail_01.jpg'
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-family: Source Sans Pro Semibold, sans-serif;
|
||||
font-family: Source Sans Pro Semibold, "Font Awesome 6 Free", sans-serif;
|
||||
font-size: 13px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@
|
||||
# - https://trac.ffmpeg.org/wiki/Encode/AV1
|
||||
#
|
||||
# Changes:
|
||||
# 2024-01-21: minor improvement to handling of output file name
|
||||
# 2022-06-13: use _max_crf in mkvpropedit if we don't find an acceptable vmaf
|
||||
# 2022-04-05: update VMAF log parsing
|
||||
# 2021-10-21: I tested 2-pass and found it doesn't do anything for constant
|
||||
@ -53,15 +54,16 @@ elif [[ ! -r "$1" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
INPUT_FILE_BASENAME=$(basename "$1")
|
||||
INPUT_FILE_BASENAME=$(basename -- "$1")
|
||||
INPUT_FILE_EXTENSION=${INPUT_FILE_BASENAME##*.}
|
||||
INPUT_FILE_DIRNAME=$(dirname "$1")
|
||||
INPUT_FILE_DIRNAME=$(dirname -- "$1")
|
||||
|
||||
# Check if an output file name was specified (like if we are calling from the
|
||||
# benchmarking script, in which case we want to exit as soon as possible). If
|
||||
# not then we can continue with a simple filename based on the input file's.
|
||||
if [[ -z $_output_file ]]; then
|
||||
_output_file="${INPUT_FILE_BASENAME/.*/}.webm";
|
||||
# Strip file extension from end of string and replace with webm
|
||||
_output_file="${INPUT_FILE_BASENAME%$INPUT_FILE_EXTENSION}webm";
|
||||
_benchmark_mode="false"
|
||||
else
|
||||
_benchmark_mode="true"
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# pre-process-media.sh v2022-08-01
|
||||
# pre-process-media.sh v2024-04-28
|
||||
#
|
||||
# Prepare a directory of images and videos for long-term archival by normalizing
|
||||
# their names, optimizing JPEGs with jpeg-archive, and stripping embedded MP4s
|
||||
@ -10,6 +10,7 @@
|
||||
|
||||
# Changes:
|
||||
#
|
||||
# v2024-04-28: support Pixel portrait images
|
||||
# v2022-08-01: fix minor syntax issue
|
||||
# v2022-01-15: support Pixel panorama images
|
||||
# v2021-12-26: add 'ftypiso6' for Nokia Android 9 MVIMG files, anchor regexes to
|
||||
@ -90,6 +91,9 @@ perl-rename 's/^PXL_([0-9]{4})([0-9]{2})([0-9]{2})_([0-9]+)\.NIGHT\.jpg/$1-$2-$3
|
||||
# Rename PXL_20211118_162823829.PORTRAIT.jpg to 2021-11-18_162823829.jpg (Pixel Portrait mode)
|
||||
perl-rename 's/^PXL_([0-9]{4})([0-9]{2})([0-9]{2})_([0-9]+)\.PORTRAIT\.jpg/$1-$2-$3_$4.jpg/' *.jpg
|
||||
|
||||
# Rename PXL_20230413_231026946.PORTRAIT.ORIGINAL.jpg to 2023-04-13_231026946.jpg (Pixel portrait original?)
|
||||
perl-rename 's/^PXL_([0-9]{4})([0-9]{2})([0-9]{2})_([0-9]+)\.PORTRAIT\.ORIGINAL\.jpg/$1-$2-$3_$4.jpg/' *.jpg
|
||||
|
||||
# Rename PXL_20210925_150154460.PANO.jpg to 2021-09-25_150154460.jpg (Pixel Panorama mode)
|
||||
perl-rename 's/^PXL_([0-9]{4})([0-9]{2})([0-9]{2})_([0-9]+)\.PANO\.jpg/$1-$2-$3_$4.jpg/' *.jpg
|
||||
|
||||
@ -117,6 +121,9 @@ perl-rename 's/^([0-9]{4})([0-9]{2})([0-9]{2})_([0-9]+)\.mp4/$1-$2-$3_$4.mp4/' *
|
||||
# Rename PXL_20210714_145336054.mp4 to 2021-07-14_145336054.mp4
|
||||
perl-rename 's/PXL_([0-9]{4})([0-9]{2})([0-9]{2})_([0-9]+)\.mp4/$1-$2-$3_$4\.mp4/' *.mp4
|
||||
|
||||
# Rename PXL_20240101_142720131.TS.MP4 to 2024-01-01_142720131.mp4 (Pixel 7a TopShot feature)
|
||||
perl-rename 's/PXL_([0-9]{4})([0-9]{2})([0-9]{2})_([0-9]+)\.TS\.mp4/$1-$2-$3_$4\.mp4/' *.mp4
|
||||
|
||||
# Optimize JPEGs with jpeg-archive
|
||||
find . -name '*.jpg' | chrt -b 0 parallel --no-notice "jpeg-recompress -q high {} {}"
|
||||
|
||||
|
4
dotfiles/local/share/dark-mode.d/01-gtk-theme.sh
Executable file
4
dotfiles/local/share/dark-mode.d/01-gtk-theme.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"
|
||||
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
|
4
dotfiles/local/share/light-mode.d/01-gtk-theme.sh
Executable file
4
dotfiles/local/share/light-mode.d/01-gtk-theme.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita"
|
||||
gsettings set org.gnome.desktop.interface color-scheme "prefer-light"
|
@ -42,9 +42,6 @@ if [[ "$OSTYPE" =~ ^linux.*$ ]]; then
|
||||
export SDL_VIDEODRIVER=wayland
|
||||
# Signal to xdg-desktop-portal that we're on Sway
|
||||
export XDG_CURRENT_DESKTOP=sway
|
||||
# 2023-12-27: use Vulkan renderer in Sway
|
||||
# 2024-03-23: still buggy
|
||||
#export WLR_RENDERER=vulkan
|
||||
|
||||
# 2023-02-05: tell pip/poetry not to probe for keyrings. I'm not publishing
|
||||
# packages to pypi.org and the popup during pip/poetry install is annoying.
|
||||
@ -55,6 +52,10 @@ if [[ "$OSTYPE" =~ ^linux.*$ ]]; then
|
||||
# See: https://github.com/bit-team/backintime/issues/1247
|
||||
export RSYNC_OLD_ARGS=1
|
||||
{%@@ endif @@%}
|
||||
|
||||
{%@@ if profile == "knafeh" or profile == "balozi" @@%}
|
||||
export WLR_RENDERER=vulkan
|
||||
{%@@ endif @@%}
|
||||
fi
|
||||
|
||||
# Enable zsh completions for mise version manager
|
||||
|
Reference in New Issue
Block a user