Improve Hyprland tooling and ignore Jellyfin secrets

This commit is contained in:
2025-09-22 16:40:50 +02:00
parent 945dc409cf
commit 32e68ab84f
17 changed files with 634 additions and 124 deletions

View File

@@ -78,13 +78,10 @@ bind = $mainMod, A, exec, $nothide
bind = $mainMod SHIFT, A, exec, $notclose
bind = $mainMod CTRL, A, exec, $notcloseall
# Screenshot
#bind = ALT SHIFT, 3, exec, GRIMBLAST_EDITOR="satty -f" grimblast --notify edit output
#bind = ALT SHIFT, 4, exec, GRIMBLAST_EDITOR="satty -f" grimblast --notify edit area
#testing stuff
bind = ALT SHIFT, 3, exec, GRIMBLAST_EDITOR="/home/cnachtigall/data/git/clone/Satty/target/debug/satty -f" grimblast --notify edit output
bind = ALT SHIFT, 4, exec, GRIMBLAST_EDITOR="/home/cnachtigall/data/git/clone/Satty/target/debug/satty -f" grimblast --notify edit area
# Screenshot & picking
bind = ALT SHIFT, 3, exec, ~/.config/hypr/scripts/hyprshot-wrapper.sh output active
bind = ALT SHIFT, 4, exec, ~/.config/hypr/scripts/hyprshot-wrapper.sh region
bind = ALT SHIFT, C, exec, hyprpicker --autocopy --format=hex
# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
@@ -140,6 +137,11 @@ bindl = , XF86AudioNext, exec, playerctl next
# SwayOSD
# Sink volume change
# Hyprshade
bind = $mainMod, F6, exec, bash -lc 'command -v hyprshade >/dev/null && hyprshade toggle dim'
bind = $mainMod, F7, exec, bash -lc 'command -v hyprshade >/dev/null && hyprshade toggle reading'
bindel = , XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise
bindel = , XF86AudioLowerVolume, exec, swayosd-client --output-volume lower
# Sink volume toggle mute

View File

@@ -1,10 +1,10 @@
# ~/.config/hypr/conf.d/50-autostart.conf
exec-once = dbus-update-activation-environment --all
exec-once = uwsm app -- polkit-gnome-authentication-agent-1
exec-once = uwsm app -- /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = uwsm app -- swaync
exec-once = uwsm app -- waybar
exec-once = uwsm app -- xdg-desktop-portal-hyprland
exec-once = uwsm app -- /usr/lib/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland
exec-once = xsettingsd
exec-once = ~/.config/waybar/scripts/hyprsunset_daemon.sh

View File

@@ -6,6 +6,13 @@ general {
after_sleep_cmd = hyprctl dispatch dpms on
}
# Pre-lock dimming
listener {
timeout = 480
on-timeout = bash -lc 'command -v hyprshade >/dev/null && hyprshade on dim'
on-resume = bash -lc 'command -v hyprshade >/dev/null && hyprshade off dim'
}
# Lock after 10 minutes
listener {
timeout = 600

View File

@@ -0,0 +1,38 @@
#!/usr/bin/env bash
set -euo pipefail
if [[ $# -eq 0 ]]; then
echo "Usage: hyprshot-wrapper.sh MODE [MODE ...]" >&2
exit 1
fi
modes=()
for mode in "$@"; do
modes+=("-m" "$mode")
done
screens_dir="${XDG_PICTURES_DIR:-$HOME/Pictures}/Screenshots"
mkdir -p "$screens_dir"
stamp=$(date +'%Y-%m-%d_%H-%M-%S')
filename="Screenshot_${stamp}.png"
filepath="$screens_dir/$filename"
if ! hyprshot --freeze "${modes[@]}" --output-folder "$screens_dir" --filename "$filename"; then
exit $?
fi
if [[ -f "$filepath" ]]; then
if command -v wl-copy >/dev/null 2>&1; then
wl-copy < "$filepath" || true
fi
satty_bin="${SATTY_BIN:-$HOME/data/git/clone/Satty/target/debug/satty}"
if [[ -x "$satty_bin" ]]; then
if command -v uwsm >/dev/null 2>&1; then
uwsm app -- "$satty_bin" -f "$filepath" &
else
"$satty_bin" -f "$filepath" &
fi
fi
fi