From 251fda4d516c08dec448085d78b384490ed7b1e1 Mon Sep 17 00:00:00 2001 From: dichgrem Date: Wed, 9 Jul 2025 22:03:53 +0800 Subject: [PATCH] update:hypr --- hypr/config/autostart.conf | 2 +- hypr/config/keybinds.conf | 10 +++++++--- hypr/scripts/screenshot | 3 --- hypr/scripts/screenshot_area | 3 --- hypr/scripts/screenshot_full | 3 --- 5 files changed, 8 insertions(+), 13 deletions(-) delete mode 100755 hypr/scripts/screenshot delete mode 100755 hypr/scripts/screenshot_area delete mode 100755 hypr/scripts/screenshot_full diff --git a/hypr/config/autostart.conf b/hypr/config/autostart.conf index dc454cd..b5f03e5 100644 --- a/hypr/config/autostart.conf +++ b/hypr/config/autostart.conf @@ -12,7 +12,7 @@ exec-once = swayosd-server # exec-once = mako & exec-once = nm-applet --indicator & exec-once = bash -c "mkfifo /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob && tail -f /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob | wob & disown" & -exec-once = /usr/lib/polkit-kde-authentication-agent-1 & +# exec-once = /usr/lib/polkit-kde-authentication-agent-1 & # ## Slow app launch fix exec-once = systemctl --user import-environment & diff --git a/hypr/config/keybinds.conf b/hypr/config/keybinds.conf index df8ce87..630cb53 100644 --- a/hypr/config/keybinds.conf +++ b/hypr/config/keybinds.conf @@ -28,9 +28,13 @@ bindd = $mainMod, G, Remove gaps between window, exec, hyprctl --batch "keyword # ======= Volume Control ======= -bindel = , XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +5% && pactl get-sink-volume @DEFAULT_SINK@ | grep -oP '\d+(?=%)' | awk '{if($1>100) system("pactl set-sink-volume @DEFAULT_SINK@ 100%")}' && pactl get-sink-volume @DEFAULT_SINK@ | grep -oP '\d+(?=%)' | awk '{print $1}' | head -1 > /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob # Raise Volume -bindel = , XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -5% && pactl get-sink-volume @DEFAULT_SINK@ | grep -oP '\d+(?=%)' | awk '{print $1}' | head -1 > /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob # Lower Volume -bindel = , XF86AudioMute, exec, amixer sset Master toggle | sed -En '/\[on\]/ s/.*\[([0-9]+)%\].*/\1/ p; /\[off\]/ s/.*/0/p' | head -1 > /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob #Mutes player audio +# bindel = , XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +5% && pactl get-sink-volume @DEFAULT_SINK@ | grep -oP '\d+(?=%)' | awk '{if($1>100) system("pactl set-sink-volume @DEFAULT_SINK@ 100%")}' && pactl get-sink-volume @DEFAULT_SINK@ | grep -oP '\d+(?=%)' | awk '{print $1}' | head -1 > /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob # Raise Volume +# bindel = , XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -5% && pactl get-sink-volume @DEFAULT_SINK@ | grep -oP '\d+(?=%)' | awk '{print $1}' | head -1 > /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob # Lower Volume +# bindel = , XF86AudioMute, exec, amixer sset Master toggle | sed -En '/\[on\]/ s/.*\[([0-9]+)%\].*/\1/ p; /\[off\]/ s/.*/0/p' | head -1 > /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob #Mutes player audio + +bindel = , XF86AudioRaiseVolume, exec, pamixer -i 5 && swayosd-client --output-volume +5 +bindel = , XF86AudioLowerVolume, exec, pamixer -d 5 && swayosd-client --output-volume -5 +bindel = , XF86AudioMute, exec, pamixer -t && swayosd-client --output-volume mute-toggle # ======= Playback Control ======= diff --git a/hypr/scripts/screenshot b/hypr/scripts/screenshot deleted file mode 100755 index ecc11b9..0000000 --- a/hypr/scripts/screenshot +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/bash -grim -g "$(slurp)" - | wl-copy -t image/png -notify-send "Screenshot copied to clipboard" diff --git a/hypr/scripts/screenshot_area b/hypr/scripts/screenshot_area deleted file mode 100755 index 52218e2..0000000 --- a/hypr/scripts/screenshot_area +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/bash -grimblast copy area || exit -notify-send "Screenshot copied to clipboard" diff --git a/hypr/scripts/screenshot_full b/hypr/scripts/screenshot_full deleted file mode 100755 index 0608891..0000000 --- a/hypr/scripts/screenshot_full +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/bash -grimblast copy output || exit -notify-send "Screenshot copied to clipboard"