Compare commits

..
Author SHA1 Message Date
johannes f5d827f3b9 feat: add ponytail skills 2026-09-11 19:41:34 +02:00
johannes 6eaec00f6b chore: remove dead config code 2026-09-09 12:21:39 +02:00
johannes bd95426255 feat: add npm global bin 2026-09-07 23:31:08 +02:00
johannes b1afff322f fix: quickshell bar spacing 2026-09-06 14:37:40 +02:00
johannes fb7781e4a7 feat: add mago php toolchain 2026-09-03 14:48:28 +02:00
johannes 582a90cc26 fix: keymap issue with aerospace 2026-09-03 13:27:24 +02:00
johannes 8024924a16 feat: add tldr 2026-09-01 23:49:47 +02:00
johannes 589561c973 feat: add new skills 2026-09-01 22:50:17 +02:00
johannes 02d8b81d70 feat: update bar 2026-08-31 21:24:31 +02:00
johannes d503ff7496 feat: wip sddm theme 2026-08-29 22:11:49 +02:00
johannes c3c1f29df0 feat: add quickshell lock screen 2026-08-29 22:11:43 +02:00
johannesandClaude Sonnet 5 215d8b7d8e feat: colorful multi-accent quickshell design system
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A8TNMgnEa7Kia5Wcz2kyDx
2026-08-29 16:16:32 +02:00
johannes 5a004b8be5 feat: add cpu + temp + ram to bar 2026-08-29 15:24:20 +02:00
johannesandClaude Sonnet 5 44cf203da4 feat: wallpaper-driven theming + native wallpaper picker
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013ZYoSQwwYWhJHLX6VBCGnF
2026-08-29 14:53:04 +02:00
johannes fef7cacc9e feat: add store links for claude skills 2026-08-29 13:56:50 +02:00
johannes 832d2544da feat: make right bar side dependant on devices 2026-08-28 19:58:21 +02:00
johannes c7fb3f9c02 fix: no apps in app launcher 2026-08-28 13:04:10 +02:00
johannes 78c23b35ca feat: add btop cuda support 2026-08-28 00:17:40 +02:00
johannes ab24daec95 feat: add easyeffects for linux 2026-08-27 21:55:41 +02:00
johannes 17281a04cd feat: add power menu & clipboard 2026-08-26 23:56:51 +02:00
johannes acc593a1e4 feat: cleanup 2026-08-26 23:22:11 +02:00
johannes 4d56835ade feat: update osd for volume 2026-08-26 22:12:40 +02:00
johannes bb0ff9089f feat: redesign quickshell menus 2026-08-26 20:48:31 +02:00
39 changed files with 748 additions and 1757 deletions

No files matched your search

