changes over time
This commit is contained in:
@@ -50,6 +50,7 @@ exec-once = waybar & disown
|
||||
exec-once = librewolf & disown
|
||||
exec-once = swaync & disown
|
||||
exec-once = hypridle & disown
|
||||
exec-once = seventeenlands & disown
|
||||
exec-once = ~/.config/hypr/scripts/monitor_setup.sh
|
||||
exec-once = hyprctl dispatch exec "[workspace 3 silent] signal-desktop"
|
||||
exec-once = hyprctl dispatch exec "[workspace 3 silent] discord"
|
||||
@@ -142,9 +143,6 @@ animations {
|
||||
animation = layersOut, 1, 1.5, linear, fade
|
||||
animation = fadeLayersIn, 1, 1.79, almostLinear
|
||||
animation = fadeLayersOut, 1, 1.39, almostLinear
|
||||
animation = workspaces, 1, 1.94, almostLinear, fade
|
||||
animation = workspacesIn, 1, 1.21, almostLinear, fade
|
||||
animation = workspacesOut, 1, 1.94, almostLinear, fade
|
||||
}
|
||||
|
||||
# Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/
|
||||
|
||||
@@ -82,10 +82,13 @@ if [ -z "$EXTERNAL" ]; then
|
||||
notify-send -t 3000 "Monitor Setup" "Laptop-only mode\nUsing: $LAPTOP_RES"
|
||||
hyprctl keyword monitor "$LAPTOP,$LAPTOP_RES,auto,1"
|
||||
|
||||
# Wait for monitors to be ready
|
||||
sleep 1
|
||||
|
||||
for ws in {1..5}; do
|
||||
hyprctl keyword "workspace $ws,monitor:$LAPTOP" >/dev/null 2>&1
|
||||
hyprctl dispatch workspace "$ws" >/dev/null 2>&1
|
||||
hyprctl dispatch moveworkspacetomonitor "$ws $LAPTOP" 2>/dev/null
|
||||
hyprctl dispatch moveworkspacetomonitor $ws $LAPTOP 2>/dev/null
|
||||
done
|
||||
exit 0
|
||||
fi
|
||||
@@ -96,15 +99,18 @@ if [ "$LID_STATE" = "open" ]; then
|
||||
hyprctl keyword monitor "$LAPTOP,$LAPTOP_RES,auto,1"
|
||||
hyprctl keyword monitor "$EXTERNAL,$EXT_RES,auto,1"
|
||||
|
||||
# Wait for monitors to be ready
|
||||
sleep 1
|
||||
|
||||
for ws in {1..3}; do
|
||||
hyprctl keyword "workspace $ws,monitor:$LAPTOP" >/dev/null 2>&1
|
||||
hyprctl dispatch workspace "$ws" >/dev/null 2>&1
|
||||
hyprctl dispatch moveworkspacetomonitor "$ws $LAPTOP" 2>/dev/null
|
||||
hyprctl dispatch moveworkspacetomonitor $ws $LAPTOP 2>/dev/null
|
||||
done
|
||||
for ws in {4..5}; do
|
||||
hyprctl keyword "workspace $ws,monitor:$EXTERNAL" >/dev/null 2>&1
|
||||
hyprctl dispatch workspace "$ws" >/dev/null 2>&1
|
||||
hyprctl dispatch moveworkspacetomonitor "$ws $EXTERNAL" 2>/dev/null
|
||||
hyprctl dispatch moveworkspacetomonitor $ws $EXTERNAL 2>/dev/null
|
||||
done
|
||||
# Case 3: External + closed lid
|
||||
else
|
||||
@@ -113,10 +119,13 @@ else
|
||||
hyprctl keyword monitor "$LAPTOP,disable"
|
||||
hyprctl keyword monitor "$EXTERNAL,$EXT_RES,0x0,1"
|
||||
|
||||
# Wait for monitors to be ready
|
||||
sleep 1
|
||||
|
||||
for ws in {1..5}; do
|
||||
hyprctl keyword "workspace $ws,monitor:$EXTERNAL" >/dev/null 2>&1
|
||||
hyprctl dispatch workspace "$ws" >/dev/null 2>&1
|
||||
hyprctl dispatch moveworkspacetomonitor "$ws $EXTERNAL" 2>/dev/null
|
||||
hyprctl dispatch moveworkspacetomonitor $ws $EXTERNAL 2>/dev/null
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user