first cmatrix lock fix, still needs debugging
This commit is contained in:
@@ -9,8 +9,8 @@ general {
|
|||||||
gaps_in = 2
|
gaps_in = 2
|
||||||
gaps_out = 1
|
gaps_out = 1
|
||||||
border_size = 1
|
border_size = 1
|
||||||
col.active_border = $color2
|
col.active_border = $color4
|
||||||
col.inactive_border = $color4
|
col.inactive_border = $color2
|
||||||
layout = dwindle # master|dwindle
|
layout = dwindle # master|dwindle
|
||||||
resize_on_border = true
|
resize_on_border = true
|
||||||
extend_border_grab_area = 10
|
extend_border_grab_area = 10
|
||||||
@@ -65,6 +65,8 @@ misc {
|
|||||||
swallow_regex = ^(cachy-browser|firefox|nautilus|nemo|thunar|btrfs-assistant.)$
|
swallow_regex = ^(cachy-browser|firefox|nautilus|nemo|thunar|btrfs-assistant.)$
|
||||||
focus_on_activate = true
|
focus_on_activate = true
|
||||||
vrr = 2
|
vrr = 2
|
||||||
|
# Hypridle cmatrix fix:
|
||||||
|
session_lock_xray = true
|
||||||
}
|
}
|
||||||
|
|
||||||
# https://wiki.hyprland.org/0.45.0/Configuring/Variables/#render
|
# https://wiki.hyprland.org/0.45.0/Configuring/Variables/#render
|
||||||
|
|||||||
@@ -22,18 +22,18 @@ windowrule = opacity 0.92, class:^(thunar|nemo|dolphin)$
|
|||||||
windowrule = opacity 0.96, class:^(discord|armcord|webcord)$
|
windowrule = opacity 0.96, class:^(discord|armcord|webcord)$
|
||||||
windowrule = opacity 0.95, title:^(QQ|Telegram)$
|
windowrule = opacity 0.95, title:^(QQ|Telegram)$
|
||||||
windowrule = opacity 0.95, title:^(NetEase Cloud Music Gtk4)$
|
windowrule = opacity 0.95, title:^(NetEase Cloud Music Gtk4)$
|
||||||
|
windowrule = opacity 1, class:^(kitty)$
|
||||||
# General window rules
|
# General window rules
|
||||||
windowrule = float, title:^(Picture-in-Picture)$
|
windowrule = float, title:^(Picture-in-Picture)$
|
||||||
windowrule = size 960 540, title:^(Picture-in-Picture)$
|
windowrule = size 960 540, title:^(Picture-in-Picture)$
|
||||||
windowrule = move 25%-, title:^(Picture-in-Picture)$
|
windowrule = move 25%-, title:^(Picture-in-Picture)$
|
||||||
windowrule = float, title:^(imv|mpv|danmufloat|termfloat|nemo|ncmpcpp)$
|
windowrule = float, title:^(imv|mpv|danmufloat|termfloat|nemo|ncmpcpp|nwg-look|nwg-displays)$
|
||||||
windowrule = move 25%-, title:^(imv|mpv|danmufloat|termfloat|nemo|ncmpcpp)$
|
windowrule = move 25%-, title:^(imv|mpv|danmufloat|termfloat|nemo|ncmpcpp)$
|
||||||
windowrule = size 960 540, title:^(imv|mpv|danmufloat|termfloat|nemo|ncmpcpp)$
|
windowrule = size 960 540, title:^(imv|mpv|danmufloat|termfloat|nemo|ncmpcpp)$
|
||||||
windowrule = pin, title:^(danmufloat)$
|
windowrule = pin, title:^(danmufloat)$
|
||||||
windowrule = rounding 5, title:^(danmufloat|termfloat)$
|
windowrule = rounding 5, title:^(danmufloat|termfloat)$
|
||||||
windowrule = animation slide right, class:^(kitty|Alacritty)$
|
windowrule = animation slide right, class:^(kitty|Alacritty)$
|
||||||
windowrule = noblur, class:^(org.mozilla.firefox)$
|
windowrule = noblur, class:^(org.mozilla.firefox)$
|
||||||
windowrule = opacity 0.88, class:Code
|
|
||||||
# Decorations related to floating windows on workspaces 1 to 10
|
# Decorations related to floating windows on workspaces 1 to 10
|
||||||
windowrule = bordersize 2, floating:1, onworkspace:w[fv1-10]
|
windowrule = bordersize 2, floating:1, onworkspace:w[fv1-10]
|
||||||
windowrule = bordercolor $color4, floating:1, onworkspace:w[fv1-10]
|
windowrule = bordercolor $color4, floating:1, onworkspace:w[fv1-10]
|
||||||
@@ -68,6 +68,3 @@ layerrule = animation fade 50%, wallpaper
|
|||||||
windowrule = float,class:^(Zotero)$,title:^(Citation Dialog)$
|
windowrule = float,class:^(Zotero)$,title:^(Citation Dialog)$
|
||||||
windowrule = center,class:^(Zotero)$,title:^(Citation Dialog)$
|
windowrule = center,class:^(Zotero)$,title:^(Citation Dialog)$
|
||||||
windowrule = noanim,class:^(Zotero)$,title:^(Citation Dialog)$
|
windowrule = noanim,class:^(Zotero)$,title:^(Citation Dialog)$
|
||||||
|
|
||||||
windowrule = fullscreen, class:matrix
|
|
||||||
windowrule = opacity 0.8, class:matrix
|
|
||||||
|
|||||||
@@ -1,22 +1,25 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
USER_HOME="/home/michaelb"
|
set -Eeuo pipefail
|
||||||
|
|
||||||
|
USER_HOME="$HOME"
|
||||||
MATRIX_SCRIPT="$USER_HOME/.config/swaylock/matrix.sh"
|
MATRIX_SCRIPT="$USER_HOME/.config/swaylock/matrix.sh"
|
||||||
ALACRITTY_CONF="$USER_HOME/.config/swaylock/alacritty-matrix.toml"
|
ALACRITTY_CONF="$USER_HOME/.config/swaylock/alacritty-matrix.toml"
|
||||||
|
|
||||||
mtrx_command="alacritty \
|
# 1) Spawn matrix per monitor
|
||||||
--config-file \"$ALACRITTY_CONF\" \
|
mapfile -t MONS < <(hyprctl -j monitors | jq -r '.[].name')
|
||||||
--class matrix \
|
for mon in "${MONS[@]}"; do
|
||||||
-e \"$MATRIX_SCRIPT\""
|
hyprctl dispatch focusmonitor "$mon"
|
||||||
|
sleep 0.06
|
||||||
# 1) Spawn Matrix windows per-monitor
|
kitty \
|
||||||
screens=$(hyprctl -j monitors | jq length)
|
--app-id matrix \
|
||||||
for (( i = -1; i < screens; i++ )); do
|
--title "matrix-$mon" \
|
||||||
hyprctl dispatch focusmonitor $i
|
--start-as fullscreen \
|
||||||
eval $mtrx_command &
|
bash -lc "$MATRIX_SCRIPT" &
|
||||||
|
sleep 0.12
|
||||||
done
|
done
|
||||||
|
|
||||||
# 2) Lock (blocks until unlock)
|
# 2) Lock screen (blocks until unlock)
|
||||||
swaylock
|
swaylock
|
||||||
|
|
||||||
# 3) Tear down Matrix
|
# 3) Tear down matrix
|
||||||
pkill -f "$MATRIX_SCRIPT"
|
pkill -f "$MATRIX_SCRIPT" || true
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
sleep 0.03
|
sleep 0.15
|
||||||
cmatrix
|
cmatrix
|
||||||
|
|||||||
Reference in New Issue
Block a user