nixos: gen 164 @ nix-pad — 2026-07-30 22:16
26.05.20260724.597283a (Yarara)
This commit is contained in:
+24
-1
@@ -16,6 +16,28 @@ let
|
|||||||
-g "4,DU,*,*,P,dms ipc spotlight toggle && sleep 0.4"
|
-g "4,DU,*,*,P,dms ipc spotlight toggle && sleep 0.4"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
launch-wvkbd = pkgs.writeShellScriptBin "launch-wvkbd" ''
|
||||||
|
# Adjust this path to wherever dank-material-shell drops its color file
|
||||||
|
THEME_CACHE="$HOME/.cache/DankMaterialShell/dms-colors.json"
|
||||||
|
|
||||||
|
if [ -f "$THEME_CACHE" ]; then
|
||||||
|
# Parse hex tokens directly out of the active shell profile
|
||||||
|
BG=$(jq -r '.colors.surface' "$THEME_CACHE")
|
||||||
|
FG=$(jq -r '.colors.surface_container' "$THEME_CACHE")
|
||||||
|
TXT=$(jq -r '.colors.on_surface' "$THEME_CACHE")
|
||||||
|
PRIMARY=$(jq -r '.colors.primary' "$THEME_CACHE")
|
||||||
|
ON_PRIMARY=$(jq -r '.colors.on_primary' "$THEME_CACHE")
|
||||||
|
|
||||||
|
${pkgs.wvkbd}/bin/wvkbd-mobintl --layer overlay --hidden \
|
||||||
|
--bg "$BG" --fg "$FG" --text "$TXT" \
|
||||||
|
--fg-sp "$PRIMARY" --text-sp "$ON_PRIMARY" \
|
||||||
|
-L 300
|
||||||
|
else
|
||||||
|
# Default fallback if the shell cache isn't built yet
|
||||||
|
${pkgs.wvkbd}/bin/wvkbd-wayland --layer overlay --hidden
|
||||||
|
fi
|
||||||
|
'';
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -24,8 +46,9 @@ in
|
|||||||
settings = {
|
settings = {
|
||||||
# Autostart DMS if you prefer launching it directly from Niri instead of systemd
|
# Autostart DMS if you prefer launching it directly from Niri instead of systemd
|
||||||
spawn-at-startup = [
|
spawn-at-startup = [
|
||||||
{ command = [ "dms" "run" ]; }
|
{ command = [ "${pkgs.dms}/bin/dms" "run" ]; }
|
||||||
{ command = [ "${launch-lisgd}/bin/launch-lisgd" ]; } # Spawns the daemon
|
{ command = [ "${launch-lisgd}/bin/launch-lisgd" ]; } # Spawns the daemon
|
||||||
|
{ command = [ "${launch-wvkbd}/bin/launch-wvkbd" ]; }
|
||||||
];
|
];
|
||||||
|
|
||||||
input = {
|
input = {
|
||||||
|
|||||||
@@ -38,8 +38,18 @@
|
|||||||
steam
|
steam
|
||||||
spotify
|
spotify
|
||||||
vlc
|
vlc
|
||||||
|
wvkbd
|
||||||
yt-dlp
|
yt-dlp
|
||||||
|
|
||||||
|
(pkgs.writeShellScriptBin "wvkbd-toggle" ''
|
||||||
|
PIDs="$(pgrep -x wvkbd-mobintl)"
|
||||||
|
if [ -z "$PIDs" ]; then
|
||||||
|
${wvkbd}/bin/wvkbd-mobintl -L 300
|
||||||
|
else
|
||||||
|
${killall}/bin/killall -34 wvkbd-mobintl
|
||||||
|
fi
|
||||||
|
'')
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "find-open-port" ''
|
(pkgs.writeShellScriptBin "find-open-port" ''
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "Please provide an application name, project directory, or other identifier."
|
echo "Please provide an application name, project directory, or other identifier."
|
||||||
|
|||||||
Reference in New Issue
Block a user