From 9438964c8064c279c0860eee8450416e1b2a0623 Mon Sep 17 00:00:00 2001 From: Thierry Schork Date: Fri, 13 Feb 2026 21:43:03 +0100 Subject: [PATCH] - added mpc config - removed language from waybar - corrected cycle_pactl.sh to ignoe headphone and hdmi outputs - enabled icons in fuzzel - enforcing suspend when closing the lid with no external monitor turned on - corrected windowrules for jetbrain tools --- .config/fuzzel/fuzzel.ini | 4 ++-- .config/hypr/hyprland.conf | 27 +++++++++++++++------------ .config/mpv/mpv.conf | 1 + .config/waybar/config | 14 +++++++------- bin/cycle_pactl.sh | 26 ++++++++++++++++++++++---- bin/lid_close.sh | 1 + 6 files changed, 48 insertions(+), 25 deletions(-) create mode 100644 .config/mpv/mpv.conf diff --git a/.config/fuzzel/fuzzel.ini b/.config/fuzzel/fuzzel.ini index 5c7c12e..34e73e8 100644 --- a/.config/fuzzel/fuzzel.ini +++ b/.config/fuzzel/fuzzel.ini @@ -9,7 +9,7 @@ dpi-aware=auto prompt = > # icon-theme=hicolor -# icons-enabled=yes + icons-enabled=yes fields=filename,name,exec # password-character=* # fuzzy=yes @@ -25,7 +25,7 @@ # vertical-pad=8 # inner-pad=0 -# image-size-ratio=0.5 + image-size-ratio=2 # line-height= # letter-spacing=0 diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 01f13b8..5ea61e7 100755 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -331,23 +331,26 @@ windowrule { } #jetbrain xwayland fixes. see https://github.com/hyprwm/Hyprland/issues/4257 -windowrule { - name = windowrule-jb-tag - tag = +jb - match:class = ^jetbrains-.+$ - match:float = 1 -} +#windowrule { +# name = windowrule-jb-tag +# tag = +jb +# match:class = ^jetbrains-.* +# #match:float = 1 +# float = off +#} -windowrule { - name = windowrule-jb-focus - stay_focused = on - no_initial_focus = on - match:tag = jb -} +#windowrule { +# name = windowrule-jb-focus +# stay_focused = on +# no_initial_focus = on +# match:tag = jb +#} windowrule { name = windowrule-jb-focus2 focus_on_activate = on + no_initial_focus = on + float=off match:class = ^jetbrains-(?!toolbox)" } diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf new file mode 100644 index 0000000..ebb3eae --- /dev/null +++ b/.config/mpv/mpv.conf @@ -0,0 +1 @@ +target-colorspace-hint=no diff --git a/.config/waybar/config b/.config/waybar/config index d2cf8a2..d6cb5f1 100755 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -7,9 +7,9 @@ "hyprland/workspaces": { "format": "{name}", }, - "hyprland/language":{ - "format": "{short}_{variant}", - }, + //"hyprland/language":{ + // "format": "{short}_{variant}", + //}, "user": { "format": "{user}", "interval": 60, @@ -79,12 +79,12 @@ "modules-left": [ "hyprland/workspaces", - "custom/right-arrow-dark", - "cava", - "hyprland/language", + //"custom/right-arrow-dark", + //"cava", + //"hyprland/language", //"wlr/taskbar", //"custom/space", - "custom/right-arrow-light", + //"custom/right-arrow-light", "custom/right-arrow-dark", "hyprland/window", ], diff --git a/bin/cycle_pactl.sh b/bin/cycle_pactl.sh index d7aeaf4..ebff417 100755 --- a/bin/cycle_pactl.sh +++ b/bin/cycle_pactl.sh @@ -2,16 +2,34 @@ set -e default_sink=$(pactl info | grep "Default Sink:" | cut '-d ' -f3) -sinks=$(pactl list short sinks | cut -f2 | grep -v "^easyeffects_sink$") + +# Only sinks that are available (not "not available") +sinks=$(pactl list sinks | awk ' + $1=="Name:" {name=$2} + $1=="State:" {state=$2} + $1=="Availability:" {avail=$2} + $1=="" { + if (avail != "not") print name + name=state=avail="" + } +' | grep -Ev '(^easyeffects_sink$|HDMI)') + +sinks=$(pactl list short sinks | cut -f2 | grep -Ev '(^easyeffects_sink$|HDMI|skl_hda_dsp_generic)') # for wrap-around sinks="$sinks $sinks" -next_sink=$(echo "$sinks" | awk "/$default_sink/{getline x;print x;exit;}") +next_sink=$(echo "$sinks" | awk -v ds="$default_sink" '$0==ds {getline x; print x; exit}') +if [ -z "$next_sink" ]; then + next_sink=$(echo "$sinks" | head -n 1) +fi + +echo "Setting output to $next_sink" pactl set-default-sink "$next_sink" + +easyeffects_id=$(pactl list short sinks | awk '$2=="easyeffects_sink" {print $1; exit}') pactl list short sink-inputs | \ cut -f1 | \ - xargs -I{} pactl move-sink-input {} "$next_sink" - + xargs -I{} pactl move-sink-input {} "$next_sink" \ No newline at end of file diff --git a/bin/lid_close.sh b/bin/lid_close.sh index 13f1984..459ef66 100755 --- a/bin/lid_close.sh +++ b/bin/lid_close.sh @@ -22,6 +22,7 @@ if [ "$external_on_count" -eq 0 ]; then #debounce hyprlock pgrep -x hyprlock >/dev/null || hyprlock + systemctl suspend-then-hibernatehyprctl else # docked, we turn off internal screen hyprctl keyword monitor "$INTERNAL, disable"