nixos: gen 94 @ lilac — 2026-10-21 15:04 26.05.20260918.cf9d2fb (Yarara) -----
This commit is contained in:
+3
-21
@@ -1,27 +1,6 @@
|
||||
{ config, lib, pkgs, inputs, ... }:
|
||||
|
||||
let
|
||||
pip-handler = pkgs.writeShellScriptBin "pip-handler" ''
|
||||
# Listen to Niri window events continuously
|
||||
niri msg event-stream | while read -r line; do
|
||||
# Check if a new window event fired
|
||||
if echo "$line" | grep -q '"WindowOpened"'; then
|
||||
|
||||
# Give the window a split second to populate its title metadata
|
||||
sleep 0.1
|
||||
|
||||
# Use nirius or niri msg to evaluate the currently focused window title
|
||||
# If it matches Picture-in-Picture, invoke nirius toggle-follow-mode
|
||||
WINDOW_TITLE=$(niri msg focused-window | grep "Title:" | sed 's/Title: //')
|
||||
|
||||
if [[ "$WINDOW_TITLE" =~ [Pp]icture.in.[Pp]icture ]]; then
|
||||
# Executes nirius follow mode trigger
|
||||
nirius toggle-follow-mode --policy always
|
||||
fi
|
||||
fi
|
||||
done
|
||||
'';
|
||||
|
||||
launch-lisgd = pkgs.writeShellScriptBin "launch-lisgd" ''
|
||||
# Search for the capacitive touch layer and extract its event number.
|
||||
# UPDATE 'Touchscreen' below to match the unique word you found in step 1.
|
||||
@@ -137,6 +116,9 @@ in
|
||||
XF86MonBrightnessDown { spawn "dms" "ipc" "call" "brightness" "decrement" "5" ""; }
|
||||
XF86MonBrightnessUp { spawn "dms" "ipc" "call" "brightness" "increment" "5" ""; }
|
||||
}
|
||||
|
||||
|
||||
spawn-at-startup "niri-float-sticky"
|
||||
spawn-at-startup "/nix/store/b1kxyzg5r6644mcmjh8jwsb8rinqzsw8-launch-wvkbd/bin/launch-wvkbd"
|
||||
spawn-at-startup "/nix/store/l9k161qcs6ypzzbicjhkn8b203r610j6-launch-lisgd/bin/launch-lisgd"
|
||||
|
||||
|
||||
@@ -56,7 +56,6 @@ in
|
||||
kicad
|
||||
libreoffice
|
||||
librewolf
|
||||
nirius
|
||||
pdftk
|
||||
picom
|
||||
prismlauncher
|
||||
|
||||
Reference in New Issue
Block a user