- 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
This commit is contained in:
2026-02-13 21:43:03 +01:00
parent ee20ccb003
commit 9438964c80
6 changed files with 48 additions and 25 deletions

View File

@@ -9,7 +9,7 @@
dpi-aware=auto dpi-aware=auto
prompt = > prompt = >
# icon-theme=hicolor # icon-theme=hicolor
# icons-enabled=yes icons-enabled=yes
fields=filename,name,exec fields=filename,name,exec
# password-character=* # password-character=*
# fuzzy=yes # fuzzy=yes
@@ -25,7 +25,7 @@
# vertical-pad=8 # vertical-pad=8
# inner-pad=0 # inner-pad=0
# image-size-ratio=0.5 image-size-ratio=2
# line-height=<use font metrics> # line-height=<use font metrics>
# letter-spacing=0 # letter-spacing=0

View File

@@ -331,23 +331,26 @@ windowrule {
} }
#jetbrain xwayland fixes. see https://github.com/hyprwm/Hyprland/issues/4257 #jetbrain xwayland fixes. see https://github.com/hyprwm/Hyprland/issues/4257
windowrule { #windowrule {
name = windowrule-jb-tag # name = windowrule-jb-tag
tag = +jb # tag = +jb
match:class = ^jetbrains-.+$ # match:class = ^jetbrains-.*
match:float = 1 # #match:float = 1
} # float = off
#}
windowrule { #windowrule {
name = windowrule-jb-focus # name = windowrule-jb-focus
stay_focused = on # stay_focused = on
no_initial_focus = on # no_initial_focus = on
match:tag = jb # match:tag = jb
} #}
windowrule { windowrule {
name = windowrule-jb-focus2 name = windowrule-jb-focus2
focus_on_activate = on focus_on_activate = on
no_initial_focus = on
float=off
match:class = ^jetbrains-(?!toolbox)" match:class = ^jetbrains-(?!toolbox)"
} }

1
.config/mpv/mpv.conf Normal file
View File

@@ -0,0 +1 @@
target-colorspace-hint=no

View File

@@ -7,9 +7,9 @@
"hyprland/workspaces": { "hyprland/workspaces": {
"format": "{name}", "format": "{name}",
}, },
"hyprland/language":{ //"hyprland/language":{
"format": "{short}_{variant}", // "format": "{short}_{variant}",
}, //},
"user": { "user": {
"format": "{user}", "format": "{user}",
"interval": 60, "interval": 60,
@@ -79,12 +79,12 @@
"modules-left": [ "modules-left": [
"hyprland/workspaces", "hyprland/workspaces",
"custom/right-arrow-dark", //"custom/right-arrow-dark",
"cava", //"cava",
"hyprland/language", //"hyprland/language",
//"wlr/taskbar", //"wlr/taskbar",
//"custom/space", //"custom/space",
"custom/right-arrow-light", //"custom/right-arrow-light",
"custom/right-arrow-dark", "custom/right-arrow-dark",
"hyprland/window", "hyprland/window",
], ],

View File

@@ -2,16 +2,34 @@
set -e set -e
default_sink=$(pactl info | grep "Default Sink:" | cut '-d ' -f3) 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 # for wrap-around
sinks="$sinks sinks="$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" pactl set-default-sink "$next_sink"
easyeffects_id=$(pactl list short sinks | awk '$2=="easyeffects_sink" {print $1; exit}')
pactl list short sink-inputs | \ pactl list short sink-inputs | \
cut -f1 | \ cut -f1 | \
xargs -I{} pactl move-sink-input {} "$next_sink" xargs -I{} pactl move-sink-input {} "$next_sink"

View File

@@ -22,6 +22,7 @@ if [ "$external_on_count" -eq 0 ]; then
#debounce hyprlock #debounce hyprlock
pgrep -x hyprlock >/dev/null || hyprlock pgrep -x hyprlock >/dev/null || hyprlock
systemctl suspend-then-hibernatehyprctl
else else
# docked, we turn off internal screen # docked, we turn off internal screen
hyprctl keyword monitor "$INTERNAL, disable" hyprctl keyword monitor "$INTERNAL, disable"