-15
View File
@@ -1,18 +1,3 @@
result result
mutable_config/zed/prompts/*
hyprland-gui.lua hyprland-gui.lua
.DS_Store
# Devenv
.devenv*
devenv.local.nix
devenv.local.yaml
# direnv
.direnv
# pre-commit
.pre-commit-config.yaml
Executable
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -e
echo "=> Ensuring local config stubs exist..."
touch ~/.local_env.nu ~/.local.nu
echo "=> Running smoke test on Nushell config..."
nu -c "source ~/.dotfiles/config/nushell/env.nu; source ~/.dotfiles/config/nushell/config.nu" || {
echo "Smoke test failed! Fix Nushell config errors before applying."
exit 1
}
echo "=> Smoke test passed. Applying home-manager configuration..."
if [[ "$(uname -s)" == "Darwin" ]]; then
TARGET="mac"
else
TARGET="linux"
fi
home-manager switch --flake .#$TARGET -b "backup-$(date +%s)"
echo "=> Done."
+1 -1
View File
@@ -103,7 +103,7 @@ source $"($nu.cache-dir)/starship.nu"
source $"($nu.cache-dir)/carapace.nu" source $"($nu.cache-dir)/carapace.nu"
source $"($nu.cache-dir)/zoxide.nu" source $"($nu.cache-dir)/zoxide.nu"
source $"($nu.cache-dir)/atuin.nu" source $"($nu.cache-dir)/atuin.nu"
source $"($nu.cache-dir)/devenv.nu" source $"($nu.cache-dir)/mise.nu"
#-------- #--------
# Scripts # Scripts
+7 -2
View File
@@ -8,7 +8,7 @@ path add ~/go/bin
path add ~/.nix-profile/bin path add ~/.nix-profile/bin
path add ~/.npm-global/bin path add ~/.npm-global/bin
$env.SHELL = which nu $env.SHELL = '/usr/bin/nu'
$env.ZELLIJ_SOCKET_DIR = '/tmp/zellij' $env.ZELLIJ_SOCKET_DIR = '/tmp/zellij'
$env.RAINFROG_CONFIG = '~/.config/rainfrog' $env.RAINFROG_CONFIG = '~/.config/rainfrog'
@@ -32,7 +32,12 @@ if (which zoxide | is-not-empty) { zoxide init nushell | save -f $"($nu.cache-di
if (which atuin | is-not-empty) { atuin init nu | save -f $"($nu.cache-dir)/atuin.nu" } else { "" | save -f $"($nu.cache-dir)/atuin.nu" } if (which atuin | is-not-empty) { atuin init nu | save -f $"($nu.cache-dir)/atuin.nu" } else { "" | save -f $"($nu.cache-dir)/atuin.nu" }
$env.CARAPACE_BRIDGES = 'zsh,fish,bash,inshellisense' $env.CARAPACE_BRIDGES = 'zsh,fish,bash,inshellisense'
if (which carapace | is-not-empty) { ^carapace _carapace nushell | str replace '$env.config = $current' '$env.config = ($env.config? | default {} | merge $current)' | save -f $"($nu.cache-dir)/carapace.nu" } else { "" | save -f $"($nu.cache-dir)/carapace.nu" } if (which carapace | is-not-empty) { ^carapace _carapace nushell | str replace '$env.config = $current' '$env.config = ($env.config? | default {} | merge $current)' | save -f $"($nu.cache-dir)/carapace.nu" } else { "" | save -f $"($nu.cache-dir)/carapace.nu" }
if (which devenv | is-not-empty) { devenv hook nu | save -f $"($nu.cache-dir)/devenv.nu" } else { "" | save -f $"($nu.cache-dir)/devenv.nu" }
if (which mise | is-not-empty) {
mise activate nu | save -f $"($nu.cache-dir)/mise.nu"
} else {
"" | save -f $"($nu.cache-dir)/mise.nu"
}
# Deduplicate PATH at the end # Deduplicate PATH at the end
$env.PATH = ($env.PATH | uniq) $env.PATH = ($env.PATH | uniq)
+17 -42
View File
@@ -13,13 +13,6 @@ def hex-byte [] {
$"0x($in)" | into int $"0x($in)" | into int
} }
def to-hex-byte [n: int] {
let digits = "0123456789abcdef"
let hi = ($n // 16)
let lo = ($n mod 16)
$"($digits | str substring $hi..$hi)($digits | str substring $lo..$lo)"
}
def rgb-to-hsl [rgb: record<r: int, g: int, b: int>] { def rgb-to-hsl [rgb: record<r: int, g: int, b: int>] {
let r = $rgb.r / 255 let r = $rgb.r / 255
let g = $rgb.g / 255 let g = $rgb.g / 255
@@ -137,25 +130,9 @@ def pick-accents [flavor: string, swatches: list, want: int, min_sep: float] {
$chosen_names $chosen_names
} }
def blend-hex [a: string, b: string, ratio: float] { def container-tint [hex: string] {
# Opaque RGB interpolation - neo-brutalist surfaces are solid blocks, never # accent-tinted, ~14% opacity - a soft fill for badges/containers
# alpha blends, so "muted container" colors are baked as real flat hex. $"#24($hex | str substring 1..)"
let ar = ($a | str substring 1..2 | hex-byte)
let ag = ($a | str substring 3..4 | hex-byte)
let ab = ($a | str substring 5..6 | hex-byte)
let br = ($b | str substring 1..2 | hex-byte)
let bg = ($b | str substring 3..4 | hex-byte)
let bb = ($b | str substring 5..6 | hex-byte)
let mix = {|x, y| (($x * (1 - $ratio)) + ($y * $ratio)) | math round | into int }
let r = (to-hex-byte (do $mix $ar $br))
let g = (to-hex-byte (do $mix $ag $bg))
let b2 = (to-hex-byte (do $mix $ab $bb))
$"#($r)($g)($b2)"
}
def container-tint [base: string, accent: string] {
# Opaque muted tile: ~30% accent blended into the base surface, no alpha.
blend-hex $base $accent 0.3
} }
def write-theme-colors [flavor: string, accent_names: list] { def write-theme-colors [flavor: string, accent_names: list] {
@@ -164,39 +141,37 @@ def write-theme-colors [flavor: string, accent_names: list] {
let secondary = ($p.accents | get $accent_names.1) let secondary = ($p.accents | get $accent_names.1)
let tertiary = ($p.accents | get $accent_names.2) let tertiary = ($p.accents | get $accent_names.2)
let info = $p.accents.sapphire let info = $p.accents.sapphire
let border = $"#1a($primary | str substring 1..)" # accent-tinted, ~10% opacity
let colors = [ let colors = [
$" property color background: \"($p.base)\"" $" property color background: \"#e6($p.crust | str substring 1..)\""
$" property color surface: \"($p.mantle)\"" $" property color surface: \"#cc($p.mantle | str substring 1..)\""
$" property color surfaceHover: \"($p.surface0)\"" $" property color surfaceHover: \"#f2($p.surface0 | str substring 1..)\""
$" property color overlay: \"#cc($p.crust | str substring 1..)\"" $" property color overlay: \"#60($p.crust | str substring 1..)\""
""
$" property color crust: \"($p.crust)\""
$" property color outlineVariant: \"($p.surface1)\""
"" ""
$" property color primary: \"($primary)\"" $" property color primary: \"($primary)\""
$" property color secondary: \"($secondary)\"" $" property color secondary: \"($secondary)\""
$" property color tertiary: \"($tertiary)\"" $" property color tertiary: \"($tertiary)\""
$" property color accent: \"($primary)\"" $" property color accent: \"($primary)\""
"" ""
$" property color primaryContainer: \"(container-tint $p.surface0 $primary)\"" $" property color primaryContainer: \"(container-tint $primary)\""
$" property color secondaryContainer: \"(container-tint $p.surface0 $secondary)\"" $" property color secondaryContainer: \"(container-tint $secondary)\""
$" property color tertiaryContainer: \"(container-tint $p.surface0 $tertiary)\"" $" property color tertiaryContainer: \"(container-tint $tertiary)\""
"" ""
$" property color alert: \"($p.red)\"" $" property color alert: \"($p.red)\""
$" property color alertContainer: \"(container-tint $p.surface0 $p.red)\"" $" property color alertContainer: \"(container-tint $p.red)\""
$" property color success: \"($p.green)\"" $" property color success: \"($p.green)\""
$" property color successContainer: \"(container-tint $p.surface0 $p.green)\"" $" property color successContainer: \"(container-tint $p.green)\""
$" property color warning: \"($p.yellow)\"" $" property color warning: \"($p.yellow)\""
$" property color warningContainer: \"(container-tint $p.surface0 $p.yellow)\"" $" property color warningContainer: \"(container-tint $p.yellow)\""
$" property color info: \"($info)\"" $" property color info: \"($info)\""
$" property color infoContainer: \"(container-tint $p.surface0 $info)\"" $" property color infoContainer: \"(container-tint $info)\""
"" ""
$" property color text: \"($p.text)\"" $" property color text: \"($p.text)\""
$" property color textMuted: \"($p.subtext0)\"" $" property color textMuted: \"($p.subtext0)\""
$" property color textOnAccent: \"($p.crust)\"" $" property color textOnAccent: \"#e6($p.crust | str substring 1..)\""
"" ""
$" property color border: \"($p.crust)\"" $" property color border: \"($border)\""
] ]
let theme_path = $"($env.HOME)/.config/quickshell/components/Shared/Theme.qml" let theme_path = $"($env.HOME)/.config/quickshell/components/Shared/Theme.qml"
-65
View File
@@ -1,65 +0,0 @@
{
"nodes": {
"devenv": {
"locked": {
"dir": "src/modules",
"lastModified": 1789480904,
"narHash": "sha256-anHWHTkxI7423/eUroN9Rc4+H8VIGyIUWq/hV1egBDQ=",
"owner": "cachix",
"repo": "devenv",
"rev": "0fd5e6d3a9b2ae6f10205a3e95e0ca58d526c5a6",
"type": "github"
},
"original": {
"dir": "src/modules",
"owner": "cachix",
"repo": "devenv",
"type": "github"
}
},
"nixpkgs": {
"inputs": {
"nixpkgs-src": "nixpkgs-src"
},
"locked": {
"lastModified": 1789506231,
"narHash": "sha256-vNkJbtmqyBfFhn/HnzQo4ROuoyYWuy/allqTfJb4kMY=",
"owner": "cachix",
"repo": "devenv-nixpkgs",
"rev": "c2f38fe7f9e04d9aadd354d380f2bd40531d9737",
"type": "github"
},
"original": {
"owner": "cachix",
"ref": "rolling",
"repo": "devenv-nixpkgs",
"type": "github"
}
},
"nixpkgs-src": {
"flake": false,
"locked": {
"lastModified": 1789370336,
"narHash": "sha256-6RSEDHIWQtesQKWSu5qRai8L2h4KgCgMEfJHstW99G4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c7def046b9a883d46974757852106483d741586f",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"devenv": "devenv",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}
-20
View File
@@ -1,20 +0,0 @@
{
pkgs,
lib,
config,
inputs,
...
}:
{
packages = with pkgs; [
nixd
nixfmt
];
# https://devenv.sh/git-hooks/
# git-hooks.hooks.shellcheck.enable = true;
# See full reference at https://devenv.sh/reference/options/
}
-6
View File
@@ -1,6 +0,0 @@
# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json
inputs:
nixpkgs:
url: github:cachix/devenv-nixpkgs/rolling
allow_unfree: true
Generated
+147 -74
View File
@@ -1,17 +1,40 @@
{ {
"nodes": { "nodes": {
"agenix": {
"inputs": {
"darwin": "darwin",
"home-manager": "home-manager",
"nixpkgs": [
"nixpkgs"
],
"systems": "systems"
},
"locked": {
"lastModified": 1770165109,
"narHash": "sha256-9VnK6Oqai65puVJ4WYtCTvlJeXxMzAp/69HhQuTdl/I=",
"owner": "ryantm",
"repo": "agenix",
"rev": "b027ee29d959fda4b60b57566d64c98a202e0feb",
"type": "github"
},
"original": {
"owner": "ryantm",
"repo": "agenix",
"type": "github"
}
},
"chaotic": { "chaotic": {
"inputs": { "inputs": {
"flake-schemas": "flake-schemas", "flake-schemas": "flake-schemas",
"home-manager": "home-manager", "home-manager": "home-manager_2",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1789888251, "lastModified": 1786855262,
"narHash": "sha256-87FnTLFt4z4emGaHpr3LU+CZNPuQoIKJcch3r67sk38=", "narHash": "sha256-mMgM6dKcrpZ0sBrlnYU4EoV1JzWjIP8faWPllFXhW8g=",
"owner": "chaotic-cx", "owner": "chaotic-cx",
"repo": "nyx", "repo": "nyx",
"rev": "3664813556bca7ea70188e050ea56690bc5da59c", "rev": "651d55cfb9ae62189ce078ad35161043490c1a96",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -21,6 +44,46 @@
"type": "github" "type": "github"
} }
}, },
"darwin": {
"inputs": {
"nixpkgs": [
"agenix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1744478979,
"narHash": "sha256-dyN+teG9G82G+m+PX/aSAagkC+vUv0SgUw3XkPhQodQ=",
"owner": "lnl7",
"repo": "nix-darwin",
"rev": "43975d782b418ebf4969e9ccba82466728c2851b",
"type": "github"
},
"original": {
"owner": "lnl7",
"ref": "master",
"repo": "nix-darwin",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1785627969,
"narHash": "sha256-4dtXQk/NMePegK/nWp5NSeuZKLATItOq61lpEvmXqGw=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "427bf4bd9435fdf21321c8cc628c24efc14c0f7a",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-schemas": { "flake-schemas": {
"locked": { "locked": {
"lastModified": 1780327564, "lastModified": 1780327564,
@@ -38,16 +101,16 @@
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"chaotic", "agenix",
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1789867870, "lastModified": 1745494811,
"narHash": "sha256-sOag/7DTqw4tXLI7UxjrZxPGV+dlTe6zFtJn0VSkgFM=", "narHash": "sha256-YZCh2o9Ua1n9uCvrvi5pRxtuVNml8X2a03qIFfRKpFs=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "d2a22a3659a6ae99847ea9176114f6957b8ac62e", "rev": "abfad3d2958c9e6300a883bd443512c55dfeb1be",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -59,15 +122,16 @@
"home-manager_2": { "home-manager_2": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"chaotic",
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1789978077, "lastModified": 1786719456,
"narHash": "sha256-p/e37FfVifxJQJM7OiiVbUXdpj6eXmOJk34TKLKyYe4=", "narHash": "sha256-B74DLQs/VjlqyhnnX3tguWwghqJHWSJX30TKZuAljIg=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "a26f7158fbc4aa740fcc7fa79a01e1ed29910bc2", "rev": "83b7606dcf44abe3a94b86e8bb2b3355d22e8797",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -79,21 +143,19 @@
"home-manager_3": { "home-manager_3": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"nixcord",
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1789267039, "lastModified": 1784789275,
"narHash": "sha256-LWiBv9yAYFi2LPbUhDGHPGKYskJQjj2fw12OlyO1uQo=", "narHash": "sha256-cgRTWuG+u1tBPhm01JrId2k0Bni09phVJ1Q0BZlRd7M=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "ec172013fa62135f58fb58dd17ae9651e8f39727", "rev": "3b0e6bbd65869af1beadf5963a99befc179d209f",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-26.05",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
@@ -105,11 +167,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1787844471, "lastModified": 1787208859,
"narHash": "sha256-AKnBFjkZs4UGZqMT3yIkaCdpvM2fVccU1dVuK5AVZBk=", "narHash": "sha256-f8ygnyOlwXGfM31+GB+B8y7TYDShyzHKuPo1ww+uxtQ=",
"owner": "BlueManCZ", "owner": "BlueManCZ",
"repo": "hyprmod", "repo": "hyprmod",
"rev": "ffd47d804d8996cf3852dbb7ca1c949c424a57fb", "rev": "bf5b55a9a89d7eab5a6d6947743de9dcb1cacd4a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -118,42 +180,19 @@
"type": "github" "type": "github"
} }
}, },
"nix-darwin": {
"inputs": {
"nixpkgs": [
"nixcord",
"nixpkgs"
]
},
"locked": {
"lastModified": 1783744694,
"narHash": "sha256-2cp6N3rrwnGYLTx9l6N+NI+kwrCWxvJUbj5WJhvB29A=",
"owner": "nix-darwin",
"repo": "nix-darwin",
"rev": "c3e90c89649b07d1a96e4b9dd6cd0d6e44b91a74",
"type": "github"
},
"original": {
"owner": "nix-darwin",
"ref": "nix-darwin-26.05",
"repo": "nix-darwin",
"type": "github"
}
},
"nixcord": { "nixcord": {
"inputs": { "inputs": {
"home-manager": "home-manager_3", "flake-parts": "flake-parts",
"nix-darwin": "nix-darwin",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"nixpkgs-nixcord": "nixpkgs-nixcord", "nixpkgs-nixcord": "nixpkgs-nixcord",
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1789982989, "lastModified": 1786878900,
"narHash": "sha256-SMtg4nE6ehDMGHQ4JcATqHUbnao75siok9l4BYHl2eQ=", "narHash": "sha256-Q2Ed3e0TvgP6vNp6j6Lw8ReObARjl3TQgMWr1uutOjs=",
"owner": "kaylorben", "owner": "kaylorben",
"repo": "nixcord", "repo": "nixcord",
"rev": "faa48ca1531b03291cb071edb1ee8fa752e42c90", "rev": "c2739f4f45543aad98ec0b0bb27975fb2ff55455",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -164,24 +203,42 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1789785513, "lastModified": 1786599213,
"narHash": "sha256-BMbikTjbh5H7ac/OjwGoJrlooh4dgNqhs51ABM83M7g=", "narHash": "sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU=",
"rev": "20b1ddd1aa5ace70c9468305030aa4f9ef79671b", "owner": "NixOS",
"type": "tarball", "repo": "nixpkgs",
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1076192.20b1ddd1aa5a/nixexprs.tar.zst" "rev": "0e251e24a4f24e036a084b6b4b2d2491af4167f4",
"type": "github"
}, },
"original": { "original": {
"type": "tarball", "owner": "NixOS",
"url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst" "ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1785031560,
"narHash": "sha256-OmshNvn2vupOFpYinLUu+1Dnpu4n7Q5N3ggGVNHpkUI=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "0e79af5e3d4dcfcd676ab5ba3f95d2e3352e078c",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
} }
}, },
"nixpkgs-nixcord": { "nixpkgs-nixcord": {
"locked": { "locked": {
"lastModified": 1789459628, "lastModified": 1786711500,
"narHash": "sha256-JOaadoI/IC9qEvwlnjwAhwdcWkCDqEeOJ+cOtUH/8RQ=", "narHash": "sha256-QvnceIGTBeDvDd9oCn+GvdsnkquliuwbVgpiRH68qaQ=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b67c7a60c3732edd4b947a7df8af06215851a614", "rev": "02e08985a27c65ffd33d434eeb2e660a2e4dc84d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -193,11 +250,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1789459628, "lastModified": 1786711500,
"narHash": "sha256-JOaadoI/IC9qEvwlnjwAhwdcWkCDqEeOJ+cOtUH/8RQ=", "narHash": "sha256-QvnceIGTBeDvDd9oCn+GvdsnkquliuwbVgpiRH68qaQ=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b67c7a60c3732edd4b947a7df8af06215851a614", "rev": "02e08985a27c65ffd33d434eeb2e660a2e4dc84d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -209,11 +266,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1789921291, "lastModified": 1784497964,
"narHash": "sha256-Ft/BRnIqw1MywFoXydKobjjWmDFgDdYtSpJliE8+yUw=", "narHash": "sha256-vlHUuqAcbcH2RKmHbPiuQzbv1pnzzavXnI62RD0bqCU=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "44a91898084f46797b5fac650c7e8c9ac38c43d4", "rev": "241313f4e8e508cb9b13278c2b0fa25b9ca27163",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -225,11 +282,11 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1789149629, "lastModified": 1787360063,
"narHash": "sha256-eQUZVehWLDBbpBR2rq6DnuRee1ULT6Y675RhsYDSjYI=", "narHash": "sha256-95aJfHyQTLWslCXFVNB0odgmVkpdmDezQwTg9mhqV1E=",
"rev": "eaad089433ca2bb662274377d33df3d0e51ef28b", "rev": "2c423e03bbafcff28bfadc6781a4a8257f205cb5",
"type": "tarball", "type": "tarball",
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1072397.eaad089433ca/nixexprs.tar.xz" "url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1059570.2c423e03bbaf/nixexprs.tar.xz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",
@@ -238,8 +295,9 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"agenix": "agenix",
"chaotic": "chaotic", "chaotic": "chaotic",
"home-manager": "home-manager_2", "home-manager": "home-manager_3",
"hyprmod": "hyprmod", "hyprmod": "hyprmod",
"nixcord": "nixcord", "nixcord": "nixcord",
"nixpkgs": "nixpkgs_3", "nixpkgs": "nixpkgs_3",
@@ -249,14 +307,14 @@
"spicetify": { "spicetify": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs_4",
"systems": "systems" "systems": "systems_2"
}, },
"locked": { "locked": {
"lastModified": 1789291406, "lastModified": 1787460061,
"narHash": "sha256-lfZ7yAaTZMuAzOSLjJ7ivrKIFk0E11koWTVgkWSXwuE=", "narHash": "sha256-r2FJY01jRVhrZIKPdhQ3QFYsAz3wjilWTMSSH7VMOeo=",
"owner": "Gerg-L", "owner": "Gerg-L",
"repo": "spicetify-nix", "repo": "spicetify-nix",
"rev": "09eed5c95105aada9ffabd4c7eb6b345dc4ba66f", "rev": "a8adfd6f9f341dd586d5c06dda3bbfa21c6014e7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -280,6 +338,21 @@
"type": "github" "type": "github"
} }
}, },
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"treefmt-nix": { "treefmt-nix": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@@ -288,11 +361,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1786901030, "lastModified": 1785945821,
"narHash": "sha256-WSFCsDSE5ffgD2MqzkM2CYjeFiKhRF/dJUN8uedb6YE=", "narHash": "sha256-NLSyTCW4K4ofhNBllt3omPasm6QpralXH1DBZOc91Dw=",
"owner": "numtide", "owner": "numtide",
"repo": "treefmt-nix", "repo": "treefmt-nix",
"rev": "27b3b12a8e6375f28ebe122f07d230ca5459bbfa", "rev": "ae7910970dddc408fe6ab1c8e4b277bb21d72dc0",
"type": "github" "type": "github"
}, },
"original": { "original": {
+19 -27
View File
@@ -7,41 +7,33 @@
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable"; chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
nixcord.url = "github:kaylorben/nixcord"; nixcord.url = "github:kaylorben/nixcord";
hyprmod = { hyprmod = {
url = "github:BlueManCZ/hyprmod"; url = "github:BlueManCZ/hyprmod";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
spicetify.url = "github:Gerg-L/spicetify-nix"; spicetify.url = "github:Gerg-L/spicetify-nix";
}; };
outputs = outputs = { self, nixpkgs, home-manager, agenix, chaotic, nixcord, hyprmod, spicetify, ... }:
{
self,
nixpkgs,
home-manager,
chaotic,
nixcord,
hyprmod,
spicetify,
...
}:
let let
mkHome = mkHome = system: home-manager.lib.homeManagerConfiguration {
system: pkgs = nixpkgs.legacyPackages.${system};
home-manager.lib.homeManagerConfiguration { extraSpecialArgs = { inherit hyprmod spicetify; };
pkgs = nixpkgs.legacyPackages.${system}; modules = [
extraSpecialArgs = { inherit hyprmod spicetify; }; agenix.homeManagerModules.age
modules = [ nixcord.homeModules.nixcord
nixcord.homeModules.nixcord ./home.nix
./home.nix chaotic.homeModules.default
chaotic.homeModules.default spicetify.homeManagerModules.default
spicetify.homeManagerModules.default ];
]; };
}; in {
in
{
homeConfigurations = { homeConfigurations = {
mac = mkHome "aarch64-darwin"; mac = mkHome "aarch64-darwin";
linux = mkHome "x86_64-linux"; linux = mkHome "x86_64-linux";
+95 -123
View File
@@ -1,11 +1,4 @@
{ { config, pkgs, lib, hyprmod, spicetify, ... }:
config,
pkgs,
lib,
hyprmod,
spicetify,
...
}:
{ {
nix.package = pkgs.nix; nix.package = pkgs.nix;
@@ -13,8 +6,7 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
home.username = "johannes"; home.username = "johannes";
home.homeDirectory = home.homeDirectory = if pkgs.stdenv.hostPlatform.isDarwin then "/Users/johannes" else "/home/johannes";
if pkgs.stdenv.hostPlatform.isDarwin then "/Users/johannes" else "/home/johannes";
home.stateVersion = "24.05"; home.stateVersion = "24.05";
@@ -29,81 +21,70 @@
hyprcursor.size = 24; hyprcursor.size = 24;
}; };
home.packages = home.packages = with pkgs; [
with pkgs; git
[ curl
curl wget
wget neovim
neovim ripgrep
ripgrep fd
fd nushell
nushell starship
starship zoxide
zoxide lazygit
lazygit fastfetch
fastfetch eza
eza atuin
atuin zellij
zellij herdr
herdr unp
unp carapace
carapace bun
bun nodejs
nodejs pipx
pipx python3
python3 uv
uv rustup
rustup cargo-binstall
cargo-binstall mise
mise television
television pay-respects
pay-respects sops
sops age
age devenv
devenv pi-coding-agent
pi-coding-agent yazi
yazi unzip
unzip obsidian
obsidian htop
htop mpv
mpv jellytui
jellytui tlrc
tlrc mago
mago ] ++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [
zotero owncloud-client
] wl-clipboard
++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [ cliphist
owncloud-client hyprmod.packages.${pkgs.stdenv.hostPlatform.system}.default
wl-clipboard librepods
cliphist easyeffects
hyprmod.packages.${pkgs.stdenv.hostPlatform.system}.default lutris
librepods claude-code
easyeffects imagemagick
lutris mangohud
claude-code ];
imagemagick
mangohud
libsecret
termius
];
home.file = { home.file = {
".config" = { ".config" = {
source = ./config; source = ./config;
recursive = true; recursive = true;
}; };
".config/yazi".source = ".config/yazi".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/yazi";
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/yazi"; ".config/zed".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/zed";
".config/zed".source = ".config/btop".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/btop";
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/zed"; ".config/lazygit".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/lazygit";
".config/btop".source = ".config/hypr".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/hypr";
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/btop"; ".config/quickshell".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/quickshell";
".config/lazygit".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/lazygit";
".config/hypr".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/hypr";
".config/quickshell".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/quickshell";
".local/share" = { ".local/share" = {
source = ./local_share; source = ./local_share;
recursive = true; recursive = true;
@@ -112,14 +93,20 @@
source = ./local_bin; source = ./local_bin;
recursive = true; recursive = true;
}; };
".agents".source = ".agents".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/agents";
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/agents"; ".claude/skills".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/agents/skills";
".claude/skills".source = ".pi/agent/settings.json".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/pi/agent/settings.json";
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/agents/skills"; ".pi/extensions".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/pi/extensions";
".pi/agent/settings.json".source = };
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/pi/agent/settings.json";
".pi/extensions".source = age.identityPaths = [ "${config.home.homeDirectory}/.config/age/keys.txt" ];
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/pi/extensions"; age.secrets."git_config" = {
file = ./secrets/git_config.age;
path = "${config.home.homeDirectory}/.config/git/config";
};
age.secrets."jj_config" = {
file = ./secrets/jj_config.age;
path = "${config.home.homeDirectory}/.config/jj/config.toml";
}; };
home.file.".config/ghostty/config".text = '' home.file.".config/ghostty/config".text = ''
@@ -129,35 +116,20 @@
background-blur = true background-blur = true
auto-update = check auto-update = check
macos-option-as-alt = left macos-option-as-alt = left
shell-integration = nushell
shell-integration-features = ssh-env,ssh-terminfo shell-integration-features = ssh-env,ssh-terminfo
'' '' + lib.optionalString pkgs.stdenv.hostPlatform.isLinux ''
+ lib.optionalString pkgs.stdenv.hostPlatform.isLinux ''
command = nu command = nu
''; '';
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
home.activation.cloneNvim = lib.hm.dag.entryAfter [ "writeBoundary" ] '' home.activation.cloneNvim = lib.hm.dag.entryAfter ["writeBoundary"] ''
if [ ! -d "$HOME/.config/nvim" ]; then if [ ! -d "$HOME/.config/nvim" ]; then
${pkgs.git}/bin/git clone https://github.com/jokresner/nvim "$HOME/.config/nvim" ${pkgs.git}/bin/git clone https://github.com/jokresner/nvim "$HOME/.config/nvim"
fi fi
''; '';
programs.git = {
enable = true;
lfs.enable = true;
settings = {
credential.helper =
if pkgs.stdenv.hostPlatform.isLinux then
"${pkgs.git.override { withLibsecret = true; }}/bin/git-credential-libsecret"
else
"osxkeychain";
user.name = "Johannes Kresner";
user.email = "johannes@jokresner.de";
push.autoSetupRemote = true;
};
};
programs.nixcord = { programs.nixcord = {
enable = true; enable = true;
vesktop.enable = true; vesktop.enable = true;
@@ -169,30 +141,30 @@
plugins = { plugins = {
# --- UI & Experience --- # --- UI & Experience ---
betterFolders.enable = true; # Better folder icons and controls betterFolders.enable = true; # Better folder icons and controls
betterRoleContext.enable = true; # Show roles in more places betterRoleContext.enable = true; # Show roles in more places
clearUrls.enable = true; # Remove tracking parameters from links clearUrls.enable = true; # Remove tracking parameters from links
memberCount.enable = true; # Show server member count next to the server name memberCount.enable = true; # Show server member count next to the server name
showHiddenThings.enable = true; # See hidden channels (read-only) showHiddenThings.enable = true; # See hidden channels (read-only)
showMeYourName.enable = true; # Show original usernames next to nicknames showMeYourName.enable = true; # Show original usernames next to nicknames
alwaysAnimate.enable = true; # Always animate channel icons alwaysAnimate.enable = true; # Always animate channel icons
biggerStreamPreview.enable = true; # Bigger stream previews biggerStreamPreview.enable = true; # Bigger stream previews
# --- Media & Embeds --- # --- Media & Embeds ---
fixSpotifyEmbeds.enable = true; # Fix broken Spotify embeds fixSpotifyEmbeds.enable = true; # Fix broken Spotify embeds
fixYoutubeEmbeds.enable = true; # Fix broken YouTube video embeds fixYoutubeEmbeds.enable = true; # Fix broken YouTube video embeds
volumeBooster.enable = true; # Boost user volume past 200% volumeBooster.enable = true; # Boost user volume past 200%
youtubeAdblock.enable = true; # Block ads inside YouTube embeds youtubeAdblock.enable = true; # Block ads inside YouTube embeds
spotifyControls.enable = true; # Show Spotify controls spotifyControls.enable = true; # Show Spotify controls
# --- System & Fixes --- # --- System & Fixes ---
crashHandler.enable = true; # Prevent Discord from completely crashing crashHandler.enable = true; # Prevent Discord from completely crashing
webScreenShareFixes.enable = pkgs.stdenv.hostPlatform.isLinux; # Essential for Wayland screen sharing webScreenShareFixes.enable = pkgs.stdenv.hostPlatform.isLinux; # Essential for Wayland screen sharing
# --- Utility & Fun --- # --- Utility & Fun ---
fakeNitro.enable = true; # Stream in high quality, use external emojis fakeNitro.enable = true; # Stream in high quality, use external emojis
messageLogger.enable = true; # Keep deleted messages visible in your client locally messageLogger.enable = true; # Keep deleted messages visible in your client locally
whoReacted.enable = true; # Show avatars of users who reacted to a message whoReacted.enable = true; # Show avatars of users who reacted to a message
}; };
}; };
}; };
+7 -4
View File
@@ -78,7 +78,7 @@ hl.config({
gaps_out = 20, gaps_out = 20,
border_size = 2, border_size = 2,
col = { col = {
active_border = "rgb(cba6f7)", active_border = "rgb(f38ba8)",
inactive_border = "rgb(45475a)", inactive_border = "rgb(45475a)",
}, },
resize_on_border = false, resize_on_border = false,
@@ -86,11 +86,15 @@ hl.config({
layout = "dwindle", layout = "dwindle",
}, },
decoration = { decoration = {
rounding = 0, rounding = 2,
rounding_power = 2,
active_opacity = 1.0, active_opacity = 1.0,
inactive_opacity = 0.9, inactive_opacity = 0.9,
shadow = { shadow = {
enabled = false, enabled = true,
range = 4,
render_power = 3,
color = "rgba(1a1a1aee)",
}, },
blur = { blur = {
enabled = true, enabled = true,
@@ -174,7 +178,6 @@ hl.bind(mainMod .. " + E", hl.dsp.exec_cmd(fileManager))
hl.bind(mainMod .. " + H", hl.dsp.window.float({ action = "toggle" })) hl.bind(mainMod .. " + H", hl.dsp.window.float({ action = "toggle" }))
hl.bind(mainMod .. " + Space", hl.dsp.exec_cmd(menu)) hl.bind(mainMod .. " + Space", hl.dsp.exec_cmd(menu))
hl.bind(mainMod .. " + V", hl.dsp.exec_cmd("quickshell ipc call clipboardManager toggle")) hl.bind(mainMod .. " + V", hl.dsp.exec_cmd("quickshell ipc call clipboardManager toggle"))
hl.bind(mainMod .. " + A", hl.dsp.exec_cmd("quickshell ipc call quickSettings toggle"))
hl.bind(mainMod .. " + P", hl.dsp.window.pseudo()) hl.bind(mainMod .. " + P", hl.dsp.window.pseudo())
hl.bind(mainMod .. " + F", hl.dsp.window.fullscreen({ action = "toggle" })) hl.bind(mainMod .. " + F", hl.dsp.window.fullscreen({ action = "toggle" }))
hl.bind(mainMod .. " + L", hl.dsp.exec_cmd(lock)) hl.bind(mainMod .. " + L", hl.dsp.exec_cmd(lock))
@@ -106,9 +106,8 @@ PanelWindow {
delegate: Rectangle { delegate: Rectangle {
width: 24 width: 24
height: 24 height: 24
radius: Theme.geometry.radiusTiny
color: modelData.active ? Theme.colors.primary : Theme.colors.surfaceHover color: modelData.active ? Theme.colors.primary : Theme.colors.surfaceHover
border.width: Theme.geometry.borderWidth
border.color: Theme.colors.crust
Behavior on color { ColorAnimation { duration: Theme.animation.durationFast } } Behavior on color { ColorAnimation { duration: Theme.animation.durationFast } }
@@ -236,17 +235,6 @@ PanelWindow {
: "No battery" : "No battery"
visible: battery.isPresent visible: battery.isPresent
} }
TrayIcon {
glyph: "⚙" // gear (U+2699)
active: barWindow.rootState.quickSettingsOpen
tint: Theme.colors.primary
tooltip: "Quick Settings (SUPER+A)"
onClicked: {
barWindow.rootState.quickSettingsOpen = !barWindow.rootState.quickSettingsOpen;
if (barWindow.rootState.quickSettingsOpen) barWindow.rootState.closeOtherOverlays("quickSettings");
}
}
} }
property QtObject battery: UPower.displayDevice property QtObject battery: UPower.displayDevice
@@ -472,16 +460,16 @@ PanelWindow {
property string tooltip: "" property string tooltip: ""
property bool active: false property bool active: false
property color tint: Theme.colors.primary property color tint: Theme.colors.primary
signal clicked()
width: 24 width: 24
height: 24 height: 24
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
color: hoverArea.containsMouse ? Theme.colors.surfaceHover : "transparent" radius: Theme.geometry.radiusTiny
border.width: trayIcon.active ? Theme.geometry.borderWidth : 0 color: hoverArea.containsMouse
border.color: trayIcon.tint ? Theme.colors.surfaceHover
: (trayIcon.active ? Qt.alpha(trayIcon.tint, 0.15) : "transparent")
Behavior on color { ColorAnimation { duration: Theme.animation.durationFast } } Behavior on color { ColorAnimation { duration: Theme.animation.durationFast } }
@@ -500,7 +488,6 @@ PanelWindow {
id: hoverArea id: hoverArea
anchors.fill: parent anchors.fill: parent
hoverEnabled: true hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onEntered: { onEntered: {
if (trayIcon.tooltip.length > 0) { if (trayIcon.tooltip.length > 0) {
// Anchor on the icon's horizontal center; the tooltip // Anchor on the icon's horizontal center; the tooltip
@@ -510,7 +497,6 @@ PanelWindow {
} }
} }
onExited: barWindow.hideTooltip() onExited: barWindow.hideTooltip()
onClicked: trayIcon.clicked()
} }
} }
} }
@@ -46,7 +46,7 @@ PanelWindow {
tint: Theme.colors.secondary tint: Theme.colors.secondary
glow: true glow: true
Behavior on scale { NumberAnimation { duration: Theme.animation.durationFast; easing.type: Easing.OutCubic } } Behavior on scale { SpringAnimation { spring: Theme.motion.springSoft.spring; damping: Theme.motion.springSoft.damping } }
Behavior on opacity { NumberAnimation { duration: Theme.animation.durationFast } } Behavior on opacity { NumberAnimation { duration: Theme.animation.durationFast } }
Behavior on height { NumberAnimation { duration: Theme.animation.durationFast; easing.type: Easing.OutCubic } } Behavior on height { NumberAnimation { duration: Theme.animation.durationFast; easing.type: Easing.OutCubic } }
@@ -157,7 +157,7 @@ PanelWindow {
Text { Text {
text: model.content text: model.content
color: clipRow.selected ? Theme.colors.textOnAccent : Theme.colors.text color: Theme.colors.text
font.family: Theme.font.family font.family: Theme.font.family
font.pixelSize: Theme.type.label font.pixelSize: Theme.type.label
anchors.left: parent.left anchors.left: parent.left
@@ -46,7 +46,6 @@ PanelWindow {
} }
} }
readonly property int titleBarHeight: 28
readonly property int headerHeight: 50 readonly property int headerHeight: 50
readonly property int footerHeight: 24 readonly property int footerHeight: 24
readonly property int emptyStateHeight: 40 readonly property int emptyStateHeight: 40
@@ -95,8 +94,7 @@ PanelWindow {
// Sized appropriately for a 2560x1440 screen // Sized appropriately for a 2560x1440 screen
width: 800 width: 800
height: Math.min(600, height: Math.min(600,
titleBarHeight + Theme.geometry.spacing headerHeight + Theme.geometry.spacing
+ headerHeight + Theme.geometry.spacing
+ (appModel.count > 0 ? appList.contentHeight : emptyStateHeight) + Theme.geometry.spacing + (appModel.count > 0 ? appList.contentHeight : emptyStateHeight) + Theme.geometry.spacing
+ footerHeight + footerHeight
+ Theme.geometry.padding * 2) + Theme.geometry.padding * 2)
@@ -104,7 +102,7 @@ PanelWindow {
tint: Theme.colors.primary tint: Theme.colors.primary
glow: true glow: true
Behavior on scale { NumberAnimation { duration: Theme.animation.durationFast; easing.type: Easing.OutCubic } } Behavior on scale { SpringAnimation { spring: Theme.motion.springSoft.spring; damping: Theme.motion.springSoft.damping } }
Behavior on opacity { NumberAnimation { duration: Theme.animation.durationFast } } Behavior on opacity { NumberAnimation { duration: Theme.animation.durationFast } }
Behavior on height { NumberAnimation { duration: Theme.animation.durationFast; easing.type: Easing.OutCubic } } Behavior on height { NumberAnimation { duration: Theme.animation.durationFast; easing.type: Easing.OutCubic } }
@@ -120,49 +118,11 @@ PanelWindow {
anchors.margins: Theme.geometry.padding anchors.margins: Theme.geometry.padding
spacing: Theme.geometry.spacing spacing: Theme.geometry.spacing
Item {
width: parent.width
height: paletteWindow.titleBarHeight
Row {
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.geometry.spacing / 2
Rectangle {
width: 10
height: 10
anchors.verticalCenter: parent.verticalCenter
color: Theme.colors.primary
border.width: Theme.geometry.borderWidth
border.color: Theme.colors.crust
}
Text {
text: "QUICKSHELL :: APP_ROFI_MODAL [WAYLAND]"
color: Theme.colors.textMuted
font.family: Theme.font.family
font.bold: true
font.pixelSize: Theme.type.caption
}
}
Text {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
text: "[ESC] Close"
color: Theme.colors.textMuted
font.family: Theme.font.family
font.pixelSize: Theme.type.caption
}
}
TextField { TextField {
id: searchInput id: searchInput
width: parent.width width: parent.width
height: paletteWindow.headerHeight height: paletteWindow.headerHeight
placeholder: "Search apps..." placeholder: "Search apps..."
prefix: "❯"
onVisibleChanged: { onVisibleChanged: {
if (visible) focusInput(); if (visible) focusInput();
@@ -295,7 +255,6 @@ PanelWindow {
model: ListModel { id: appModel } model: ListModel { id: appModel }
delegate: ListRow { delegate: ListRow {
id: appRow
width: appList.width width: appList.width
selected: ListView.isCurrentItem selected: ListView.isCurrentItem
accent: model.isLastUsed ? Theme.colors.secondary : Theme.colors.primary accent: model.isLastUsed ? Theme.colors.secondary : Theme.colors.primary
@@ -318,6 +277,7 @@ PanelWindow {
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
color: Theme.colors.primary color: Theme.colors.primary
radius: 12
visible: parent.status === Image.Error || parent.status === Image.Null || model.iconName === "" visible: parent.status === Image.Error || parent.status === Image.Null || model.iconName === ""
Text { Text {
@@ -332,7 +292,7 @@ PanelWindow {
Text { Text {
text: model.appName text: model.appName
color: appRow.selected ? Theme.colors.textOnAccent : Theme.colors.text color: Theme.colors.text
font.family: Theme.font.family font.family: Theme.font.family
font.pixelSize: Theme.type.label font.pixelSize: Theme.type.label
anchors.left: appIcon.right anchors.left: appIcon.right
@@ -344,42 +304,14 @@ PanelWindow {
} }
} }
Item { HintBar {
width: parent.width width: parent.width
height: paletteWindow.footerHeight height: paletteWindow.footerHeight
hints: [
HintBar { { key: "↑↓", label: "Navigate" },
anchors.left: parent.left { key: "↵", label: "Launch" },
anchors.verticalCenter: parent.verticalCenter { key: "Esc", label: "Close" }
hints: [ ]
{ key: "↑↓", label: "Navigate" },
{ key: "↵", label: "Launch" },
{ key: "Esc", label: "Close" }
]
}
Row {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.geometry.spacing / 2
Rectangle {
width: 8
height: 8
anchors.verticalCenter: parent.verticalCenter
color: Theme.colors.tertiary
border.width: Theme.geometry.borderWidth
border.color: Theme.colors.crust
}
Text {
text: "HYPR_IPC OK"
color: Theme.colors.text
font.family: Theme.font.family
font.bold: true
font.pixelSize: Theme.type.caption
}
}
} }
} }
@@ -1,7 +1,6 @@
import QtQuick import QtQuick
import Quickshell import Quickshell
import Quickshell.Wayland import Quickshell.Wayland
import Quickshell.Io
import Quickshell.Services.Pam import Quickshell.Services.Pam
import Quickshell.Services.UPower import Quickshell.Services.UPower
import "../Shared" import "../Shared"
@@ -93,68 +92,6 @@ WlSessionLock {
precision: SystemClock.Seconds precision: SystemClock.Seconds
} }
property string hostLabel: "localhost"
Process {
id: hostnameProcess
command: ["hostname"]
running: true
stdout: StdioCollector {
onStreamFinished: lockSurface.hostLabel = this.text.trim()
}
}
// Top telemetry strip
Item {
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.margins: Theme.geometry.spacing * 2
height: 28
Row {
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.geometry.spacing
Pill {
tint: Theme.colors.success
Rectangle { width: 6; height: 6; anchors.verticalCenter: parent.verticalCenter; color: Theme.colors.success }
Text {
text: Quickshell.env("USER") + " // " + lockSurface.hostLabel
color: Theme.colors.text
font.family: Theme.font.family
font.pixelSize: Theme.type.caption
font.bold: true
}
}
Pill {
tint: Theme.colors.outlineVariant
Text {
text: "WAYLAND_0 [HYPRLAND]"
color: Theme.colors.textMuted
font.family: Theme.font.family
font.pixelSize: Theme.type.caption
}
}
}
Pill {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
tint: Theme.colors.primary
glow: true
Text {
text: "PAM::SECURED"
color: Theme.colors.primary
font.family: Theme.font.family
font.bold: true
font.pixelSize: Theme.type.caption
}
}
}
Column { Column {
anchors.centerIn: parent anchors.centerIn: parent
spacing: Theme.geometry.spacing * 3 spacing: Theme.geometry.spacing * 3
@@ -245,8 +182,6 @@ WlSessionLock {
id: passwordField id: passwordField
width: parent.width width: parent.width
placeholder: "Password" placeholder: "Password"
prefix: "❯"
passwordCharacter: "■"
echoMode: sessionLock.responseVisible ? TextInput.Normal : TextInput.Password echoMode: sessionLock.responseVisible ? TextInput.Normal : TextInput.Password
onVisibleChanged: { if (visible) focusInput(); } onVisibleChanged: { if (visible) focusInput(); }
@@ -256,10 +191,6 @@ WlSessionLock {
authCtx.respond(sessionLock.password); authCtx.respond(sessionLock.password);
sessionLock.awaitingResponse = false; sessionLock.awaitingResponse = false;
} }
onEscapePressed: {
passwordField.text = "";
sessionLock.errorText = "";
}
} }
} }
@@ -274,10 +205,7 @@ WlSessionLock {
HintBar { HintBar {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
hints: [ hints: [ { key: "↵", label: "Unlock" } ]
{ key: "↵", label: "Unlock" },
{ key: "Esc", label: "Clear" }
]
} }
} }
} }
@@ -8,15 +8,12 @@ PanelWindow {
id: logoutWindow id: logoutWindow
property QtObject rootState property QtObject rootState
property int currentIndex: 2 // Default to Logout in the middle property int currentIndex: 2 // Default to Logout in the middle
// Destructive actions (Reboot/Shutdown) require a second confirmation
// before executing - selecting them the first time just arms them.
property int armedIndex: -1
property var actions: [ property var actions: [
{ cmd: "loginctl lock-session", key: "L", label: "Lock", sub: "loginctl lock-session", destructive: false }, { cmd: "loginctl lock-session" },
{ cmd: "loginctl terminate-user $USER", key: "E", label: "Logout", sub: "loginctl terminate-user", destructive: false }, { cmd: "systemctl suspend" },
{ cmd: "systemctl suspend", key: "U", label: "Suspend", sub: "systemctl suspend", destructive: false }, { cmd: "loginctl terminate-user $USER" },
{ cmd: "systemctl reboot", key: "R", label: "Reboot", sub: "systemctl reboot", destructive: true }, { cmd: "systemctl reboot" },
{ cmd: "systemctl poweroff", key: "S", label: "Shutdown", sub: "systemctl poweroff", destructive: true } { cmd: "systemctl poweroff" }
] ]
visible: rootState.logoutMenuOpen visible: rootState.logoutMenuOpen
@@ -27,7 +24,7 @@ PanelWindow {
left: true left: true
right: true right: true
} }
exclusiveZone: 0 exclusiveZone: 0
color: "transparent" color: "transparent"
@@ -42,101 +39,74 @@ PanelWindow {
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
color: Theme.colors.overlay // Full screen dim color: Theme.colors.overlay // Full screen dim/blur
Behavior on opacity { NumberAnimation { duration: Theme.animation.durationNormal } } Behavior on opacity { NumberAnimation { duration: Theme.animation.durationNormal } }
opacity: rootState.logoutMenuOpen ? 1 : 0 opacity: rootState.logoutMenuOpen ? 1 : 0
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
onClicked: rootState.logoutMenuOpen = false onClicked: rootState.logoutMenuOpen = false
} }
Surface { Item {
id: container id: container
width: modalColumn.width + Theme.geometry.padding * 2 width: buttonRow.width
height: modalColumn.height + Theme.geometry.padding * 2 height: buttonRow.height
anchors.centerIn: parent anchors.centerIn: parent
tint: Theme.colors.primary
glow: true
Behavior on scale { NumberAnimation { duration: Theme.animation.durationFast; easing.type: Easing.OutCubic } } Behavior on scale { SpringAnimation { spring: Theme.motion.springSoft.spring; damping: Theme.motion.springSoft.damping } }
MouseArea { Row {
anchors.fill: parent id: buttonRow
spacing: Theme.geometry.spacing * 3
// Lock
LogoutButton {
icon: ""
label: "Lock"
isSelected: logoutWindow.currentIndex === 0
onClicked: executeAction(logoutWindow.actions[0].cmd)
onHovered: logoutWindow.currentIndex = 0
} }
Column { // Suspend
id: modalColumn LogoutButton {
anchors.centerIn: parent icon: ""
spacing: Theme.geometry.spacing label: "Suspend"
isSelected: logoutWindow.currentIndex === 1
// Title strip onClicked: executeAction(logoutWindow.actions[1].cmd)
Item { onHovered: logoutWindow.currentIndex = 1
width: buttonRow.width
height: 24
Row {
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.geometry.spacing / 2
Rectangle {
width: 10
height: 10
anchors.verticalCenter: parent.verticalCenter
color: Theme.colors.primary
border.width: Theme.geometry.borderWidth
border.color: Theme.colors.crust
}
Text {
text: "[SYSTEM // POWER MANAGEMENT]"
color: Theme.colors.text
font.family: Theme.font.family
font.bold: true
font.pixelSize: Theme.type.caption
}
}
Text {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
text: logoutWindow.armedIndex >= 0 ? "LATCH: ARMED" : "LATCH: IDLE"
color: logoutWindow.armedIndex >= 0 ? Theme.colors.alert : Theme.colors.textMuted
font.family: Theme.font.family
font.bold: true
font.pixelSize: Theme.type.caption
}
}
Row {
id: buttonRow
spacing: Theme.geometry.spacing * 2
Repeater {
model: logoutWindow.actions
delegate: LogoutButton {
action: modelData
index: model.index
isSelected: logoutWindow.currentIndex === model.index
isArmed: logoutWindow.armedIndex === model.index
onClicked: logoutWindow.select(model.index)
onHovered: logoutWindow.currentIndex = model.index
}
}
}
HintBar {
anchors.horizontalCenter: parent.horizontalCenter
hints: [
{ key: "L/E/U/R/S", label: "Select" },
{ key: "↵", label: "Confirm" },
{ key: "Esc", label: "Abort" }
]
}
} }
// Logout
LogoutButton {
icon: ""
label: "Logout"
isSelected: logoutWindow.currentIndex === 2
onClicked: executeAction(logoutWindow.actions[2].cmd)
onHovered: logoutWindow.currentIndex = 2
}
// Reboot
LogoutButton {
icon: ""
label: "Reboot"
isSelected: logoutWindow.currentIndex === 3
onClicked: executeAction(logoutWindow.actions[3].cmd)
onHovered: logoutWindow.currentIndex = 3
}
// Poweroff
LogoutButton {
icon: ""
label: "Shutdown"
isDestructive: true
isSelected: logoutWindow.currentIndex === 4
onClicked: executeAction(logoutWindow.actions[4].cmd)
onHovered: logoutWindow.currentIndex = 4
}
}
} }
} }
@@ -144,42 +114,29 @@ PanelWindow {
Item { Item {
anchors.fill: parent anchors.fill: parent
focus: true focus: true
Keys.onEscapePressed: (event) => { Keys.onEscapePressed: (event) => {
if (logoutWindow.armedIndex >= 0) { rootState.logoutMenuOpen = false;
logoutWindow.armedIndex = -1;
} else {
rootState.logoutMenuOpen = false;
}
event.accepted = true; event.accepted = true;
} }
Keys.onLeftPressed: (event) => { Keys.onLeftPressed: (event) => {
if (logoutWindow.currentIndex > 0) logoutWindow.currentIndex--; if (logoutWindow.currentIndex > 0) {
logoutWindow.armedIndex = -1; logoutWindow.currentIndex--;
event.accepted = true;
}
Keys.onRightPressed: (event) => {
if (logoutWindow.currentIndex < logoutWindow.actions.length - 1) logoutWindow.currentIndex++;
logoutWindow.armedIndex = -1;
event.accepted = true;
}
Keys.onReturnPressed: (event) => {
logoutWindow.select(logoutWindow.currentIndex);
event.accepted = true;
}
Keys.onPressed: (event) => {
for (let i = 0; i < logoutWindow.actions.length; i++) {
if (event.text.toUpperCase() === logoutWindow.actions[i].key) {
logoutWindow.currentIndex = i;
logoutWindow.select(i);
event.accepted = true;
return;
}
} }
event.accepted = true;
}
Keys.onRightPressed: (event) => {
if (logoutWindow.currentIndex < 4) {
logoutWindow.currentIndex++;
}
event.accepted = true;
}
Keys.onReturnPressed: (event) => {
executeAction(logoutWindow.actions[logoutWindow.currentIndex].cmd);
event.accepted = true;
} }
} }
@@ -188,19 +145,9 @@ PanelWindow {
running: false running: false
} }
// Non-destructive actions execute immediately. Destructive ones function executeAction(cmd) {
// (Reboot/Shutdown) arm on first selection and only execute once armed actionProcess.command = ["bash", "-c", cmd];
// and selected again - the "dual-stage confirmation / latch" from the
// power-menu design.
function select(index) {
let action = logoutWindow.actions[index];
if (action.destructive && logoutWindow.armedIndex !== index) {
logoutWindow.armedIndex = index;
return;
}
actionProcess.command = ["bash", "-c", action.cmd];
actionProcess.running = true; actionProcess.running = true;
logoutWindow.armedIndex = -1;
rootState.logoutMenuOpen = false; rootState.logoutMenuOpen = false;
} }
@@ -208,89 +155,50 @@ PanelWindow {
if (visible) { if (visible) {
container.scale = 1.0; container.scale = 1.0;
logoutWindow.currentIndex = 2; // Reset to center logoutWindow.currentIndex = 2; // Reset to center
logoutWindow.armedIndex = -1;
} else { } else {
container.scale = 0.95; container.scale = 0.95;
} }
} }
// Inline component for the big power-action tiles. // Inline component for the big buttons
component LogoutButton: Surface { component LogoutButton: Surface {
id: button property string icon: ""
property var action property string label: ""
property int index: 0 property bool isDestructive: false
property bool isSelected: false property bool isSelected: false
property bool isArmed: false
signal clicked() signal clicked()
signal hovered() signal hovered()
readonly property color actionColor: isArmed ? Theme.colors.alert width: 120
: action.destructive ? Theme.colors.alert height: 120
: Theme.colors.primary color: Theme.colors.surface
tint: isSelected ? (isDestructive ? Theme.colors.alert : Theme.colors.primary) : Theme.colors.border
border.width: isSelected ? 2 : 1
glow: isSelected
width: 128 Behavior on scale { SpringAnimation { spring: Theme.motion.springSnappy.spring; damping: Theme.motion.springSnappy.damping } }
height: 128 scale: isSelected ? 1.05 : 1.0
color: isSelected ? Theme.colors.surfaceHover : Theme.colors.surface
tint: isSelected || isArmed ? actionColor : Theme.colors.border
glow: isSelected || isArmed
pressed: hoverArea.pressed
Column { Column {
anchors.centerIn: parent anchors.centerIn: parent
spacing: Theme.geometry.spacing / 2 spacing: Theme.geometry.spacing
Row {
anchors.horizontalCenter: parent.horizontalCenter
spacing: Theme.geometry.spacing / 2
Rectangle {
width: 16
height: 16
anchors.verticalCenter: parent.verticalCenter
color: button.isArmed ? Theme.colors.alert : "transparent"
border.width: Theme.geometry.borderWidth
border.color: Theme.colors.crust
Text {
anchors.centerIn: parent
text: button.action.key
font.family: Theme.font.family
font.bold: true
font.pixelSize: 10
color: button.isArmed ? Theme.colors.textOnAccent : Theme.colors.text
}
}
Text {
anchors.verticalCenter: parent.verticalCenter
text: button.isArmed ? "ARMED" : ("#0" + (button.index + 1))
font.family: Theme.font.family
font.bold: true
font.pixelSize: Theme.type.caption
color: button.isArmed ? Theme.colors.alert : Theme.colors.textMuted
}
}
Text { Text {
text: button.action.label text: parent.parent.icon
font.family: Theme.font.headlineFamily font.family: Theme.font.family
font.pixelSize: 36
anchors.horizontalCenter: parent.horizontalCenter
color: parent.parent.isSelected ? parent.parent.tint : Theme.colors.text
}
Text {
text: parent.parent.label
font.family: Theme.font.family
font.pixelSize: 16 font.pixelSize: 16
font.bold: true font.bold: true
font.capitalization: Font.AllUppercase
color: Theme.colors.text color: Theme.colors.text
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
Text {
text: button.action.sub
font.family: Theme.font.family
font.pixelSize: 9
color: button.action.destructive ? Theme.colors.alert : Theme.colors.textMuted
width: button.width - Theme.geometry.spacing * 2
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
anchors.horizontalCenter: parent.horizontalCenter
}
} }
MouseArea { MouseArea {
@@ -298,8 +206,8 @@ PanelWindow {
anchors.fill: parent anchors.fill: parent
hoverEnabled: true hoverEnabled: true
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
onEntered: button.hovered() onEntered: parent.hovered()
onClicked: button.clicked() onClicked: parent.clicked()
} }
} }
} }
@@ -6,7 +6,6 @@ import "../Shared"
PanelWindow { PanelWindow {
id: notifWindow id: notifWindow
property QtObject rootState
anchors { anchors {
top: true top: true
@@ -36,12 +35,6 @@ PanelWindow {
onNotification: notification => { onNotification: notification => {
notification.tracked = true; notification.tracked = true;
// Do Not Disturb: the notification is still tracked/available
// to whatever reads NotificationServer directly, just not
// surfaced as a toast.
if (notifWindow.rootState && notifWindow.rootState.dndEnabled) return;
toastModel.insert(0, { toastModel.insert(0, {
notifObj: notification, notifObj: notification,
appName: notification.appName, appName: notification.appName,
@@ -108,88 +101,76 @@ PanelWindow {
Repeater { Repeater {
model: toastModel model: toastModel
delegate: Surface { delegate: Rectangle {
id: toast id: toast
width: list.width width: list.width
height: 20 + content.implicitHeight height: content.implicitHeight + Theme.geometry.padding * 2
color: Theme.colors.surface radius: Theme.geometry.radiusMedium
tint: notifWindow.colorFor(model.urgency) color: Qt.alpha(notifWindow.colorFor(model.urgency), 0.15)
glow: model.urgency === NotificationUrgency.Critical border.color: Qt.alpha(notifWindow.colorFor(model.urgency), 0.3)
border.width: 1
Behavior on opacity { NumberAnimation { duration: Theme.animation.durationNormal } } Behavior on opacity { NumberAnimation { duration: Theme.animation.durationNormal } }
Column { Row {
anchors.fill: parent id: content
anchors.left: parent.left
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
anchors.margins: Theme.geometry.padding
spacing: Theme.geometry.spacing
// Solid accent header strip
Rectangle { Rectangle {
width: parent.width width: 16
height: 20 height: 16
radius: 8
color: notifWindow.colorFor(model.urgency) color: notifWindow.colorFor(model.urgency)
anchors.top: parent.top
anchors.topMargin: 2
}
Column {
width: content.width - 16 - Theme.geometry.spacing - closeIcon.width - Theme.geometry.spacing
spacing: 2
Text { Text {
anchors.left: parent.left text: model.summary && model.summary.length > 0 ? model.summary : model.appName
anchors.leftMargin: Theme.geometry.spacing
anchors.verticalCenter: parent.verticalCenter
text: notifWindow.labelFor(model.urgency).toUpperCase() + " :: " + model.appName
font.family: Theme.font.family font.family: Theme.font.family
font.pixelSize: 12
font.bold: true font.bold: true
font.pixelSize: Theme.type.caption color: notifWindow.colorFor(model.urgency)
color: Theme.colors.textOnAccent width: parent.width
elide: Text.ElideRight
}
Text {
visible: model.body && model.body.length > 0
text: model.body
font.family: Theme.font.family
font.pixelSize: 12
color: Theme.colors.text
width: parent.width
wrapMode: Text.WordWrap
maximumLineCount: 3
elide: Text.ElideRight
} }
} }
Row { Text {
id: content id: closeIcon
width: parent.width text: ""
leftPadding: Theme.geometry.padding color: Theme.colors.textMuted
rightPadding: Theme.geometry.padding font.family: Theme.font.family
topPadding: Theme.geometry.spacing font.pixelSize: 12
bottomPadding: Theme.geometry.spacing anchors.top: parent.top
spacing: Theme.geometry.spacing
Column { MouseArea {
width: content.width - content.leftPadding - content.rightPadding - closeIcon.width - Theme.geometry.spacing anchors.fill: parent
spacing: 2 anchors.margins: -6
cursorShape: Qt.PointingHandCursor
Text { onClicked: {
text: model.summary && model.summary.length > 0 ? model.summary : model.appName model.notifObj.dismiss();
font.family: Theme.font.family toastModel.remove(index);
font.pixelSize: 12
font.bold: true
color: Theme.colors.text
width: parent.width
elide: Text.ElideRight
}
Text {
visible: model.body && model.body.length > 0
text: model.body
font.family: Theme.font.family
font.pixelSize: 12
color: Theme.colors.textMuted
width: parent.width
wrapMode: Text.WordWrap
maximumLineCount: 3
elide: Text.ElideRight
}
}
Text {
id: closeIcon
text: "✕"
color: Theme.colors.textMuted
font.family: Theme.font.family
font.pixelSize: 12
MouseArea {
anchors.fill: parent
anchors.margins: -6
cursorShape: Qt.PointingHandCursor
onClicked: {
model.notifObj.dismiss();
toastModel.remove(index);
}
} }
} }
} }
@@ -43,8 +43,8 @@ PanelWindow {
Behavior on margins.bottom { Behavior on margins.bottom {
NumberAnimation { NumberAnimation {
duration: Theme.animation.durationFast duration: Theme.animation.durationNormal
easing.type: Easing.OutCubic easing.type: Easing.OutBack
} }
} }
@@ -80,6 +80,7 @@ PanelWindow {
width: 300 width: 300
height: 60 height: 60
anchors.centerIn: parent anchors.centerIn: parent
radius: Theme.geometry.pillRadius
tint: osdWindow.levelColor tint: osdWindow.levelColor
glow: true glow: true
@@ -1,589 +0,0 @@
import QtQuick
import Quickshell
import Quickshell.Wayland
import Quickshell.Io
import Quickshell.Services.Pipewire
import Quickshell.Services.Mpris
import Quickshell.Networking
import Quickshell.Bluetooth
import "../Shared"
PanelWindow {
id: qsWindow
property QtObject rootState
readonly property int panelWidth: 380
visible: rootState.quickSettingsOpen
// Spans the whole screen (like the other overlays) purely so the
// click-outside-to-close MouseArea below has somewhere to catch clicks -
// the visible chrome is just the anchored `panel` Surface in the corner.
anchors { top: true; bottom: true; left: true; right: true }
exclusiveZone: 0
color: "transparent"
WlrLayershell.layer: WlrLayer.Overlay
WlrLayershell.namespace: "quickshell-quicksettings"
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive
// --- Host / uptime ---
property string hostLabel: "localhost"
property string uptimeLabel: ""
Process {
id: hostnameProcess
command: ["hostname"]
running: qsWindow.visible
stdout: StdioCollector { onStreamFinished: qsWindow.hostLabel = this.text.trim() }
}
Process {
id: uptimeProcess
command: ["bash", "-c", "uptime -p | sed 's/^up //'"]
running: qsWindow.visible
stdout: StdioCollector { onStreamFinished: qsWindow.uptimeLabel = this.text.trim() }
}
// --- Brightness (polled only while the panel is open) ---
property real brightnessLevel: 0.5
Timer {
interval: 1000
running: qsWindow.visible
repeat: true
triggeredOnStart: true
onTriggered: brightnessProcess.restart()
}
Process {
id: brightnessProcess
command: ["bash", "-c", "brightnessctl -m 2>/dev/null | awk -F, '{print $4}' | tr -d '%'"]
running: false
function restart() { running = false; running = true; }
stdout: StdioCollector {
onStreamFinished: {
let val = parseInt(this.text);
if (!isNaN(val)) qsWindow.brightnessLevel = val / 100.0;
}
}
}
Process {
id: setBrightnessProcess
running: false
function set(pct) { command = ["brightnessctl", "set", pct + "%"]; running = false; running = true; }
}
// --- Volume (live Pipewire binding) ---
property QtObject sink: Pipewire.defaultAudioSink
property bool sinkReady: sink !== null && sink.ready && sink.audio !== null
property real volumeLevel: sinkReady ? sink.audio.volume : 0.0
// --- Audio sinks (all real hardware/software sinks, for the routing list) ---
readonly property var sinkNodes: Pipewire.nodes.values.filter(n => n.isSink && !n.isStream)
PwObjectTracker {
objects: qsWindow.sinkNodes
}
// --- Wi-Fi / Bluetooth status ---
function wifiNetworkName() {
let devices = Networking.devices ? Networking.devices.values : [];
for (const d of devices) {
if (d.type === DeviceType.Wifi && d.networks) {
for (const n of d.networks.values) if (n.connected) return n.name;
}
}
return "";
}
function bluetoothDeviceName() {
let adapter = Bluetooth.defaultAdapter;
if (!adapter || !adapter.devices) return "";
for (const d of adapter.devices.values) if (d.connected) return d.name || d.deviceName;
return "";
}
// --- Night light: only wire the toggle to a binary that's actually installed ---
property string nightLightBinary: ""
property bool nightLightOn: false
Process {
id: nightLightDetect
command: ["bash", "-c", "command -v gammastep || command -v wlsunset || true"]
running: true
stdout: StdioCollector { onStreamFinished: qsWindow.nightLightBinary = this.text.trim() }
}
Process {
id: nightLightProcess
running: false
function toggle() {
if (qsWindow.nightLightBinary.length === 0) return;
if (qsWindow.nightLightOn) {
command = ["pkill", "-f", qsWindow.nightLightBinary];
} else {
command = [qsWindow.nightLightBinary];
}
running = false;
running = true;
qsWindow.nightLightOn = !qsWindow.nightLightOn;
}
}
// --- Media player (first available MPRIS source) ---
readonly property var player: Mpris.players.values.length > 0 ? Mpris.players.values[0] : null
MouseArea {
anchors.fill: parent
onClicked: rootState.quickSettingsOpen = false
}
Item {
anchors.fill: parent
focus: qsWindow.visible
Keys.onEscapePressed: (event) => { rootState.quickSettingsOpen = false; event.accepted = true; }
}
Surface {
id: panel
anchors.top: parent.top
anchors.right: parent.right
anchors.topMargin: 12
anchors.rightMargin: 12
width: qsWindow.panelWidth
height: content.implicitHeight + Theme.geometry.padding * 2
tint: Theme.colors.primary
glow: true
MouseArea { anchors.fill: parent } // absorb clicks so they don't fall through to the backdrop
Column {
id: content
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.margins: Theme.geometry.padding
spacing: Theme.geometry.spacing * 1.5
// --- Header ---
Item {
width: parent.width
height: 44
Row {
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.geometry.spacing
Rectangle {
width: 44
height: 44
color: Theme.colors.surfaceHover
border.width: Theme.geometry.borderWidth
border.color: Theme.colors.crust
Text {
anchors.centerIn: parent
text: Quickshell.env("USER").charAt(0).toUpperCase()
font.family: Theme.font.headlineFamily
font.bold: true
font.pixelSize: 20
color: Theme.colors.primary
}
}
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
Text {
text: Quickshell.env("USER") + "@" + qsWindow.hostLabel
color: Theme.colors.text
font.family: Theme.font.family
font.bold: true
font.pixelSize: Theme.type.label
}
Text {
text: "UP " + qsWindow.uptimeLabel
color: Theme.colors.textMuted
font.family: Theme.font.family
font.pixelSize: Theme.type.caption
}
}
}
Rectangle {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
width: 28
height: 28
color: "transparent"
border.width: Theme.geometry.borderWidth
border.color: Theme.colors.alert
Text {
anchors.centerIn: parent
text: "PWR"
color: Theme.colors.alert
font.family: Theme.font.family
font.bold: true
font.pixelSize: 9
}
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: {
rootState.quickSettingsOpen = false;
rootState.logoutMenuOpen = true;
}
}
}
}
// --- 2x2 toggle grid ---
Grid {
width: parent.width
columns: 2
rowSpacing: Theme.geometry.spacing
columnSpacing: Theme.geometry.spacing
ToggleTile {
label: "Wi-Fi"
sub: on ? (qsWindow.wifiNetworkName() || "Connected") : "Disabled"
on: Networking.wifiEnabled
accent: Theme.colors.primary
onToggledSwitch: Networking.wifiEnabled = !Networking.wifiEnabled
}
ToggleTile {
label: "Bluetooth"
sub: on ? (qsWindow.bluetoothDeviceName() || "On") : "Disabled"
on: Bluetooth.defaultAdapter ? Bluetooth.defaultAdapter.enabled : false
accent: Theme.colors.secondary
onToggledSwitch: {
if (Bluetooth.defaultAdapter) Bluetooth.defaultAdapter.enabled = !Bluetooth.defaultAdapter.enabled;
}
}
ToggleTile {
label: "Do Not Disturb"
sub: on ? "Notifications Off" : "Notifications On"
on: rootState.dndEnabled
accent: Theme.colors.warning
onToggledSwitch: rootState.dndEnabled = !rootState.dndEnabled
}
ToggleTile {
label: "Night Light"
sub: qsWindow.nightLightBinary.length === 0 ? "Unavailable" : (on ? "Enabled" : "Disabled")
on: qsWindow.nightLightOn
enabled: qsWindow.nightLightBinary.length > 0
accent: Theme.colors.tertiary
onToggledSwitch: nightLightProcess.toggle()
}
}
// --- Sliders ---
Column {
width: parent.width
spacing: Theme.geometry.spacing
Column {
width: parent.width
spacing: Theme.geometry.spacing / 2
Item {
width: parent.width
height: 16
Text {
anchors.left: parent.left
text: "OUTPUT LEVEL"
color: Theme.colors.textMuted
font.family: Theme.font.family
font.bold: true
font.pixelSize: Theme.type.caption
}
Text {
anchors.right: parent.right
text: Math.round(qsWindow.volumeLevel * 100) + "%"
color: Theme.colors.text
font.family: Theme.font.family
font.bold: true
font.pixelSize: Theme.type.caption
}
}
MouseArea {
width: parent.width
height: 16
function apply(mx) {
if (!qsWindow.sinkReady) return;
qsWindow.sink.audio.volume = Math.max(0, Math.min(1, mx / width));
}
onPressed: (mouse) => apply(mouse.x)
onPositionChanged: (mouse) => { if (pressed) apply(mouse.x); }
ProgressBar {
anchors.verticalCenter: parent.verticalCenter
width: parent.width
value: qsWindow.volumeLevel
fillColor: Theme.colors.secondary
}
}
}
Column {
width: parent.width
spacing: Theme.geometry.spacing / 2
Item {
width: parent.width
height: 16
Text {
anchors.left: parent.left
text: "BRIGHTNESS"
color: Theme.colors.textMuted
font.family: Theme.font.family
font.bold: true
font.pixelSize: Theme.type.caption
}
Text {
anchors.right: parent.right
text: Math.round(qsWindow.brightnessLevel * 100) + "%"
color: Theme.colors.text
font.family: Theme.font.family
font.bold: true
font.pixelSize: Theme.type.caption
}
}
MouseArea {
width: parent.width
height: 16
function apply(mx) {
let pct = Math.round(Math.max(0, Math.min(1, mx / width)) * 100);
qsWindow.brightnessLevel = pct / 100.0;
setBrightnessProcess.set(pct);
}
onPressed: (mouse) => apply(mouse.x)
onPositionChanged: (mouse) => { if (pressed) apply(mouse.x); }
ProgressBar {
anchors.verticalCenter: parent.verticalCenter
width: parent.width
value: qsWindow.brightnessLevel
fillColor: Theme.colors.primary
}
}
}
}
// --- Audio sink routing ---
Column {
width: parent.width
spacing: Theme.geometry.spacing / 2
visible: qsWindow.sinkNodes.length > 0
Repeater {
model: qsWindow.sinkNodes
delegate: ListRow {
width: parent.width
accent: Theme.colors.primary
selected: qsWindow.sink !== null && modelData.id === qsWindow.sink.id
onClicked: Pipewire.preferredDefaultAudioSink = modelData
Text {
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
anchors.right: statusChip.left
anchors.rightMargin: Theme.geometry.spacing
text: modelData.description || modelData.name
color: (qsWindow.sink !== null && modelData.id === qsWindow.sink.id) ? Theme.colors.textOnAccent : Theme.colors.text
font.family: Theme.font.family
font.pixelSize: Theme.type.caption
elide: Text.ElideRight
}
Text {
id: statusChip
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
text: (qsWindow.sink !== null && modelData.id === qsWindow.sink.id) ? "DEFAULT" : ""
color: Theme.colors.textOnAccent
font.family: Theme.font.family
font.bold: true
font.pixelSize: Theme.type.caption
}
}
}
}
// --- Media player ---
Surface {
width: parent.width
height: 96
visible: qsWindow.player !== null
color: Theme.colors.surface
tint: Theme.colors.tertiary
Column {
anchors.fill: parent
anchors.margins: Theme.geometry.spacing
spacing: Theme.geometry.spacing / 2
Row {
width: parent.width
spacing: Theme.geometry.spacing
Text {
text: "♪"
color: Theme.colors.tertiary
font.family: Theme.font.family
font.pixelSize: 18
}
Column {
anchors.verticalCenter: parent.verticalCenter
Text {
text: qsWindow.player ? qsWindow.player.trackTitle : ""
color: Theme.colors.text
font.family: Theme.font.family
font.bold: true
font.pixelSize: Theme.type.caption
elide: Text.ElideRight
width: 260
}
Text {
text: qsWindow.player ? qsWindow.player.trackArtist : ""
color: Theme.colors.textMuted
font.family: Theme.font.family
font.pixelSize: Theme.type.caption
elide: Text.ElideRight
width: 260
}
}
}
ProgressBar {
width: parent.width
value: (qsWindow.player && qsWindow.player.length > 0) ? qsWindow.player.position / qsWindow.player.length : 0
fillColor: Theme.colors.tertiary
}
Row {
anchors.horizontalCenter: parent.horizontalCenter
spacing: Theme.geometry.spacing * 1.5
Text {
text: "◀"
color: Theme.colors.text
font.family: Theme.font.family
font.pixelSize: 14
MouseArea { anchors.fill: parent; anchors.margins: -6; cursorShape: Qt.PointingHandCursor; onClicked: qsWindow.player && qsWindow.player.previous() }
}
Text {
text: (qsWindow.player && qsWindow.player.isPlaying) ? "II" : "▶"
color: Theme.colors.tertiary
font.family: Theme.font.family
font.bold: true
font.pixelSize: 14
MouseArea { anchors.fill: parent; anchors.margins: -6; cursorShape: Qt.PointingHandCursor; onClicked: qsWindow.player && qsWindow.player.togglePlaying() }
}
Text {
text: "▶"
color: Theme.colors.text
font.family: Theme.font.family
font.pixelSize: 14
MouseArea { anchors.fill: parent; anchors.margins: -6; cursorShape: Qt.PointingHandCursor; onClicked: qsWindow.player && qsWindow.player.next() }
}
}
}
}
// --- Footer ---
Row {
width: parent.width
spacing: Theme.geometry.spacing / 2
Rectangle {
width: 8
height: 8
anchors.verticalCenter: parent.verticalCenter
color: Theme.colors.success
border.width: Theme.geometry.borderWidth
border.color: Theme.colors.crust
}
Text {
text: "STATUS: OK"
color: Theme.colors.textMuted
font.family: Theme.font.family
font.bold: true
font.pixelSize: Theme.type.caption
}
}
}
}
// Inline component for a 2x2 toggle tile.
component ToggleTile: Surface {
id: tile
property string label: ""
property string sub: ""
property bool on: false
property color accent: Theme.colors.primary
signal toggledSwitch()
width: (qsWindow.panelWidth - Theme.geometry.padding * 2 - Theme.geometry.spacing) / 2
height: 68
color: Theme.colors.surface
tint: on ? accent : Theme.colors.border
glow: on
opacity: enabled ? 1.0 : 0.5
Item {
anchors.fill: parent
anchors.margins: Theme.geometry.spacing
Column {
anchors.left: parent.left
anchors.right: toggleSwitch.left
anchors.rightMargin: Theme.geometry.spacing / 2
anchors.verticalCenter: parent.verticalCenter
spacing: 2
Text {
text: tile.label
color: Theme.colors.text
font.family: Theme.font.headlineFamily
font.bold: true
font.pixelSize: Theme.type.body
}
Text {
text: tile.sub
color: Theme.colors.textMuted
font.family: Theme.font.family
font.pixelSize: Theme.type.caption
elide: Text.ElideRight
width: parent.width
}
}
ToggleSwitch {
id: toggleSwitch
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
checked: tile.on
onColor: tile.accent
onToggled: tile.toggledSwitch()
}
}
}
}
@@ -1,7 +1,8 @@
import QtQuick import QtQuick
import QtQuick.Effects
import "." import "."
Surface { Rectangle {
id: button id: button
// "primary" | "secondary" | "accent" | "destructive" | "success" | "warning" | "info" // "primary" | "secondary" | "accent" | "destructive" | "success" | "warning" | "info"
@@ -12,7 +13,7 @@ Surface {
// primary and accent are the same color (Theme.colors.primary === .accent); // primary and accent are the same color (Theme.colors.primary === .accent);
// kept as separate variant names for call-site clarity. // kept as separate variant names for call-site clarity.
readonly property bool filled: variant === "primary" || variant === "accent" readonly property bool filled: variant === "primary" || variant === "accent"
readonly property color variantColor: variant === "accent" ? Theme.colors.accent readonly property color tint: variant === "accent" ? Theme.colors.accent
: variant === "destructive" ? Theme.colors.alert : variant === "destructive" ? Theme.colors.alert
: variant === "success" ? Theme.colors.success : variant === "success" ? Theme.colors.success
: variant === "warning" ? Theme.colors.warning : variant === "warning" ? Theme.colors.warning
@@ -21,27 +22,35 @@ Surface {
implicitWidth: label.implicitWidth + Theme.geometry.padding * 2 implicitWidth: label.implicitWidth + Theme.geometry.padding * 2
implicitHeight: label.implicitHeight + Theme.geometry.padding implicitHeight: label.implicitHeight + Theme.geometry.padding
width: implicitWidth
height: implicitHeight
radius: Theme.geometry.radiusSmall
color: filled color: filled
? (mouseArea.containsMouse ? Qt.lighter(variantColor, 1.15) : variantColor) ? (mouseArea.pressed ? Qt.darker(tint, 1.1) : tint)
: (mouseArea.containsMouse ? Theme.colors.surfaceHover : Theme.colors.surface) : (mouseArea.containsMouse ? Qt.alpha(tint, 0.22) : Qt.alpha(tint, 0.15))
tint: variantColor border.width: filled ? 0 : 1
glow: !filled && mouseArea.containsMouse border.color: Qt.alpha(tint, 0.3)
pressed: mouseArea.pressed
layer.enabled: filled
layer.effect: MultiEffect {
shadowEnabled: true
shadowColor: button.tint
shadowOpacity: Theme.elevation.medium.opacity
shadowBlur: Theme.elevation.medium.blur
shadowVerticalOffset: 2
}
Behavior on color { ColorAnimation { duration: Theme.animation.durationFast } } Behavior on color { ColorAnimation { duration: Theme.animation.durationFast } }
Behavior on scale { SpringAnimation { spring: Theme.motion.springSnappy.spring; damping: Theme.motion.springSnappy.damping } }
scale: mouseArea.pressed ? 0.97 : 1.0
Text { Text {
id: label id: label
anchors.centerIn: parent anchors.centerIn: parent
text: button.text text: button.text
font.family: Theme.font.headlineFamily font.family: Theme.font.family
font.pixelSize: 14 font.pixelSize: 13
font.bold: true font.bold: true
font.capitalization: Font.AllUppercase color: button.filled ? Theme.colors.background : button.tint
color: button.filled ? Theme.colors.textOnAccent : button.variantColor
} }
MouseArea { MouseArea {
@@ -1,36 +0,0 @@
import QtQuick
import "."
// 18x18 square checkbox with a 10x10 solid core when checked, per
// DESIGN.md's Checkboxes spec.
Item {
id: box
// Controlled component - see ToggleSwitch.qml.
property bool checked: false
signal toggled()
implicitWidth: 18
implicitHeight: 18
Rectangle {
anchors.fill: parent
color: Theme.colors.surface
border.width: Theme.geometry.borderWidth
border.color: Theme.colors.crust
Rectangle {
width: 10
height: 10
anchors.centerIn: parent
color: Theme.colors.primary
visible: box.checked
}
}
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: box.toggled()
}
}
@@ -14,7 +14,7 @@ Rectangle {
radius: Theme.geometry.radiusMedium radius: Theme.geometry.radiusMedium
color: Theme.colors.background color: Theme.colors.background
border.color: Theme.colors.border border.color: Theme.colors.border
border.width: Theme.geometry.borderWidth border.width: 1
height: column.implicitHeight + Theme.geometry.spacing height: column.implicitHeight + Theme.geometry.spacing
function openAt(px, py) { function openAt(px, py) {
@@ -1,7 +1,7 @@
import QtQuick import QtQuick
import "." import "."
// Row of "[KEY] label" keyboard hints shown under launcher-style overlays, // Row of "key label" keyboard hints shown under launcher-style overlays,
// e.g. [ [↑↓, "Navigate"], ["↵", "Launch"], ["Esc", "Close"] ]. // e.g. [ [↑↓, "Navigate"], ["↵", "Launch"], ["Esc", "Close"] ].
Row { Row {
id: hintBar id: hintBar
@@ -16,16 +16,12 @@ Row {
delegate: Row { delegate: Row {
spacing: Theme.geometry.spacing / 2 spacing: Theme.geometry.spacing / 2
Pill { Text {
tint: Theme.colors.outlineVariant text: modelData.key
color: Theme.colors.textMuted
Text { font.family: Theme.font.family
text: "[" + modelData.key + "]" font.bold: true
color: Theme.colors.text font.pixelSize: Theme.type.caption
font.family: Theme.font.family
font.bold: true
font.pixelSize: Theme.type.caption
}
} }
Text { Text {
@@ -33,7 +29,6 @@ Row {
color: Theme.colors.textMuted color: Theme.colors.textMuted
font.family: Theme.font.family font.family: Theme.font.family
font.pixelSize: Theme.type.caption font.pixelSize: Theme.type.caption
anchors.verticalCenter: parent.verticalCenter
} }
} }
} }
@@ -1,8 +1,8 @@
import QtQuick import QtQuick
import "." import "."
// Selectable list row: solid accent fill + crust text when selected (not a // Selectable list row: a colored left accent bar plus a tinted background
// soft tint), shared by CommandPalette and ClipboardManager so both // when current, shared by CommandPalette and ClipboardManager so both
// launchers read as the same design language. // launchers read as the same design language.
Rectangle { Rectangle {
id: row id: row
@@ -16,20 +16,25 @@ Rectangle {
signal entered() signal entered()
height: 40 height: 40
color: selected ? accent : (hovered ? Theme.colors.surfaceHover : "transparent") radius: Theme.geometry.radiusTiny
border.width: selected ? Theme.geometry.borderWidth : 0 color: selected ? Qt.alpha(accent, 0.16) : "transparent"
border.color: Theme.colors.crust
Behavior on color { ColorAnimation { duration: Theme.animation.durationFast } } Behavior on color { ColorAnimation { duration: Theme.animation.durationFast } }
Rectangle { Rectangle {
width: 4 width: 3
height: parent.height height: parent.height - 10
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left anchors.left: parent.left
color: Theme.colors.crust radius: 2
visible: row.selected color: row.accent
opacity: row.selected ? 1 : 0
Behavior on opacity { NumberAnimation { duration: Theme.animation.durationFast } }
} }
// Declared before contentItem so any interactive child placed in
// `content` (e.g. a hover delete button) stacks on top and can
// intercept clicks before they fall through to this row-wide handler.
MouseArea { MouseArea {
id: rowMouse id: rowMouse
anchors.fill: parent anchors.fill: parent
@@ -42,9 +47,7 @@ Rectangle {
Item { Item {
id: contentItem id: contentItem
anchors.fill: parent anchors.fill: parent
anchors.leftMargin: Theme.geometry.padding + ((row.selected || row.hovered) ? 8 : 4) anchors.leftMargin: Theme.geometry.padding + 4
anchors.rightMargin: Theme.geometry.padding anchors.rightMargin: Theme.geometry.padding
Behavior on anchors.leftMargin { NumberAnimation { duration: Theme.animation.durationFast; easing.type: Easing.Linear } }
} }
} }
@@ -1,46 +1,54 @@
import QtQuick import QtQuick
import QtQuick.Effects
import "." import "."
// Status chip / telemetry badge: sharp corners, 2px border, a tight 2px // Bar-style pill chrome: rounded surface, border, optional colored glow.
// offset shadow (deliberately smaller than Surface's, per DESIGN.md's // Children are centered in an internal Row - place them directly as this
// "Status Chips & Telemetry Badges" spec). Children are centered in an // component's children, same as putting them in a Row.
// internal Row - place them directly as this component's children, same as Rectangle {
// putting them in a Row.
Item {
id: pill id: pill
property color tint: Theme.colors.outlineVariant property color tint: Theme.colors.border
property bool glow: false property bool glow: false
// How strongly `tint` is mixed into the base surface color, so each
// pill reads as its own tinted background instead of one flat surface
// color with only the border/glow varying.
property real tintStrength: 0.35
default property alias content: contentRow.data default property alias content: contentRow.data
readonly property color edgeColor: glow ? tint : Theme.colors.crust function blend(base, mix, amount) {
readonly property int offset: 2 return Qt.rgba(
base.r + (mix.r - base.r) * amount,
implicitWidth: contentRow.implicitWidth + Theme.geometry.padding * 2 + offset base.g + (mix.g - base.g) * amount,
implicitHeight: contentRow.implicitHeight + Theme.geometry.spacing + offset base.b + (mix.b - base.b) * amount,
height: implicitHeight base.a
);
Rectangle {
x: pill.offset
y: pill.offset
width: pill.width - pill.offset
height: pill.height - pill.offset
color: pill.edgeColor
} }
Rectangle { implicitWidth: contentRow.implicitWidth + Theme.geometry.padding * 2
width: pill.width - pill.offset implicitHeight: contentRow.implicitHeight + Theme.geometry.padding
height: pill.height - pill.offset height: implicitHeight
color: Theme.colors.surface radius: Theme.geometry.pillRadius
border.width: Theme.geometry.borderWidth color: blend(Theme.colors.surface, tint, tintStrength)
border.color: pill.edgeColor border.color: tint
border.width: 1
Behavior on border.color { ColorAnimation { duration: Theme.animation.durationFast } } Behavior on color { ColorAnimation { duration: Theme.animation.durationNormal } }
Row { Behavior on border.color { ColorAnimation { duration: Theme.animation.durationFast } }
id: contentRow
anchors.centerIn: parent layer.enabled: glow
spacing: Theme.geometry.spacing layer.effect: MultiEffect {
} shadowEnabled: true
shadowColor: pill.tint
shadowOpacity: Theme.elevation.low.opacity
shadowBlur: Theme.elevation.low.blur
shadowVerticalOffset: 1
}
Row {
id: contentRow
anchors.centerIn: parent
spacing: Theme.geometry.spacing
} }
} }
@@ -1,28 +1,25 @@
import QtQuick import QtQuick
import "." import "."
// Sharp-cornered track+fill for OSD volume/brightness and similar level // Colored fill bar for OSD volume/brightness and similar level readouts.
// readouts, and the base for slider-style controls in Quick Settings.
Item { Item {
id: bar id: bar
property real value: 0 // 0..1 property real value: 0 // 0..1
property color fillColor: Theme.colors.primary property color fillColor: Theme.colors.primary
height: 10 height: 8
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
color: Theme.colors.surfaceHover color: Theme.colors.surfaceHover
border.width: Theme.geometry.borderWidth radius: height / 2
border.color: Theme.colors.crust
clip: true clip: true
Rectangle { Rectangle {
width: Math.max(0, parent.width * Math.max(0, Math.min(1, bar.value)) - parent.border.width * 2) width: parent.width * Math.max(0, Math.min(1, bar.value))
height: parent.height - parent.border.width * 2 height: parent.height
x: parent.border.width radius: parent.radius
y: parent.border.width
color: bar.fillColor color: bar.fillColor
Behavior on width { NumberAnimation { duration: Theme.animation.durationFast } } Behavior on width { NumberAnimation { duration: Theme.animation.durationFast } }
@@ -1,47 +1,26 @@
import QtQuick import QtQuick
import QtQuick.Effects
import "." import "."
// Base panel/card chrome shared by menus, pickers, and dialogs: sharp // Base panel/card chrome shared by menus, pickers, and dialogs: rounded
// corners, a solid 2px border, and a hard offset "shadow" - a flat duplicate // background, border, optional colored glow.
// rectangle displaced down-right, never blurred. `glow` switches the border Rectangle {
// and shadow from the default crust to `tint` (DESIGN.md's "Focused /
// Active" state, also used for danger/selected emphasis). `pressed`
// collapses the shadow and slides the face onto it - the mechanical
// depression press effect. Children declared on a Surface instance attach
// to the face, not the outer Item, so they translate together with it.
Item {
id: surface id: surface
default property alias content: face.data property color tint: Theme.colors.border
property alias color: face.color
property color tint: Theme.colors.primary
property bool glow: false property bool glow: false
property bool pressed: false
readonly property int offset: glow ? Theme.elevation.high : Theme.elevation.low radius: Theme.geometry.radiusMedium
readonly property color edgeColor: glow ? tint : Theme.colors.crust color: Theme.colors.background
border.color: tint
border.width: 1
Rectangle { layer.enabled: glow
id: shadow layer.effect: MultiEffect {
x: surface.offset shadowEnabled: true
y: surface.offset shadowColor: surface.tint
width: surface.width shadowOpacity: Theme.elevation.medium.opacity
height: surface.height shadowBlur: Theme.elevation.medium.blur
color: surface.edgeColor shadowVerticalOffset: 2
visible: !surface.pressed
}
Rectangle {
id: face
x: surface.pressed ? surface.offset : 0
y: surface.pressed ? surface.offset : 0
width: surface.width
height: surface.height
color: Theme.colors.background
border.width: Theme.geometry.borderWidth
border.color: surface.edgeColor
Behavior on x { NumberAnimation { duration: Theme.animation.durationFast; easing.type: Easing.Linear } }
Behavior on y { NumberAnimation { duration: Theme.animation.durationFast; easing.type: Easing.Linear } }
} }
} }
@@ -1,18 +1,17 @@
import QtQuick import QtQuick
import QtQuick.Effects
import "." import "."
// Search/filter input with a hard focus border + shadow, shared by // Search/filter input with an animated focus border + glow, shared by
// CommandPalette and ClipboardManager. Navigation is exposed as signals // CommandPalette and ClipboardManager. Navigation is exposed as signals
// (rather than exposing the inner TextInput's Keys handlers directly) so // (rather than exposing the inner TextInput's Keys handlers directly) so
// each caller can wire up its own list navigation. // each caller can wire up its own list navigation.
Item { Rectangle {
id: field id: field
property alias text: input.text property alias text: input.text
property alias echoMode: input.echoMode property alias echoMode: input.echoMode
property alias passwordCharacter: input.passwordCharacter
property string placeholder: "" property string placeholder: ""
property string prefix: ""
signal escapePressed() signal escapePressed()
signal upPressed() signal upPressed()
@@ -22,12 +21,6 @@ Item {
function focusInput() { input.forceActiveFocus(); } function focusInput() { input.forceActiveFocus(); }
readonly property bool focused: input.activeFocus
readonly property color edgeColor: focused ? Theme.colors.primary : Theme.colors.crust
readonly property int offset: focused ? Theme.elevation.high : Theme.elevation.low
height: 50
// The layer-shell surface only gets real keyboard focus from the // The layer-shell surface only gets real keyboard focus from the
// compositor asynchronously after it's first mapped, so a single // compositor asynchronously after it's first mapped, so a single
// forceActiveFocus() call right on visible-toggle can silently lose // forceActiveFocus() call right on visible-toggle can silently lose
@@ -41,70 +34,51 @@ Item {
onTriggered: input.forceActiveFocus() onTriggered: input.forceActiveFocus()
} }
Rectangle { height: 50
x: field.offset color: Theme.colors.surface
y: field.offset radius: Theme.geometry.radiusSmall
width: field.width border.width: 1
height: field.height border.color: input.activeFocus ? Theme.colors.primary : Theme.colors.border
color: field.edgeColor
Behavior on border.color { ColorAnimation { duration: Theme.animation.durationFast } }
layer.enabled: input.activeFocus
layer.effect: MultiEffect {
shadowEnabled: true
shadowColor: Theme.colors.primary
shadowOpacity: Theme.elevation.low.opacity
shadowBlur: Theme.elevation.low.blur
shadowHorizontalOffset: 0
shadowVerticalOffset: 0
} }
Rectangle { TextInput {
width: field.width id: input
height: field.height anchors.fill: parent
color: Theme.colors.surface anchors.margins: Theme.geometry.padding
border.width: Theme.geometry.borderWidth verticalAlignment: TextInput.AlignVCenter
border.color: field.edgeColor font.family: Theme.font.family
font.pixelSize: 18
Behavior on border.color { ColorAnimation { duration: Theme.animation.durationFast } } color: Theme.colors.text
clip: true
Text { Text {
id: prefixText text: field.placeholder
text: field.prefix color: Theme.colors.textMuted
visible: field.prefix.length > 0
color: Theme.colors.secondary
font.family: Theme.font.family font.family: Theme.font.family
font.bold: true
font.pixelSize: 18 font.pixelSize: 18
anchors.left: parent.left
anchors.leftMargin: Theme.geometry.padding
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
visible: input.text.length === 0
} }
TextInput { Keys.onEscapePressed: (event) => { field.escapePressed(); event.accepted = true; }
id: input Keys.onUpPressed: (event) => { field.upPressed(); event.accepted = true; }
anchors.fill: parent Keys.onDownPressed: (event) => { field.downPressed(); event.accepted = true; }
anchors.margins: Theme.geometry.padding Keys.onReturnPressed: (event) => { field.returnPressed(); event.accepted = true; }
anchors.leftMargin: field.prefix.length > 0 ? prefixText.width + Theme.geometry.padding + Theme.geometry.spacing / 2 : Theme.geometry.padding Keys.onPressed: (event) => {
verticalAlignment: TextInput.AlignVCenter if (event.key === Qt.Key_Delete || (event.key === Qt.Key_Backspace && input.text.length === 0)) {
font.family: Theme.font.family field.deleteRequested();
font.pixelSize: 18 event.accepted = true;
color: Theme.colors.text
clip: true
cursorDelegate: Rectangle {
width: 9
color: Theme.colors.primary
}
Text {
text: field.placeholder
color: Theme.colors.textMuted
font.family: Theme.font.family
font.pixelSize: 18
anchors.verticalCenter: parent.verticalCenter
visible: input.text.length === 0
}
Keys.onEscapePressed: (event) => { field.escapePressed(); event.accepted = true; }
Keys.onUpPressed: (event) => { field.upPressed(); event.accepted = true; }
Keys.onDownPressed: (event) => { field.downPressed(); event.accepted = true; }
Keys.onReturnPressed: (event) => { field.returnPressed(); event.accepted = true; }
Keys.onPressed: (event) => {
if (event.key === Qt.Key_Delete || (event.key === Qt.Key_Backspace && input.text.length === 0)) {
field.deleteRequested();
event.accepted = true;
}
} }
} }
} }
@@ -5,70 +5,61 @@ QtObject {
id: theme id: theme
// Regenerated by wallpaper-theme.nu on every wallpaper change - don't // Regenerated by wallpaper-theme.nu on every wallpaper change - don't
// hand-edit between these markers, it gets overwritten. Colors are // hand-edit between these markers, it gets overwritten.
// always opaque (no alpha blending) per the neo-brutalist system: solid
// blocks, no soft/translucent surfaces. `overlay` is the one exception
// (a full-screen dimming scrim, not a card surface).
// GENERATED:COLORS:BEGIN // GENERATED:COLORS:BEGIN
property QtObject colors: QtObject { property QtObject colors: QtObject {
property color background: "#1e1e2e" property color background: "#e611111b"
property color surface: "#181825" property color surface: "#cc181825"
property color surfaceHover: "#313244" property color surfaceHover: "#f2313244"
property color overlay: "#cc11111b" property color overlay: "#6011111b"
property color crust: "#11111b" property color primary: "#74c7ec"
property color outlineVariant: "#45475a"
property color primary: "#eba0ac"
property color secondary: "#cba6f7" property color secondary: "#cba6f7"
property color tertiary: "#f2cdcd" property color tertiary: "#a6e3a1"
property color accent: "#eba0ac" property color accent: "#74c7ec"
property color primaryContainer: "#695363" property color primaryContainer: "#2474c7ec"
property color secondaryContainer: "#5f557a" property color secondaryContainer: "#24cba6f7"
property color tertiaryContainer: "#6b616d" property color tertiaryContainer: "#24a6e3a1"
property color alert: "#f38ba8" property color alert: "#f38ba8"
property color alertContainer: "#6b4d62" property color alertContainer: "#24f38ba8"
property color success: "#a6e3a1" property color success: "#a6e3a1"
property color successContainer: "#546760" property color successContainer: "#24a6e3a1"
property color warning: "#f9e2af" property color warning: "#f9e2af"
property color warningContainer: "#6d6764" property color warningContainer: "#24f9e2af"
property color info: "#74c7ec" property color info: "#74c7ec"
property color infoContainer: "#455f76" property color infoContainer: "#2474c7ec"
property color text: "#cdd6f4" property color text: "#cdd6f4"
property color textMuted: "#a6adc8" property color textMuted: "#a6adc8"
property color textOnAccent: "#11111b" property color textOnAccent: "#e611111b"
property color border: "#11111b" property color border: "#1a74c7ec"
} }
// GENERATED:COLORS:END // GENERATED:COLORS:END
property QtObject geometry: QtObject { property QtObject geometry: QtObject {
property int radiusTiny: 0 property int radiusTiny: 6
property int radiusSmall: 0 property int radiusSmall: 8
property int radiusMedium: 0 property int radiusMedium: 10
property int pillRadius: 0 property int pillRadius: 100
property int padding: 12 property int padding: 12
property int spacing: 8 property int spacing: 8
property int borderWidth: 2
} }
property QtObject animation: QtObject { property QtObject animation: QtObject {
property int durationFast: 100 property int durationFast: 150
property int durationNormal: 150 property int durationNormal: 250
property int durationSlow: 250 property int durationSlow: 400
} }
// Hard offset-shadow steps (px), replacing the old blur/glow elevation // Named spring presets, so call sites stop hand-rolling
// system. No blur, ever - depth comes from a flat displaced duplicate // `SpringAnimation { spring: 4; damping: 0.3 }` with slightly different
// rectangle. `high` is used for the focused/active accent-colored // numbers each time.
// variant; `overlay` for big floating surfaces (launcher, modals). property QtObject motion: QtObject {
property QtObject elevation: QtObject { property QtObject springSnappy: QtObject { property real spring: 4; property real damping: 0.3 }
property int low: 4 property QtObject springSoft: QtObject { property real spring: 3; property real damping: 0.2 }
property int high: 6
property int overlay: 8
} }
// Type scale. Family stays fixed - this is only about size/weight steps. // Type scale. Family stays fixed - this is only about size/weight steps.
@@ -86,8 +77,15 @@ QtObject {
property int large: 24 property int large: 24
} }
// Named shadow presets for MultiEffect glows, keyed by how prominent the
// glow should read (e.g. hover vs. focus vs. an always-on active state).
property QtObject elevation: QtObject {
property QtObject low: QtObject { property real blur: 0.4; property real opacity: 0.35 }
property QtObject medium: QtObject { property real blur: 0.6; property real opacity: 0.5 }
property QtObject high: QtObject { property real blur: 0.8; property real opacity: 0.65 }
}
property QtObject font: QtObject { property QtObject font: QtObject {
property string family: "JetBrainsMono Nerd Font" property string family: "JetBrainsMono Nerd Font"
property string headlineFamily: "Plus Jakarta Sans"
} }
} }
@@ -1,44 +0,0 @@
import QtQuick
import "."
// Rectangular tray + square thumb toggle, per DESIGN.md: 36x20 tray, 12x12
// thumb that translates (never curves) between two hard-stop positions.
Item {
id: toggle
// Controlled component: clicking never mutates `checked` itself, it
// only requests a change via `toggled()` - the caller owns the real
// state (usually a live system property) and rebinds `checked` to it.
property bool checked: false
property color onColor: Theme.colors.success
signal toggled()
implicitWidth: 36
implicitHeight: 20
Rectangle {
anchors.fill: parent
color: toggle.checked ? toggle.onColor : Theme.colors.surface
border.width: Theme.geometry.borderWidth
border.color: Theme.colors.crust
Behavior on color { ColorAnimation { duration: Theme.animation.durationFast } }
Rectangle {
id: thumb
width: 12
height: 12
y: (parent.height - height) / 2
x: toggle.checked ? parent.width - width - 4 : 4
color: Theme.colors.crust
Behavior on x { NumberAnimation { duration: Theme.animation.durationFast; easing.type: Easing.Linear } }
}
}
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: toggle.toggled()
}
}
@@ -11,7 +11,7 @@ Rectangle {
radius: Theme.geometry.radiusMedium radius: Theme.geometry.radiusMedium
color: Theme.colors.background color: Theme.colors.background
border.color: Theme.colors.border border.color: Theme.colors.border
border.width: Theme.geometry.borderWidth border.width: 1
width: label.implicitWidth + Theme.geometry.padding * 2 width: label.implicitWidth + Theme.geometry.padding * 2
height: label.implicitHeight + Theme.geometry.padding height: label.implicitHeight + Theme.geometry.padding
@@ -9,5 +9,3 @@ Tooltip 1.0 Tooltip.qml
Showcase 1.0 Showcase.qml Showcase 1.0 Showcase.qml
ListRow 1.0 ListRow.qml ListRow 1.0 ListRow.qml
HintBar 1.0 HintBar.qml HintBar 1.0 HintBar.qml
ToggleSwitch 1.0 ToggleSwitch.qml
Checkbox 1.0 Checkbox.qml
@@ -121,6 +121,7 @@ PanelWindow {
height: isCurrent ? 320 : 200 height: isCurrent ? 320 : 200
color: Theme.colors.surface color: Theme.colors.surface
tint: delegateRoot.isCurrent ? Theme.colors.primary : Theme.colors.border tint: delegateRoot.isCurrent ? Theme.colors.primary : Theme.colors.border
border.width: delegateRoot.isCurrent ? 2 : 1
opacity: delegateRoot.isCurrent ? 1.0 : 0.5 opacity: delegateRoot.isCurrent ? 1.0 : 0.5
glow: delegateRoot.isCurrent glow: delegateRoot.isCurrent
clip: true clip: true
+17 -33
View File
@@ -11,7 +11,6 @@ import "components/ClipboardManager"
import "components/Notifications" import "components/Notifications"
import "components/WallpaperPicker" import "components/WallpaperPicker"
import "components/LockScreen" import "components/LockScreen"
import "components/QuickSettings"
ShellRoot { ShellRoot {
id: root id: root
@@ -21,26 +20,15 @@ ShellRoot {
property bool logoutMenuOpen: false property bool logoutMenuOpen: false
property bool clipboardManagerOpen: false property bool clipboardManagerOpen: false
property bool wallpaperPickerOpen: false property bool wallpaperPickerOpen: false
property bool quickSettingsOpen: false
property bool dndEnabled: false
// Only one overlay is ever open at once - closing every other one is
// simpler and less error-prone than each toggle() hand-listing its
// siblings (which is how this used to work, and reliably went stale
// every time a new overlay was added).
function closeOtherOverlays(keepOpen) {
if (keepOpen !== "commandPalette") commandPaletteOpen = false;
if (keepOpen !== "logoutMenu") logoutMenuOpen = false;
if (keepOpen !== "clipboardManager") clipboardManagerOpen = false;
if (keepOpen !== "wallpaperPicker") wallpaperPickerOpen = false;
if (keepOpen !== "quickSettings") quickSettingsOpen = false;
}
IpcHandler { IpcHandler {
target: "commandPalette" target: "commandPalette"
function toggle() { function toggle() {
commandPaletteOpen = !commandPaletteOpen; commandPaletteOpen = !commandPaletteOpen;
if (commandPaletteOpen) closeOtherOverlays("commandPalette"); if (commandPaletteOpen) {
logoutMenuOpen = false;
clipboardManagerOpen = false;
}
} }
} }
@@ -48,7 +36,10 @@ ShellRoot {
target: "logoutMenu" target: "logoutMenu"
function toggle() { function toggle() {
logoutMenuOpen = !logoutMenuOpen; logoutMenuOpen = !logoutMenuOpen;
if (logoutMenuOpen) closeOtherOverlays("logoutMenu"); if (logoutMenuOpen) {
commandPaletteOpen = false;
clipboardManagerOpen = false;
}
} }
} }
@@ -56,15 +47,10 @@ ShellRoot {
target: "clipboardManager" target: "clipboardManager"
function toggle() { function toggle() {
clipboardManagerOpen = !clipboardManagerOpen; clipboardManagerOpen = !clipboardManagerOpen;
if (clipboardManagerOpen) closeOtherOverlays("clipboardManager"); if (clipboardManagerOpen) {
} commandPaletteOpen = false;
} logoutMenuOpen = false;
}
IpcHandler {
target: "quickSettings"
function toggle() {
quickSettingsOpen = !quickSettingsOpen;
if (quickSettingsOpen) closeOtherOverlays("quickSettings");
} }
} }
@@ -82,7 +68,11 @@ ShellRoot {
target: "wallpaperSwitcher" target: "wallpaperSwitcher"
function open() { function open() {
wallpaperPickerOpen = !wallpaperPickerOpen; wallpaperPickerOpen = !wallpaperPickerOpen;
if (wallpaperPickerOpen) closeOtherOverlays("wallpaperPicker"); if (wallpaperPickerOpen) {
commandPaletteOpen = false;
logoutMenuOpen = false;
clipboardManagerOpen = false;
}
} }
function random() { function random() {
randomWallpaperProcess.running = false; randomWallpaperProcess.running = false;
@@ -127,12 +117,6 @@ ShellRoot {
Notifications { Notifications {
id: notifications id: notifications
rootState: root
}
QuickSettings {
id: quickSettings
rootState: root
} }
WallpaperPicker { WallpaperPicker {
+5 -5
View File
@@ -1,11 +1,12 @@
{ {
"lastChangelogVersion": "0.86.0", "lastChangelogVersion": "0.84.0",
"defaultProvider": "9Router", "defaultProvider": "antigravity",
"defaultModel": "cc/claude-sonnet-5", "defaultModel": "gemini-3.1-pro",
"extensions": [ "extensions": [
"../extensions" "../extensions"
], ],
"packages": [ "packages": [
"npm:pi-antigravity",
"npm:pi-catppuccin-tui", "npm:pi-catppuccin-tui",
"npm:pi-lens", "npm:pi-lens",
"npm:pi-web-access", "npm:pi-web-access",
@@ -17,8 +18,7 @@
"npm:@juanibiapina/pi-powerbar", "npm:@juanibiapina/pi-powerbar",
"npm:context-mode", "npm:context-mode",
"npm:@ff-labs/pi-fff", "npm:@ff-labs/pi-fff",
"npm:@juicesharp/rpiv-ask-user-question", "npm:@juicesharp/rpiv-ask-user-question"
"npm:@haoyiyin/9router"
], ],
"theme": "catppuccin-tui-mocha", "theme": "catppuccin-tui-mocha",
"hideThinkingBlock": true, "hideThinkingBlock": true,
+29
View File
@@ -0,0 +1,29 @@
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBuaG9OS29HdDdkcXl4T1hI
YjVOZFBEQlZxWnlMVUVmOGxpMVlLSG8walUwCjJqZzUyak4vc1FZc2VCUnMzNXIw
eWFRU3piZ1Y4TmMwZFd3emp4bm9BVHcKLS0tIE9qUmgzTDk3NTJtb29jV3dPTVQx
RlI1NnB6QW11MkxneHU2SGh5TFpaSTgKOsxXZKY5pTE4h4qJyTzZQnq0o3uTgSrJ
HPO27p1b/wTJfP2kNt1a16pDHxkaNpfssSS52xlR63odRAq6jKvFg/6oanQkEQUF
8MjvX8Uq1CWqMkdSkRxXoOT8a1oupKm3L0LeQNXHTNKflY0z9CN3m4pAaXRAfSJT
7tBgyCL7F8L4n1FYrnFw4ScnVYLxcHcIz9OwdWUH2fsEpatiEdAFu1NhsO/GmObQ
Z2LinVCcLvtCrHsU4Onv5sF720vyS86AcQysj//ZfHljJFzNBCNlw89+VP/jYwwW
+80Hx9YWYvEM2yFs7G735id4Hkd8P+BZuTxyWO/ed42VZCZMFZJ+UimsKI3TwAZw
F48Dogsw+IXr+N6Y5s+A4k7B9pEDYEgDikUFvNgLKr6o/H7JQgCW1zl0fPfELfwq
oiywElLP5lmoKEeOyrSVJ5Fhl77oQSyurR3zXvrMVEh715KJAjHetYPgUck+PHM9
yblRuSneNxsGIgR6FCAhkyfWVH/uQuCG9/1gD0rlOAMSr4Fp1ud03m+Kb+ROZzaO
5guhzhk1+dlBdf+J++v6v9VHqOs5v7lkFKaxuQ5rfgsr+cqjWW1tTKrqojrMIXC1
5ljfaBEd7L25ppgfIxf5pXeyi+h1KkKzNYTpDzgL9/6s7EaFq+cwGi2ljsdHOyCc
Oey8mY/6KJTh8DIURpySOcX2aQC1eDBtT2LP9Or7W4FejyOtqVNSmSD97GTS/Kg9
YEaRRyLWCJ8zQKwf4pqDUjJQ7RtaAOMDD+bBWVgbtqy7niPKX8Ivuc9ezOjpEgAG
svL4FUqLjuP0b7x7cii1q7LEETLQbas8F776s0sXfI8yqWodKmJ6i3zhdckAe4Zz
He/BxHVLfhrYYxqea17SgEQQRXS641VRYxJ8GONYOmEEpKseI61+a6b/8LkYxxzc
RrHMD1Nx32eKJ1HgpeBHP3M+N1ugyHv5EYh7btmpyHX4SL12RN+0uHa1GtzoWoYp
amW1UbNgJl/1gQNoOsi3mKWuaxkLro1G+RQCKDqXZtkzDs8ZXEzNqrXD9s49kymN
2WkEzFB6T/qw8zqdMuO4+ZvGPF7fFnOFSg8UU9LZhiguWBZCbeBaxlOoO2jA9nnL
cBfEApIbGz1zYOZ09H/i28qR7JABhltSOBglonBm2WeKMGcVDpLH40N5AexUW17E
Y6EpDTN7RF7Edk5aAdFqCuc7WiwI0R4xWPHMybBWhM6xUUQzc7yOEsJvjJpc2NC6
IzkqYO7vFxcY2C//2qP+Fy9bn4Xgjbp4lloaxVxzpcnGYwULO+KI/PtfgD1CA5PZ
p2EAwK4YHv9N09DhmrF5itojiXeETqtQN7XG94Z4dOSKLevveTSmz680gfoIo7yy
k3aDaw0Y2dq5JRvDfvVuL3svm/jPX0MZA18oCgpoGymoi74KBdSeKmBhiDjk5dLJ
A7XlzvEspssXNbmS5ESZMWL3lg==
-----END AGE ENCRYPTED FILE-----
+9
View File
@@ -0,0 +1,9 @@
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB4WFlzWHpnWENKZEpLNzdp
WjRSR0dhYnp5L2J4eDFnSnZJWnFaRVdvQUM0CkVTU2hCMm1kRnBvUmZ6Y0U3bVo1
OTU5ZGZwK3ArbEpFb2d1cjNJVUVuYncKLS0tIENpbVI4djBMMFhpUmhBYkt1ekVC
UGdWTEo0Q285U2NxM205TEFYMStSTmMKvVINvvr4n12TRrN5374NwTvpIzuGqoM4
C46tq02JGr1d3yvcGP3Zx2LNSrdCoJQwxt2SHZB4X6aq2a4e/E4vXxwiC4e8FRqQ
bw1zrLREaV5iKUciD06VivAg0M/qvPpX3b2ftPcpNmmkp2fC5eS6pmwmm26ztz3y
pdtjEBBCpIZWY8G20RHLkz1qtEoHv1dbEC3H
-----END AGE ENCRYPTED FILE-----
+6
View File
@@ -0,0 +1,6 @@
let
user = "age1shfm2jam52qrmp5gh3fshmejwj429yfqr0vp3spfwws9l0l0hqlqzzcrhq";
in {
"git_config.age".publicKeys = [ user ];
"jj_config.age".publicKeys = [ user ];
}