From 4a20a4401fe6a9dfafc138e90c5d4fa2dbad6299 Mon Sep 17 00:00:00 2001 From: tekki Date: Thu, 23 Apr 2026 20:13:56 +0200 Subject: [PATCH] feat: integrate hyprlauncher, hyprpwcenter, hyprsunset, hyprshade MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - F4: hyprlauncher (App-Launcher neben wofi) - F5: hyprpwcenter (PipeWire Audio-Mixer) - F6: hyprsunset toggle (~3500K Nachtmodus) - F7: hyprshade toggle (blue-light-filter.glsl) - windowrules float+center für hyprlauncher und hyprpwcenter - shortcuts.md neu erstellt (war nur in hypr.bak vorhanden) - hypridle.conf ins Repo aufgenommen - packages.txt aktualisiert --- config/hypr/hypridle.conf | 19 ++++++++ config/hypr/hyprland.conf | 30 ++++++++++++- config/hypr/scripts/hyprsunset-toggle.sh | 6 +++ config/hypr/shaders/blue-light-filter.glsl | 12 ++++++ config/hypr/shortcuts.md | 50 ++++++++++++++++++++++ packages.txt | 5 +++ 6 files changed, 121 insertions(+), 1 deletion(-) create mode 100644 config/hypr/hypridle.conf create mode 100755 config/hypr/scripts/hyprsunset-toggle.sh create mode 100644 config/hypr/shaders/blue-light-filter.glsl create mode 100644 config/hypr/shortcuts.md diff --git a/config/hypr/hypridle.conf b/config/hypr/hypridle.conf new file mode 100644 index 0000000..5e6f19b --- /dev/null +++ b/config/hypr/hypridle.conf @@ -0,0 +1,19 @@ +general { + lock_cmd = pidof hyprlock || hyprlock + before_sleep_cmd = loginctl lock-session + after_sleep_cmd = hyprctl dispatch dpms on + ignore_dbus_inhibit = false +} + +# Bildschirm sperren nach 5 Minuten Inaktivität +listener { + timeout = 300 + on-timeout = loginctl lock-session +} + +# Bildschirm ausschalten nach 10 Minuten Inaktivität +listener { + timeout = 600 + on-timeout = hyprctl dispatch dpms off + on-resume = hyprctl dispatch dpms on +} diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 68317a4..3513fb0 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -38,6 +38,7 @@ monitor=,preferred,auto,auto $terminal = kitty $fileManager = dolphin $menu = wofi --show drun +$launcher = hyprlauncher ################# @@ -56,6 +57,9 @@ exec-once = waybar # Authentication Agent exec-once = systemctl --user start hyprpolkitagent +# Bildschirmsperre (sperrt auch vor Sleep/Suspend) +exec-once = hypridle + # Wallpaper exec-once = awww-daemon @@ -319,7 +323,7 @@ bind = $mainMod SHIFT, 0, movetoworkspace, 10 # Example special workspace (scratchpad) bind = $mainMod, S, togglespecialworkspace, magic -bind = $mainMod SHIFT, S, movetoworkspace, special:magic +bind = $mainMod SHIFT, S, exec, hyprshot -m region # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, e+1 @@ -338,6 +342,12 @@ bind = $mainMod SHIFT, down, movewindow, d # Theme wechseln bind = , F3, exec, ~/.config/wal/next-theme.sh +# Neue Tools +bind = , F4, exec, $launcher +bind = , F5, exec, hyprpwcenter +bind = , F6, exec, ~/.config/hypr/scripts/hyprsunset-toggle.sh +bind = , F7, exec, hyprshade toggle ~/.config/hypr/shaders/blue-light-filter.glsl + # Touchpad ein/ausschalten (Fn+F7 = Ctrl+Super+F24 laut Firmware) bind = CTRL SUPER, F24, exec, /home/tekki/.config/hypr/scripts/touchpad-toggle.sh @@ -374,6 +384,24 @@ windowrule { size = 800 600 } +windowrule { + name = hyprlauncher-float + match:class = hyprlauncher + + float = yes + center = yes + size = 700 500 +} + +windowrule { + name = hyprpwcenter-float + match:class = hyprpwcenter + + float = yes + center = yes + size = 800 550 +} + windowrule { # Ignore maximize requests from all apps. You'll probably like this. name = suppress-maximize-events diff --git a/config/hypr/scripts/hyprsunset-toggle.sh b/config/hypr/scripts/hyprsunset-toggle.sh new file mode 100755 index 0000000..58819ed --- /dev/null +++ b/config/hypr/scripts/hyprsunset-toggle.sh @@ -0,0 +1,6 @@ +#!/bin/bash +if pidof hyprsunset > /dev/null 2>&1; then + pkill hyprsunset +else + hyprsunset -t 3500 +fi diff --git a/config/hypr/shaders/blue-light-filter.glsl b/config/hypr/shaders/blue-light-filter.glsl new file mode 100644 index 0000000..f6e1d73 --- /dev/null +++ b/config/hypr/shaders/blue-light-filter.glsl @@ -0,0 +1,12 @@ +precision mediump float; +varying vec2 v_texcoord; +uniform sampler2D tex; + +// Wärmefilter ~3500K: weniger Blau, leicht mehr Rot +void main() { + vec4 c = texture2D(tex, v_texcoord); + c.r = min(c.r * 1.06, 1.0); + c.g = c.g * 0.96; + c.b = c.b * 0.72; + gl_FragColor = c; +} diff --git a/config/hypr/shortcuts.md b/config/hypr/shortcuts.md new file mode 100644 index 0000000..58b863a --- /dev/null +++ b/config/hypr/shortcuts.md @@ -0,0 +1,50 @@ +# Hyprland Shortcuts + +## Programme +| Shortcut | Aktion | +|----------|--------| +| `SUPER + T` | Terminal öffnen | +| `SUPER + E` | Dateimanager öffnen | +| `SUPER + R` | App-Launcher (wofi) | +| `SUPER + V` | Clipboard-Verlauf | +| `SUPER + H` | Diese Hilfe | + +## Fenster +| Shortcut | Aktion | +|----------|--------| +| `SUPER + Q` | Fenster schließen | +| `SUPER + F` | Float umschalten | +| `SUPER + Pfeiltasten` | Fokus wechseln | +| `SUPER + SHIFT + Pfeiltasten` | Fenster verschieben | +| `SUPER + Maus links` | Fenster verschieben | +| `SUPER + Maus rechts` | Fenster skalieren | +| `SUPER + P` | Pseudotiling umschalten | +| `SUPER + J` | Split-Richtung umschalten | + +## Workspaces +| Shortcut | Aktion | +|----------|--------| +| `SUPER + 1-9, 0` | Workspace wechseln | +| `SUPER + SHIFT + 1-9, 0` | Fenster zu Workspace schieben | +| `SUPER + Mausrad` | Workspaces durchschalten | +| `SUPER + S` | Scratchpad ein/ausblenden | +| `SUPER + SHIFT + S` | Screenshot (Region) | + +## System +| Shortcut | Aktion | +|----------|--------| +| `SUPER + L` | Bildschirm sperren | +| `SUPER + M` | Hyprland beenden | +| `Fn + F7` | Touchpad ein/ausschalten | +| `Lautstärketasten` | Lautstärke ±5% | +| `Helligkeitstasten` | Helligkeit ±5% | +| `Medientasten` | Musik steuern | + +## Tools (F-Tasten) +| Shortcut | Aktion | +|----------|--------| +| `F3` | Nächstes Theme | +| `F4` | hyprlauncher (App-Launcher) | +| `F5` | hyprpwcenter (Audio-Mixer) | +| `F6` | Nachtmodus an/aus (hyprsunset, ~3500K) | +| `F7` | Blaulichtfilter an/aus (hyprshade) | diff --git a/packages.txt b/packages.txt index 17d023a..2c580f4 100644 --- a/packages.txt +++ b/packages.txt @@ -2,6 +2,10 @@ hyprland hyprpaper hyprlock +hypridle +hyprlauncher +hyprpwcenter +hyprsunset waybar dunst kitty @@ -16,3 +20,4 @@ git # ttf-meslo-nerd-font <- main font # otf-font-awesome <- icons in waybar # hyprpolkitagent <- authentication agent +# hyprshade-rewrite-git <- screen shaders (F7)