update:hypr

This commit is contained in:
dichgrem
2025-07-09 22:03:53 +08:00
parent f92ab6ccba
commit 251fda4d51
5 changed files with 8 additions and 13 deletions

View File

@ -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 &

View File

@ -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 =======

View File

@ -1,3 +0,0 @@
#!/usr/bin/bash
grim -g "$(slurp)" - | wl-copy -t image/png
notify-send "Screenshot copied to clipboard"

View File

@ -1,3 +0,0 @@
#!/usr/bin/bash
grimblast copy area || exit
notify-send "Screenshot copied to clipboard"

View File

@ -1,3 +0,0 @@
#!/usr/bin/bash
grimblast copy output || exit
notify-send "Screenshot copied to clipboard"