Compare commits
23
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f5d827f3b9 | ||
|
|
6eaec00f6b | ||
|
|
bd95426255 | ||
|
|
b1afff322f | ||
|
|
fb7781e4a7 | ||
|
|
582a90cc26 | ||
|
|
8024924a16 | ||
|
|
589561c973 | ||
|
|
02d8b81d70 | ||
|
|
d503ff7496 | ||
|
|
c3c1f29df0 | ||
|
|
215d8b7d8e | ||
|
|
5a004b8be5 | ||
|
|
44cf203da4 | ||
|
|
fef7cacc9e | ||
|
|
832d2544da | ||
|
|
c7fb3f9c02 | ||
|
|
78c23b35ca | ||
|
|
ab24daec95 | ||
|
|
17281a04cd | ||
|
|
acc593a1e4 | ||
|
|
4d56835ade | ||
|
|
bb0ff9089f |
No files matched your search
-15
@@ -1,18 +1,3 @@
|
||||
result
|
||||
|
||||
mutable_config/zed/prompts/*
|
||||
|
||||
hyprland-gui.lua
|
||||
|
||||
.DS_Store
|
||||
|
||||
# Devenv
|
||||
.devenv*
|
||||
devenv.local.nix
|
||||
devenv.local.yaml
|
||||
|
||||
# direnv
|
||||
.direnv
|
||||
|
||||
# pre-commit
|
||||
.pre-commit-config.yaml
|
||||
@@ -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."
|
||||
@@ -103,7 +103,7 @@ source $"($nu.cache-dir)/starship.nu"
|
||||
source $"($nu.cache-dir)/carapace.nu"
|
||||
source $"($nu.cache-dir)/zoxide.nu"
|
||||
source $"($nu.cache-dir)/atuin.nu"
|
||||
source $"($nu.cache-dir)/devenv.nu"
|
||||
source $"($nu.cache-dir)/mise.nu"
|
||||
|
||||
#--------
|
||||
# Scripts
|
||||
|
||||
@@ -8,7 +8,7 @@ path add ~/go/bin
|
||||
path add ~/.nix-profile/bin
|
||||
path add ~/.npm-global/bin
|
||||
|
||||
$env.SHELL = which nu
|
||||
$env.SHELL = '/usr/bin/nu'
|
||||
$env.ZELLIJ_SOCKET_DIR = '/tmp/zellij'
|
||||
$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" }
|
||||
$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 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
|
||||
$env.PATH = ($env.PATH | uniq)
|
||||
|
||||
@@ -13,13 +13,6 @@ def hex-byte [] {
|
||||
$"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>] {
|
||||
let r = $rgb.r / 255
|
||||
let g = $rgb.g / 255
|
||||
@@ -137,25 +130,9 @@ def pick-accents [flavor: string, swatches: list, want: int, min_sep: float] {
|
||||
$chosen_names
|
||||
}
|
||||
|
||||
def blend-hex [a: string, b: string, ratio: float] {
|
||||
# Opaque RGB interpolation - neo-brutalist surfaces are solid blocks, never
|
||||
# alpha blends, so "muted container" colors are baked as real flat hex.
|
||||
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 container-tint [hex: string] {
|
||||
# accent-tinted, ~14% opacity - a soft fill for badges/containers
|
||||
$"#24($hex | str substring 1..)"
|
||||
}
|
||||
|
||||
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 tertiary = ($p.accents | get $accent_names.2)
|
||||
let info = $p.accents.sapphire
|
||||
let border = $"#1a($primary | str substring 1..)" # accent-tinted, ~10% opacity
|
||||
|
||||
let colors = [
|
||||
$" property color background: \"($p.base)\""
|
||||
$" property color surface: \"($p.mantle)\""
|
||||
$" property color surfaceHover: \"($p.surface0)\""
|
||||
$" property color overlay: \"#cc($p.crust | str substring 1..)\""
|
||||
""
|
||||
$" property color crust: \"($p.crust)\""
|
||||
$" property color outlineVariant: \"($p.surface1)\""
|
||||
$" property color background: \"#e6($p.crust | str substring 1..)\""
|
||||
$" property color surface: \"#cc($p.mantle | str substring 1..)\""
|
||||
$" property color surfaceHover: \"#f2($p.surface0 | str substring 1..)\""
|
||||
$" property color overlay: \"#60($p.crust | str substring 1..)\""
|
||||
""
|
||||
$" property color primary: \"($primary)\""
|
||||
$" property color secondary: \"($secondary)\""
|
||||
$" property color tertiary: \"($tertiary)\""
|
||||
$" property color accent: \"($primary)\""
|
||||
""
|
||||
$" property color primaryContainer: \"(container-tint $p.surface0 $primary)\""
|
||||
$" property color secondaryContainer: \"(container-tint $p.surface0 $secondary)\""
|
||||
$" property color tertiaryContainer: \"(container-tint $p.surface0 $tertiary)\""
|
||||
$" property color primaryContainer: \"(container-tint $primary)\""
|
||||
$" property color secondaryContainer: \"(container-tint $secondary)\""
|
||||
$" property color tertiaryContainer: \"(container-tint $tertiary)\""
|
||||
""
|
||||
$" 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 successContainer: \"(container-tint $p.surface0 $p.green)\""
|
||||
$" property color successContainer: \"(container-tint $p.green)\""
|
||||
$" 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 infoContainer: \"(container-tint $p.surface0 $info)\""
|
||||
$" property color infoContainer: \"(container-tint $info)\""
|
||||
""
|
||||
$" property color text: \"($p.text)\""
|
||||
$" 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"
|
||||
|
||||
-65
@@ -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
@@ -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/
|
||||
}
|
||||
@@ -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
@@ -1,17 +1,40 @@
|
||||
{
|
||||
"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": {
|
||||
"inputs": {
|
||||
"flake-schemas": "flake-schemas",
|
||||
"home-manager": "home-manager",
|
||||
"home-manager": "home-manager_2",
|
||||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1789888251,
|
||||
"narHash": "sha256-87FnTLFt4z4emGaHpr3LU+CZNPuQoIKJcch3r67sk38=",
|
||||
"lastModified": 1786855262,
|
||||
"narHash": "sha256-mMgM6dKcrpZ0sBrlnYU4EoV1JzWjIP8faWPllFXhW8g=",
|
||||
"owner": "chaotic-cx",
|
||||
"repo": "nyx",
|
||||
"rev": "3664813556bca7ea70188e050ea56690bc5da59c",
|
||||
"rev": "651d55cfb9ae62189ce078ad35161043490c1a96",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -21,6 +44,46 @@
|
||||
"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": {
|
||||
"locked": {
|
||||
"lastModified": 1780327564,
|
||||
@@ -38,16 +101,16 @@
|
||||
"home-manager": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"chaotic",
|
||||
"agenix",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1789867870,
|
||||
"narHash": "sha256-sOag/7DTqw4tXLI7UxjrZxPGV+dlTe6zFtJn0VSkgFM=",
|
||||
"lastModified": 1745494811,
|
||||
"narHash": "sha256-YZCh2o9Ua1n9uCvrvi5pRxtuVNml8X2a03qIFfRKpFs=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "d2a22a3659a6ae99847ea9176114f6957b8ac62e",
|
||||
"rev": "abfad3d2958c9e6300a883bd443512c55dfeb1be",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -59,15 +122,16 @@
|
||||
"home-manager_2": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"chaotic",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1789978077,
|
||||
"narHash": "sha256-p/e37FfVifxJQJM7OiiVbUXdpj6eXmOJk34TKLKyYe4=",
|
||||
"lastModified": 1786719456,
|
||||
"narHash": "sha256-B74DLQs/VjlqyhnnX3tguWwghqJHWSJX30TKZuAljIg=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "a26f7158fbc4aa740fcc7fa79a01e1ed29910bc2",
|
||||
"rev": "83b7606dcf44abe3a94b86e8bb2b3355d22e8797",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -79,21 +143,19 @@
|
||||
"home-manager_3": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixcord",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1789267039,
|
||||
"narHash": "sha256-LWiBv9yAYFi2LPbUhDGHPGKYskJQjj2fw12OlyO1uQo=",
|
||||
"lastModified": 1784789275,
|
||||
"narHash": "sha256-cgRTWuG+u1tBPhm01JrId2k0Bni09phVJ1Q0BZlRd7M=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "ec172013fa62135f58fb58dd17ae9651e8f39727",
|
||||
"rev": "3b0e6bbd65869af1beadf5963a99befc179d209f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"ref": "release-26.05",
|
||||
"repo": "home-manager",
|
||||
"type": "github"
|
||||
}
|
||||
@@ -105,11 +167,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1787844471,
|
||||
"narHash": "sha256-AKnBFjkZs4UGZqMT3yIkaCdpvM2fVccU1dVuK5AVZBk=",
|
||||
"lastModified": 1787208859,
|
||||
"narHash": "sha256-f8ygnyOlwXGfM31+GB+B8y7TYDShyzHKuPo1ww+uxtQ=",
|
||||
"owner": "BlueManCZ",
|
||||
"repo": "hyprmod",
|
||||
"rev": "ffd47d804d8996cf3852dbb7ca1c949c424a57fb",
|
||||
"rev": "bf5b55a9a89d7eab5a6d6947743de9dcb1cacd4a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -118,42 +180,19 @@
|
||||
"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": {
|
||||
"inputs": {
|
||||
"home-manager": "home-manager_3",
|
||||
"nix-darwin": "nix-darwin",
|
||||
"flake-parts": "flake-parts",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"nixpkgs-nixcord": "nixpkgs-nixcord",
|
||||
"treefmt-nix": "treefmt-nix"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1789982989,
|
||||
"narHash": "sha256-SMtg4nE6ehDMGHQ4JcATqHUbnao75siok9l4BYHl2eQ=",
|
||||
"lastModified": 1786878900,
|
||||
"narHash": "sha256-Q2Ed3e0TvgP6vNp6j6Lw8ReObARjl3TQgMWr1uutOjs=",
|
||||
"owner": "kaylorben",
|
||||
"repo": "nixcord",
|
||||
"rev": "faa48ca1531b03291cb071edb1ee8fa752e42c90",
|
||||
"rev": "c2739f4f45543aad98ec0b0bb27975fb2ff55455",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -164,24 +203,42 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1789785513,
|
||||
"narHash": "sha256-BMbikTjbh5H7ac/OjwGoJrlooh4dgNqhs51ABM83M7g=",
|
||||
"rev": "20b1ddd1aa5ace70c9468305030aa4f9ef79671b",
|
||||
"type": "tarball",
|
||||
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1076192.20b1ddd1aa5a/nixexprs.tar.zst"
|
||||
"lastModified": 1786599213,
|
||||
"narHash": "sha256-yNJd40f11EzXBjSByCB7IPpeFFAdeoSKKM67dGkfFoU=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "0e251e24a4f24e036a084b6b4b2d2491af4167f4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"type": "tarball",
|
||||
"url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst"
|
||||
"owner": "NixOS",
|
||||
"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": {
|
||||
"locked": {
|
||||
"lastModified": 1789459628,
|
||||
"narHash": "sha256-JOaadoI/IC9qEvwlnjwAhwdcWkCDqEeOJ+cOtUH/8RQ=",
|
||||
"lastModified": 1786711500,
|
||||
"narHash": "sha256-QvnceIGTBeDvDd9oCn+GvdsnkquliuwbVgpiRH68qaQ=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b67c7a60c3732edd4b947a7df8af06215851a614",
|
||||
"rev": "02e08985a27c65ffd33d434eeb2e660a2e4dc84d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -193,11 +250,11 @@
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1789459628,
|
||||
"narHash": "sha256-JOaadoI/IC9qEvwlnjwAhwdcWkCDqEeOJ+cOtUH/8RQ=",
|
||||
"lastModified": 1786711500,
|
||||
"narHash": "sha256-QvnceIGTBeDvDd9oCn+GvdsnkquliuwbVgpiRH68qaQ=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b67c7a60c3732edd4b947a7df8af06215851a614",
|
||||
"rev": "02e08985a27c65ffd33d434eeb2e660a2e4dc84d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -209,11 +266,11 @@
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1789921291,
|
||||
"narHash": "sha256-Ft/BRnIqw1MywFoXydKobjjWmDFgDdYtSpJliE8+yUw=",
|
||||
"lastModified": 1784497964,
|
||||
"narHash": "sha256-vlHUuqAcbcH2RKmHbPiuQzbv1pnzzavXnI62RD0bqCU=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "44a91898084f46797b5fac650c7e8c9ac38c43d4",
|
||||
"rev": "241313f4e8e508cb9b13278c2b0fa25b9ca27163",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -225,11 +282,11 @@
|
||||
},
|
||||
"nixpkgs_4": {
|
||||
"locked": {
|
||||
"lastModified": 1789149629,
|
||||
"narHash": "sha256-eQUZVehWLDBbpBR2rq6DnuRee1ULT6Y675RhsYDSjYI=",
|
||||
"rev": "eaad089433ca2bb662274377d33df3d0e51ef28b",
|
||||
"lastModified": 1787360063,
|
||||
"narHash": "sha256-95aJfHyQTLWslCXFVNB0odgmVkpdmDezQwTg9mhqV1E=",
|
||||
"rev": "2c423e03bbafcff28bfadc6781a4a8257f205cb5",
|
||||
"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": {
|
||||
"type": "tarball",
|
||||
@@ -238,8 +295,9 @@
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"agenix": "agenix",
|
||||
"chaotic": "chaotic",
|
||||
"home-manager": "home-manager_2",
|
||||
"home-manager": "home-manager_3",
|
||||
"hyprmod": "hyprmod",
|
||||
"nixcord": "nixcord",
|
||||
"nixpkgs": "nixpkgs_3",
|
||||
@@ -249,14 +307,14 @@
|
||||
"spicetify": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs_4",
|
||||
"systems": "systems"
|
||||
"systems": "systems_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1789291406,
|
||||
"narHash": "sha256-lfZ7yAaTZMuAzOSLjJ7ivrKIFk0E11koWTVgkWSXwuE=",
|
||||
"lastModified": 1787460061,
|
||||
"narHash": "sha256-r2FJY01jRVhrZIKPdhQ3QFYsAz3wjilWTMSSH7VMOeo=",
|
||||
"owner": "Gerg-L",
|
||||
"repo": "spicetify-nix",
|
||||
"rev": "09eed5c95105aada9ffabd4c7eb6b345dc4ba66f",
|
||||
"rev": "a8adfd6f9f341dd586d5c06dda3bbfa21c6014e7",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -280,6 +338,21 @@
|
||||
"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": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
@@ -288,11 +361,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1786901030,
|
||||
"narHash": "sha256-WSFCsDSE5ffgD2MqzkM2CYjeFiKhRF/dJUN8uedb6YE=",
|
||||
"lastModified": 1785945821,
|
||||
"narHash": "sha256-NLSyTCW4K4ofhNBllt3omPasm6QpralXH1DBZOc91Dw=",
|
||||
"owner": "numtide",
|
||||
"repo": "treefmt-nix",
|
||||
"rev": "27b3b12a8e6375f28ebe122f07d230ca5459bbfa",
|
||||
"rev": "ae7910970dddc408fe6ab1c8e4b277bb21d72dc0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -7,41 +7,33 @@
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
agenix = {
|
||||
url = "github:ryantm/agenix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
|
||||
nixcord.url = "github:kaylorben/nixcord";
|
||||
hyprmod = {
|
||||
url = "github:BlueManCZ/hyprmod";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
url = "github:BlueManCZ/hyprmod";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
spicetify.url = "github:Gerg-L/spicetify-nix";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
chaotic,
|
||||
nixcord,
|
||||
hyprmod,
|
||||
spicetify,
|
||||
...
|
||||
}:
|
||||
outputs = { self, nixpkgs, home-manager, agenix, chaotic, nixcord, hyprmod, spicetify, ... }:
|
||||
let
|
||||
mkHome =
|
||||
system:
|
||||
home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
extraSpecialArgs = { inherit hyprmod spicetify; };
|
||||
modules = [
|
||||
nixcord.homeModules.nixcord
|
||||
./home.nix
|
||||
chaotic.homeModules.default
|
||||
spicetify.homeManagerModules.default
|
||||
];
|
||||
};
|
||||
in
|
||||
{
|
||||
mkHome = system: home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
extraSpecialArgs = { inherit hyprmod spicetify; };
|
||||
modules = [
|
||||
agenix.homeManagerModules.age
|
||||
nixcord.homeModules.nixcord
|
||||
./home.nix
|
||||
chaotic.homeModules.default
|
||||
spicetify.homeManagerModules.default
|
||||
];
|
||||
};
|
||||
in {
|
||||
homeConfigurations = {
|
||||
mac = mkHome "aarch64-darwin";
|
||||
linux = mkHome "x86_64-linux";
|
||||
|
||||
@@ -1,11 +1,4 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
hyprmod,
|
||||
spicetify,
|
||||
...
|
||||
}:
|
||||
{ config, pkgs, lib, hyprmod, spicetify, ... }:
|
||||
|
||||
{
|
||||
nix.package = pkgs.nix;
|
||||
@@ -13,8 +6,7 @@
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
home.username = "johannes";
|
||||
home.homeDirectory =
|
||||
if pkgs.stdenv.hostPlatform.isDarwin then "/Users/johannes" else "/home/johannes";
|
||||
home.homeDirectory = if pkgs.stdenv.hostPlatform.isDarwin then "/Users/johannes" else "/home/johannes";
|
||||
|
||||
home.stateVersion = "24.05";
|
||||
|
||||
@@ -29,81 +21,70 @@
|
||||
hyprcursor.size = 24;
|
||||
};
|
||||
|
||||
home.packages =
|
||||
with pkgs;
|
||||
[
|
||||
curl
|
||||
wget
|
||||
neovim
|
||||
ripgrep
|
||||
fd
|
||||
nushell
|
||||
starship
|
||||
zoxide
|
||||
lazygit
|
||||
fastfetch
|
||||
eza
|
||||
atuin
|
||||
zellij
|
||||
herdr
|
||||
unp
|
||||
carapace
|
||||
bun
|
||||
nodejs
|
||||
pipx
|
||||
python3
|
||||
uv
|
||||
rustup
|
||||
cargo-binstall
|
||||
mise
|
||||
television
|
||||
pay-respects
|
||||
sops
|
||||
age
|
||||
devenv
|
||||
pi-coding-agent
|
||||
yazi
|
||||
unzip
|
||||
obsidian
|
||||
htop
|
||||
mpv
|
||||
jellytui
|
||||
tlrc
|
||||
mago
|
||||
zotero
|
||||
]
|
||||
++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [
|
||||
owncloud-client
|
||||
wl-clipboard
|
||||
cliphist
|
||||
hyprmod.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||
librepods
|
||||
easyeffects
|
||||
lutris
|
||||
claude-code
|
||||
imagemagick
|
||||
mangohud
|
||||
libsecret
|
||||
termius
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
git
|
||||
curl
|
||||
wget
|
||||
neovim
|
||||
ripgrep
|
||||
fd
|
||||
nushell
|
||||
starship
|
||||
zoxide
|
||||
lazygit
|
||||
fastfetch
|
||||
eza
|
||||
atuin
|
||||
zellij
|
||||
herdr
|
||||
unp
|
||||
carapace
|
||||
bun
|
||||
nodejs
|
||||
pipx
|
||||
python3
|
||||
uv
|
||||
rustup
|
||||
cargo-binstall
|
||||
mise
|
||||
television
|
||||
pay-respects
|
||||
sops
|
||||
age
|
||||
devenv
|
||||
pi-coding-agent
|
||||
yazi
|
||||
unzip
|
||||
obsidian
|
||||
htop
|
||||
mpv
|
||||
jellytui
|
||||
tlrc
|
||||
mago
|
||||
] ++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [
|
||||
owncloud-client
|
||||
wl-clipboard
|
||||
cliphist
|
||||
hyprmod.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||
librepods
|
||||
easyeffects
|
||||
lutris
|
||||
claude-code
|
||||
imagemagick
|
||||
mangohud
|
||||
];
|
||||
|
||||
home.file = {
|
||||
".config" = {
|
||||
source = ./config;
|
||||
recursive = true;
|
||||
};
|
||||
".config/yazi".source =
|
||||
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/btop".source =
|
||||
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/btop";
|
||||
".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";
|
||||
".config/yazi".source = 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/btop".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/btop";
|
||||
".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" = {
|
||||
source = ./local_share;
|
||||
recursive = true;
|
||||
@@ -112,14 +93,20 @@
|
||||
source = ./local_bin;
|
||||
recursive = true;
|
||||
};
|
||||
".agents".source =
|
||||
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/agents";
|
||||
".claude/skills".source =
|
||||
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/agents/skills";
|
||||
".pi/agent/settings.json".source =
|
||||
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/pi/agent/settings.json";
|
||||
".pi/extensions".source =
|
||||
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/pi/extensions";
|
||||
".agents".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/agents";
|
||||
".claude/skills".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/agents/skills";
|
||||
".pi/agent/settings.json".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/pi/agent/settings.json";
|
||||
".pi/extensions".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/pi/extensions";
|
||||
};
|
||||
|
||||
age.identityPaths = [ "${config.home.homeDirectory}/.config/age/keys.txt" ];
|
||||
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 = ''
|
||||
@@ -129,35 +116,20 @@
|
||||
background-blur = true
|
||||
auto-update = check
|
||||
macos-option-as-alt = left
|
||||
shell-integration = nushell
|
||||
shell-integration-features = ssh-env,ssh-terminfo
|
||||
''
|
||||
+ lib.optionalString pkgs.stdenv.hostPlatform.isLinux ''
|
||||
'' + lib.optionalString pkgs.stdenv.hostPlatform.isLinux ''
|
||||
command = nu
|
||||
'';
|
||||
|
||||
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
|
||||
${pkgs.git}/bin/git clone https://github.com/jokresner/nvim "$HOME/.config/nvim"
|
||||
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 = {
|
||||
enable = true;
|
||||
vesktop.enable = true;
|
||||
@@ -169,30 +141,30 @@
|
||||
|
||||
plugins = {
|
||||
# --- 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
|
||||
clearUrls.enable = true; # Remove tracking parameters from links
|
||||
memberCount.enable = true; # Show server member count next to the server name
|
||||
showHiddenThings.enable = true; # See hidden channels (read-only)
|
||||
showMeYourName.enable = true; # Show original usernames next to nicknames
|
||||
alwaysAnimate.enable = true; # Always animate channel icons
|
||||
clearUrls.enable = true; # Remove tracking parameters from links
|
||||
memberCount.enable = true; # Show server member count next to the server name
|
||||
showHiddenThings.enable = true; # See hidden channels (read-only)
|
||||
showMeYourName.enable = true; # Show original usernames next to nicknames
|
||||
alwaysAnimate.enable = true; # Always animate channel icons
|
||||
biggerStreamPreview.enable = true; # Bigger stream previews
|
||||
|
||||
# --- Media & Embeds ---
|
||||
fixSpotifyEmbeds.enable = true; # Fix broken Spotify embeds
|
||||
fixYoutubeEmbeds.enable = true; # Fix broken YouTube video embeds
|
||||
volumeBooster.enable = true; # Boost user volume past 200%
|
||||
youtubeAdblock.enable = true; # Block ads inside YouTube embeds
|
||||
spotifyControls.enable = true; # Show Spotify controls
|
||||
fixSpotifyEmbeds.enable = true; # Fix broken Spotify embeds
|
||||
fixYoutubeEmbeds.enable = true; # Fix broken YouTube video embeds
|
||||
volumeBooster.enable = true; # Boost user volume past 200%
|
||||
youtubeAdblock.enable = true; # Block ads inside YouTube embeds
|
||||
spotifyControls.enable = true; # Show Spotify controls
|
||||
|
||||
# --- 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
|
||||
|
||||
# --- Utility & Fun ---
|
||||
fakeNitro.enable = true; # Stream in high quality, use external emojis
|
||||
messageLogger.enable = true; # Keep deleted messages visible in your client locally
|
||||
whoReacted.enable = true; # Show avatars of users who reacted to a message
|
||||
fakeNitro.enable = true; # Stream in high quality, use external emojis
|
||||
messageLogger.enable = true; # Keep deleted messages visible in your client locally
|
||||
whoReacted.enable = true; # Show avatars of users who reacted to a message
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -78,7 +78,7 @@ hl.config({
|
||||
gaps_out = 20,
|
||||
border_size = 2,
|
||||
col = {
|
||||
active_border = "rgb(cba6f7)",
|
||||
active_border = "rgb(f38ba8)",
|
||||
inactive_border = "rgb(45475a)",
|
||||
},
|
||||
resize_on_border = false,
|
||||
@@ -86,11 +86,15 @@ hl.config({
|
||||
layout = "dwindle",
|
||||
},
|
||||
decoration = {
|
||||
rounding = 0,
|
||||
rounding = 2,
|
||||
rounding_power = 2,
|
||||
active_opacity = 1.0,
|
||||
inactive_opacity = 0.9,
|
||||
shadow = {
|
||||
enabled = false,
|
||||
enabled = true,
|
||||
range = 4,
|
||||
render_power = 3,
|
||||
color = "rgba(1a1a1aee)",
|
||||
},
|
||||
blur = {
|
||||
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 .. " + Space", hl.dsp.exec_cmd(menu))
|
||||
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 .. " + F", hl.dsp.window.fullscreen({ action = "toggle" }))
|
||||
hl.bind(mainMod .. " + L", hl.dsp.exec_cmd(lock))
|
||||
|
||||
@@ -106,9 +106,8 @@ PanelWindow {
|
||||
delegate: Rectangle {
|
||||
width: 24
|
||||
height: 24
|
||||
radius: Theme.geometry.radiusTiny
|
||||
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 } }
|
||||
|
||||
@@ -236,17 +235,6 @@ PanelWindow {
|
||||
: "No battery"
|
||||
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
|
||||
@@ -472,16 +460,16 @@ PanelWindow {
|
||||
property string tooltip: ""
|
||||
property bool active: false
|
||||
property color tint: Theme.colors.primary
|
||||
signal clicked()
|
||||
|
||||
width: 24
|
||||
height: 24
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: hoverArea.containsMouse ? Theme.colors.surfaceHover : "transparent"
|
||||
border.width: trayIcon.active ? Theme.geometry.borderWidth : 0
|
||||
border.color: trayIcon.tint
|
||||
radius: Theme.geometry.radiusTiny
|
||||
color: hoverArea.containsMouse
|
||||
? Theme.colors.surfaceHover
|
||||
: (trayIcon.active ? Qt.alpha(trayIcon.tint, 0.15) : "transparent")
|
||||
|
||||
Behavior on color { ColorAnimation { duration: Theme.animation.durationFast } }
|
||||
|
||||
@@ -500,7 +488,6 @@ PanelWindow {
|
||||
id: hoverArea
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onEntered: {
|
||||
if (trayIcon.tooltip.length > 0) {
|
||||
// Anchor on the icon's horizontal center; the tooltip
|
||||
@@ -510,7 +497,6 @@ PanelWindow {
|
||||
}
|
||||
}
|
||||
onExited: barWindow.hideTooltip()
|
||||
onClicked: trayIcon.clicked()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -46,7 +46,7 @@ PanelWindow {
|
||||
tint: Theme.colors.secondary
|
||||
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 height { NumberAnimation { duration: Theme.animation.durationFast; easing.type: Easing.OutCubic } }
|
||||
|
||||
@@ -157,7 +157,7 @@ PanelWindow {
|
||||
|
||||
Text {
|
||||
text: model.content
|
||||
color: clipRow.selected ? Theme.colors.textOnAccent : Theme.colors.text
|
||||
color: Theme.colors.text
|
||||
font.family: Theme.font.family
|
||||
font.pixelSize: Theme.type.label
|
||||
anchors.left: parent.left
|
||||
|
||||
@@ -46,7 +46,6 @@ PanelWindow {
|
||||
}
|
||||
}
|
||||
|
||||
readonly property int titleBarHeight: 28
|
||||
readonly property int headerHeight: 50
|
||||
readonly property int footerHeight: 24
|
||||
readonly property int emptyStateHeight: 40
|
||||
@@ -95,8 +94,7 @@ PanelWindow {
|
||||
// Sized appropriately for a 2560x1440 screen
|
||||
width: 800
|
||||
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
|
||||
+ footerHeight
|
||||
+ Theme.geometry.padding * 2)
|
||||
@@ -104,7 +102,7 @@ PanelWindow {
|
||||
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 } }
|
||||
Behavior on opacity { NumberAnimation { duration: Theme.animation.durationFast } }
|
||||
Behavior on height { NumberAnimation { duration: Theme.animation.durationFast; easing.type: Easing.OutCubic } }
|
||||
|
||||
@@ -120,49 +118,11 @@ PanelWindow {
|
||||
anchors.margins: Theme.geometry.padding
|
||||
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 {
|
||||
id: searchInput
|
||||
width: parent.width
|
||||
height: paletteWindow.headerHeight
|
||||
placeholder: "Search apps..."
|
||||
prefix: "❯"
|
||||
|
||||
onVisibleChanged: {
|
||||
if (visible) focusInput();
|
||||
@@ -295,7 +255,6 @@ PanelWindow {
|
||||
model: ListModel { id: appModel }
|
||||
|
||||
delegate: ListRow {
|
||||
id: appRow
|
||||
width: appList.width
|
||||
selected: ListView.isCurrentItem
|
||||
accent: model.isLastUsed ? Theme.colors.secondary : Theme.colors.primary
|
||||
@@ -318,6 +277,7 @@ PanelWindow {
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: Theme.colors.primary
|
||||
radius: 12
|
||||
visible: parent.status === Image.Error || parent.status === Image.Null || model.iconName === ""
|
||||
|
||||
Text {
|
||||
@@ -332,7 +292,7 @@ PanelWindow {
|
||||
|
||||
Text {
|
||||
text: model.appName
|
||||
color: appRow.selected ? Theme.colors.textOnAccent : Theme.colors.text
|
||||
color: Theme.colors.text
|
||||
font.family: Theme.font.family
|
||||
font.pixelSize: Theme.type.label
|
||||
anchors.left: appIcon.right
|
||||
@@ -344,42 +304,14 @@ PanelWindow {
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
HintBar {
|
||||
width: parent.width
|
||||
height: paletteWindow.footerHeight
|
||||
|
||||
HintBar {
|
||||
anchors.left: parent.left
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
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
|
||||
}
|
||||
}
|
||||
hints: [
|
||||
{ key: "↑↓", label: "Navigate" },
|
||||
{ key: "↵", label: "Launch" },
|
||||
{ key: "Esc", label: "Close" }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Wayland
|
||||
import Quickshell.Io
|
||||
import Quickshell.Services.Pam
|
||||
import Quickshell.Services.UPower
|
||||
import "../Shared"
|
||||
@@ -93,68 +92,6 @@ WlSessionLock {
|
||||
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 {
|
||||
anchors.centerIn: parent
|
||||
spacing: Theme.geometry.spacing * 3
|
||||
@@ -245,8 +182,6 @@ WlSessionLock {
|
||||
id: passwordField
|
||||
width: parent.width
|
||||
placeholder: "Password"
|
||||
prefix: "❯"
|
||||
passwordCharacter: "■"
|
||||
echoMode: sessionLock.responseVisible ? TextInput.Normal : TextInput.Password
|
||||
|
||||
onVisibleChanged: { if (visible) focusInput(); }
|
||||
@@ -256,10 +191,6 @@ WlSessionLock {
|
||||
authCtx.respond(sessionLock.password);
|
||||
sessionLock.awaitingResponse = false;
|
||||
}
|
||||
onEscapePressed: {
|
||||
passwordField.text = "";
|
||||
sessionLock.errorText = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -274,10 +205,7 @@ WlSessionLock {
|
||||
|
||||
HintBar {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
hints: [
|
||||
{ key: "↵", label: "Unlock" },
|
||||
{ key: "Esc", label: "Clear" }
|
||||
]
|
||||
hints: [ { key: "↵", label: "Unlock" } ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,15 +8,12 @@ PanelWindow {
|
||||
id: logoutWindow
|
||||
property QtObject rootState
|
||||
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: [
|
||||
{ cmd: "loginctl lock-session", key: "L", label: "Lock", sub: "loginctl lock-session", destructive: false },
|
||||
{ cmd: "loginctl terminate-user $USER", key: "E", label: "Logout", sub: "loginctl terminate-user", destructive: false },
|
||||
{ cmd: "systemctl suspend", key: "U", label: "Suspend", sub: "systemctl suspend", destructive: false },
|
||||
{ cmd: "systemctl reboot", key: "R", label: "Reboot", sub: "systemctl reboot", destructive: true },
|
||||
{ cmd: "systemctl poweroff", key: "S", label: "Shutdown", sub: "systemctl poweroff", destructive: true }
|
||||
{ cmd: "loginctl lock-session" },
|
||||
{ cmd: "systemctl suspend" },
|
||||
{ cmd: "loginctl terminate-user $USER" },
|
||||
{ cmd: "systemctl reboot" },
|
||||
{ cmd: "systemctl poweroff" }
|
||||
]
|
||||
|
||||
visible: rootState.logoutMenuOpen
|
||||
@@ -42,7 +39,7 @@ PanelWindow {
|
||||
|
||||
Rectangle {
|
||||
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 } }
|
||||
opacity: rootState.logoutMenuOpen ? 1 : 0
|
||||
@@ -52,91 +49,64 @@ PanelWindow {
|
||||
onClicked: rootState.logoutMenuOpen = false
|
||||
}
|
||||
|
||||
Surface {
|
||||
Item {
|
||||
id: container
|
||||
width: modalColumn.width + Theme.geometry.padding * 2
|
||||
height: modalColumn.height + Theme.geometry.padding * 2
|
||||
anchors.centerIn: parent
|
||||
tint: Theme.colors.primary
|
||||
glow: true
|
||||
width: buttonRow.width
|
||||
height: buttonRow.height
|
||||
anchors.centerIn: parent
|
||||
|
||||
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 {
|
||||
anchors.fill: parent
|
||||
Row {
|
||||
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 {
|
||||
id: modalColumn
|
||||
anchors.centerIn: parent
|
||||
spacing: Theme.geometry.spacing
|
||||
|
||||
// Title strip
|
||||
Item {
|
||||
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" }
|
||||
]
|
||||
}
|
||||
// Suspend
|
||||
LogoutButton {
|
||||
icon: ""
|
||||
label: "Suspend"
|
||||
isSelected: logoutWindow.currentIndex === 1
|
||||
onClicked: executeAction(logoutWindow.actions[1].cmd)
|
||||
onHovered: logoutWindow.currentIndex = 1
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -146,41 +116,28 @@ PanelWindow {
|
||||
focus: true
|
||||
|
||||
Keys.onEscapePressed: (event) => {
|
||||
if (logoutWindow.armedIndex >= 0) {
|
||||
logoutWindow.armedIndex = -1;
|
||||
} else {
|
||||
rootState.logoutMenuOpen = false;
|
||||
}
|
||||
rootState.logoutMenuOpen = false;
|
||||
event.accepted = true;
|
||||
}
|
||||
|
||||
Keys.onLeftPressed: (event) => {
|
||||
if (logoutWindow.currentIndex > 0) logoutWindow.currentIndex--;
|
||||
logoutWindow.armedIndex = -1;
|
||||
if (logoutWindow.currentIndex > 0) {
|
||||
logoutWindow.currentIndex--;
|
||||
}
|
||||
event.accepted = true;
|
||||
}
|
||||
|
||||
Keys.onRightPressed: (event) => {
|
||||
if (logoutWindow.currentIndex < logoutWindow.actions.length - 1) logoutWindow.currentIndex++;
|
||||
logoutWindow.armedIndex = -1;
|
||||
if (logoutWindow.currentIndex < 4) {
|
||||
logoutWindow.currentIndex++;
|
||||
}
|
||||
event.accepted = true;
|
||||
}
|
||||
|
||||
Keys.onReturnPressed: (event) => {
|
||||
logoutWindow.select(logoutWindow.currentIndex);
|
||||
executeAction(logoutWindow.actions[logoutWindow.currentIndex].cmd);
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Process {
|
||||
@@ -188,19 +145,9 @@ PanelWindow {
|
||||
running: false
|
||||
}
|
||||
|
||||
// Non-destructive actions execute immediately. Destructive ones
|
||||
// (Reboot/Shutdown) arm on first selection and only execute once armed
|
||||
// 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];
|
||||
function executeAction(cmd) {
|
||||
actionProcess.command = ["bash", "-c", cmd];
|
||||
actionProcess.running = true;
|
||||
logoutWindow.armedIndex = -1;
|
||||
rootState.logoutMenuOpen = false;
|
||||
}
|
||||
|
||||
@@ -208,89 +155,50 @@ PanelWindow {
|
||||
if (visible) {
|
||||
container.scale = 1.0;
|
||||
logoutWindow.currentIndex = 2; // Reset to center
|
||||
logoutWindow.armedIndex = -1;
|
||||
} else {
|
||||
container.scale = 0.95;
|
||||
}
|
||||
}
|
||||
|
||||
// Inline component for the big power-action tiles.
|
||||
// Inline component for the big buttons
|
||||
component LogoutButton: Surface {
|
||||
id: button
|
||||
property var action
|
||||
property int index: 0
|
||||
property string icon: ""
|
||||
property string label: ""
|
||||
property bool isDestructive: false
|
||||
property bool isSelected: false
|
||||
property bool isArmed: false
|
||||
signal clicked()
|
||||
signal hovered()
|
||||
|
||||
readonly property color actionColor: isArmed ? Theme.colors.alert
|
||||
: action.destructive ? Theme.colors.alert
|
||||
: Theme.colors.primary
|
||||
width: 120
|
||||
height: 120
|
||||
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
|
||||
height: 128
|
||||
color: isSelected ? Theme.colors.surfaceHover : Theme.colors.surface
|
||||
tint: isSelected || isArmed ? actionColor : Theme.colors.border
|
||||
glow: isSelected || isArmed
|
||||
pressed: hoverArea.pressed
|
||||
Behavior on scale { SpringAnimation { spring: Theme.motion.springSnappy.spring; damping: Theme.motion.springSnappy.damping } }
|
||||
scale: isSelected ? 1.05 : 1.0
|
||||
|
||||
Column {
|
||||
anchors.centerIn: parent
|
||||
spacing: Theme.geometry.spacing / 2
|
||||
spacing: Theme.geometry.spacing
|
||||
|
||||
Row {
|
||||
Text {
|
||||
text: parent.parent.icon
|
||||
font.family: Theme.font.family
|
||||
font.pixelSize: 36
|
||||
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
|
||||
}
|
||||
color: parent.parent.isSelected ? parent.parent.tint : Theme.colors.text
|
||||
}
|
||||
|
||||
Text {
|
||||
text: button.action.label
|
||||
font.family: Theme.font.headlineFamily
|
||||
text: parent.parent.label
|
||||
font.family: Theme.font.family
|
||||
font.pixelSize: 16
|
||||
font.bold: true
|
||||
font.capitalization: Font.AllUppercase
|
||||
color: Theme.colors.text
|
||||
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 {
|
||||
@@ -298,8 +206,8 @@ PanelWindow {
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onEntered: button.hovered()
|
||||
onClicked: button.clicked()
|
||||
onEntered: parent.hovered()
|
||||
onClicked: parent.clicked()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@ import "../Shared"
|
||||
|
||||
PanelWindow {
|
||||
id: notifWindow
|
||||
property QtObject rootState
|
||||
|
||||
anchors {
|
||||
top: true
|
||||
@@ -36,12 +35,6 @@ PanelWindow {
|
||||
|
||||
onNotification: notification => {
|
||||
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, {
|
||||
notifObj: notification,
|
||||
appName: notification.appName,
|
||||
@@ -108,88 +101,76 @@ PanelWindow {
|
||||
Repeater {
|
||||
model: toastModel
|
||||
|
||||
delegate: Surface {
|
||||
delegate: Rectangle {
|
||||
id: toast
|
||||
width: list.width
|
||||
height: 20 + content.implicitHeight
|
||||
color: Theme.colors.surface
|
||||
tint: notifWindow.colorFor(model.urgency)
|
||||
glow: model.urgency === NotificationUrgency.Critical
|
||||
height: content.implicitHeight + Theme.geometry.padding * 2
|
||||
radius: Theme.geometry.radiusMedium
|
||||
color: Qt.alpha(notifWindow.colorFor(model.urgency), 0.15)
|
||||
border.color: Qt.alpha(notifWindow.colorFor(model.urgency), 0.3)
|
||||
border.width: 1
|
||||
|
||||
Behavior on opacity { NumberAnimation { duration: Theme.animation.durationNormal } }
|
||||
|
||||
Column {
|
||||
anchors.fill: parent
|
||||
Row {
|
||||
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 {
|
||||
width: parent.width
|
||||
height: 20
|
||||
width: 16
|
||||
height: 16
|
||||
radius: 8
|
||||
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 {
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: Theme.geometry.spacing
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
text: notifWindow.labelFor(model.urgency).toUpperCase() + " :: " + model.appName
|
||||
text: model.summary && model.summary.length > 0 ? model.summary : model.appName
|
||||
font.family: Theme.font.family
|
||||
font.pixelSize: 12
|
||||
font.bold: true
|
||||
font.pixelSize: Theme.type.caption
|
||||
color: Theme.colors.textOnAccent
|
||||
color: notifWindow.colorFor(model.urgency)
|
||||
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 {
|
||||
id: content
|
||||
width: parent.width
|
||||
leftPadding: Theme.geometry.padding
|
||||
rightPadding: Theme.geometry.padding
|
||||
topPadding: Theme.geometry.spacing
|
||||
bottomPadding: Theme.geometry.spacing
|
||||
spacing: Theme.geometry.spacing
|
||||
Text {
|
||||
id: closeIcon
|
||||
text: ""
|
||||
color: Theme.colors.textMuted
|
||||
font.family: Theme.font.family
|
||||
font.pixelSize: 12
|
||||
anchors.top: parent.top
|
||||
|
||||
Column {
|
||||
width: content.width - content.leftPadding - content.rightPadding - closeIcon.width - Theme.geometry.spacing
|
||||
spacing: 2
|
||||
|
||||
Text {
|
||||
text: model.summary && model.summary.length > 0 ? model.summary : model.appName
|
||||
font.family: Theme.font.family
|
||||
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);
|
||||
}
|
||||
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 {
|
||||
NumberAnimation {
|
||||
duration: Theme.animation.durationFast
|
||||
easing.type: Easing.OutCubic
|
||||
duration: Theme.animation.durationNormal
|
||||
easing.type: Easing.OutBack
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,6 +80,7 @@ PanelWindow {
|
||||
width: 300
|
||||
height: 60
|
||||
anchors.centerIn: parent
|
||||
radius: Theme.geometry.pillRadius
|
||||
tint: osdWindow.levelColor
|
||||
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.Effects
|
||||
import "."
|
||||
|
||||
Surface {
|
||||
Rectangle {
|
||||
id: button
|
||||
|
||||
// "primary" | "secondary" | "accent" | "destructive" | "success" | "warning" | "info"
|
||||
@@ -12,7 +13,7 @@ Surface {
|
||||
// primary and accent are the same color (Theme.colors.primary === .accent);
|
||||
// kept as separate variant names for call-site clarity.
|
||||
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 === "success" ? Theme.colors.success
|
||||
: variant === "warning" ? Theme.colors.warning
|
||||
@@ -21,27 +22,35 @@ Surface {
|
||||
|
||||
implicitWidth: label.implicitWidth + Theme.geometry.padding * 2
|
||||
implicitHeight: label.implicitHeight + Theme.geometry.padding
|
||||
width: implicitWidth
|
||||
height: implicitHeight
|
||||
|
||||
radius: Theme.geometry.radiusSmall
|
||||
color: filled
|
||||
? (mouseArea.containsMouse ? Qt.lighter(variantColor, 1.15) : variantColor)
|
||||
: (mouseArea.containsMouse ? Theme.colors.surfaceHover : Theme.colors.surface)
|
||||
tint: variantColor
|
||||
glow: !filled && mouseArea.containsMouse
|
||||
pressed: mouseArea.pressed
|
||||
? (mouseArea.pressed ? Qt.darker(tint, 1.1) : tint)
|
||||
: (mouseArea.containsMouse ? Qt.alpha(tint, 0.22) : Qt.alpha(tint, 0.15))
|
||||
border.width: filled ? 0 : 1
|
||||
border.color: Qt.alpha(tint, 0.3)
|
||||
|
||||
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 scale { SpringAnimation { spring: Theme.motion.springSnappy.spring; damping: Theme.motion.springSnappy.damping } }
|
||||
scale: mouseArea.pressed ? 0.97 : 1.0
|
||||
|
||||
Text {
|
||||
id: label
|
||||
anchors.centerIn: parent
|
||||
text: button.text
|
||||
font.family: Theme.font.headlineFamily
|
||||
font.pixelSize: 14
|
||||
font.family: Theme.font.family
|
||||
font.pixelSize: 13
|
||||
font.bold: true
|
||||
font.capitalization: Font.AllUppercase
|
||||
color: button.filled ? Theme.colors.textOnAccent : button.variantColor
|
||||
color: button.filled ? Theme.colors.background : button.tint
|
||||
}
|
||||
|
||||
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
|
||||
color: Theme.colors.background
|
||||
border.color: Theme.colors.border
|
||||
border.width: Theme.geometry.borderWidth
|
||||
border.width: 1
|
||||
height: column.implicitHeight + Theme.geometry.spacing
|
||||
|
||||
function openAt(px, py) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import QtQuick
|
||||
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"] ].
|
||||
Row {
|
||||
id: hintBar
|
||||
@@ -16,16 +16,12 @@ Row {
|
||||
delegate: Row {
|
||||
spacing: Theme.geometry.spacing / 2
|
||||
|
||||
Pill {
|
||||
tint: Theme.colors.outlineVariant
|
||||
|
||||
Text {
|
||||
text: "[" + modelData.key + "]"
|
||||
color: Theme.colors.text
|
||||
font.family: Theme.font.family
|
||||
font.bold: true
|
||||
font.pixelSize: Theme.type.caption
|
||||
}
|
||||
Text {
|
||||
text: modelData.key
|
||||
color: Theme.colors.textMuted
|
||||
font.family: Theme.font.family
|
||||
font.bold: true
|
||||
font.pixelSize: Theme.type.caption
|
||||
}
|
||||
|
||||
Text {
|
||||
@@ -33,7 +29,6 @@ Row {
|
||||
color: Theme.colors.textMuted
|
||||
font.family: Theme.font.family
|
||||
font.pixelSize: Theme.type.caption
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import QtQuick
|
||||
import "."
|
||||
|
||||
// Selectable list row: solid accent fill + crust text when selected (not a
|
||||
// soft tint), shared by CommandPalette and ClipboardManager so both
|
||||
// Selectable list row: a colored left accent bar plus a tinted background
|
||||
// when current, shared by CommandPalette and ClipboardManager so both
|
||||
// launchers read as the same design language.
|
||||
Rectangle {
|
||||
id: row
|
||||
@@ -16,20 +16,25 @@ Rectangle {
|
||||
signal entered()
|
||||
|
||||
height: 40
|
||||
color: selected ? accent : (hovered ? Theme.colors.surfaceHover : "transparent")
|
||||
border.width: selected ? Theme.geometry.borderWidth : 0
|
||||
border.color: Theme.colors.crust
|
||||
radius: Theme.geometry.radiusTiny
|
||||
color: selected ? Qt.alpha(accent, 0.16) : "transparent"
|
||||
|
||||
Behavior on color { ColorAnimation { duration: Theme.animation.durationFast } }
|
||||
|
||||
Rectangle {
|
||||
width: 4
|
||||
height: parent.height
|
||||
width: 3
|
||||
height: parent.height - 10
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.left: parent.left
|
||||
color: Theme.colors.crust
|
||||
visible: row.selected
|
||||
radius: 2
|
||||
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 {
|
||||
id: rowMouse
|
||||
anchors.fill: parent
|
||||
@@ -42,9 +47,7 @@ Rectangle {
|
||||
Item {
|
||||
id: contentItem
|
||||
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
|
||||
|
||||
Behavior on anchors.leftMargin { NumberAnimation { duration: Theme.animation.durationFast; easing.type: Easing.Linear } }
|
||||
}
|
||||
}
|
||||
@@ -1,46 +1,54 @@
|
||||
import QtQuick
|
||||
import QtQuick.Effects
|
||||
import "."
|
||||
|
||||
// Status chip / telemetry badge: sharp corners, 2px border, a tight 2px
|
||||
// offset shadow (deliberately smaller than Surface's, per DESIGN.md's
|
||||
// "Status Chips & Telemetry Badges" spec). Children are centered in an
|
||||
// internal Row - place them directly as this component's children, same as
|
||||
// putting them in a Row.
|
||||
Item {
|
||||
// Bar-style pill chrome: rounded surface, border, optional colored glow.
|
||||
// Children are centered in an internal Row - place them directly as this
|
||||
// component's children, same as putting them in a Row.
|
||||
Rectangle {
|
||||
id: pill
|
||||
|
||||
property color tint: Theme.colors.outlineVariant
|
||||
property color tint: Theme.colors.border
|
||||
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
|
||||
|
||||
readonly property color edgeColor: glow ? tint : Theme.colors.crust
|
||||
readonly property int offset: 2
|
||||
|
||||
implicitWidth: contentRow.implicitWidth + Theme.geometry.padding * 2 + offset
|
||||
implicitHeight: contentRow.implicitHeight + Theme.geometry.spacing + offset
|
||||
height: implicitHeight
|
||||
|
||||
Rectangle {
|
||||
x: pill.offset
|
||||
y: pill.offset
|
||||
width: pill.width - pill.offset
|
||||
height: pill.height - pill.offset
|
||||
color: pill.edgeColor
|
||||
function blend(base, mix, amount) {
|
||||
return Qt.rgba(
|
||||
base.r + (mix.r - base.r) * amount,
|
||||
base.g + (mix.g - base.g) * amount,
|
||||
base.b + (mix.b - base.b) * amount,
|
||||
base.a
|
||||
);
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
width: pill.width - pill.offset
|
||||
height: pill.height - pill.offset
|
||||
color: Theme.colors.surface
|
||||
border.width: Theme.geometry.borderWidth
|
||||
border.color: pill.edgeColor
|
||||
implicitWidth: contentRow.implicitWidth + Theme.geometry.padding * 2
|
||||
implicitHeight: contentRow.implicitHeight + Theme.geometry.padding
|
||||
height: implicitHeight
|
||||
radius: Theme.geometry.pillRadius
|
||||
color: blend(Theme.colors.surface, tint, tintStrength)
|
||||
border.color: tint
|
||||
border.width: 1
|
||||
|
||||
Behavior on border.color { ColorAnimation { duration: Theme.animation.durationFast } }
|
||||
Behavior on color { ColorAnimation { duration: Theme.animation.durationNormal } }
|
||||
|
||||
Row {
|
||||
id: contentRow
|
||||
anchors.centerIn: parent
|
||||
spacing: Theme.geometry.spacing
|
||||
}
|
||||
Behavior on border.color { ColorAnimation { duration: Theme.animation.durationFast } }
|
||||
|
||||
layer.enabled: glow
|
||||
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 "."
|
||||
|
||||
// Sharp-cornered track+fill for OSD volume/brightness and similar level
|
||||
// readouts, and the base for slider-style controls in Quick Settings.
|
||||
// Colored fill bar for OSD volume/brightness and similar level readouts.
|
||||
Item {
|
||||
id: bar
|
||||
|
||||
property real value: 0 // 0..1
|
||||
property color fillColor: Theme.colors.primary
|
||||
|
||||
height: 10
|
||||
height: 8
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: Theme.colors.surfaceHover
|
||||
border.width: Theme.geometry.borderWidth
|
||||
border.color: Theme.colors.crust
|
||||
radius: height / 2
|
||||
clip: true
|
||||
|
||||
Rectangle {
|
||||
width: Math.max(0, parent.width * Math.max(0, Math.min(1, bar.value)) - parent.border.width * 2)
|
||||
height: parent.height - parent.border.width * 2
|
||||
x: parent.border.width
|
||||
y: parent.border.width
|
||||
width: parent.width * Math.max(0, Math.min(1, bar.value))
|
||||
height: parent.height
|
||||
radius: parent.radius
|
||||
color: bar.fillColor
|
||||
|
||||
Behavior on width { NumberAnimation { duration: Theme.animation.durationFast } }
|
||||
|
||||
@@ -1,47 +1,26 @@
|
||||
import QtQuick
|
||||
import QtQuick.Effects
|
||||
import "."
|
||||
|
||||
// Base panel/card chrome shared by menus, pickers, and dialogs: sharp
|
||||
// corners, a solid 2px border, and a hard offset "shadow" - a flat duplicate
|
||||
// rectangle displaced down-right, never blurred. `glow` switches the border
|
||||
// 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 {
|
||||
// Base panel/card chrome shared by menus, pickers, and dialogs: rounded
|
||||
// background, border, optional colored glow.
|
||||
Rectangle {
|
||||
id: surface
|
||||
|
||||
default property alias content: face.data
|
||||
property alias color: face.color
|
||||
property color tint: Theme.colors.primary
|
||||
property color tint: Theme.colors.border
|
||||
property bool glow: false
|
||||
property bool pressed: false
|
||||
|
||||
readonly property int offset: glow ? Theme.elevation.high : Theme.elevation.low
|
||||
readonly property color edgeColor: glow ? tint : Theme.colors.crust
|
||||
radius: Theme.geometry.radiusMedium
|
||||
color: Theme.colors.background
|
||||
border.color: tint
|
||||
border.width: 1
|
||||
|
||||
Rectangle {
|
||||
id: shadow
|
||||
x: surface.offset
|
||||
y: surface.offset
|
||||
width: surface.width
|
||||
height: surface.height
|
||||
color: surface.edgeColor
|
||||
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 } }
|
||||
layer.enabled: glow
|
||||
layer.effect: MultiEffect {
|
||||
shadowEnabled: true
|
||||
shadowColor: surface.tint
|
||||
shadowOpacity: Theme.elevation.medium.opacity
|
||||
shadowBlur: Theme.elevation.medium.blur
|
||||
shadowVerticalOffset: 2
|
||||
}
|
||||
}
|
||||
@@ -1,18 +1,17 @@
|
||||
import QtQuick
|
||||
import QtQuick.Effects
|
||||
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
|
||||
// (rather than exposing the inner TextInput's Keys handlers directly) so
|
||||
// each caller can wire up its own list navigation.
|
||||
Item {
|
||||
Rectangle {
|
||||
id: field
|
||||
|
||||
property alias text: input.text
|
||||
property alias echoMode: input.echoMode
|
||||
property alias passwordCharacter: input.passwordCharacter
|
||||
property string placeholder: ""
|
||||
property string prefix: ""
|
||||
|
||||
signal escapePressed()
|
||||
signal upPressed()
|
||||
@@ -22,12 +21,6 @@ Item {
|
||||
|
||||
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
|
||||
// compositor asynchronously after it's first mapped, so a single
|
||||
// forceActiveFocus() call right on visible-toggle can silently lose
|
||||
@@ -41,70 +34,51 @@ Item {
|
||||
onTriggered: input.forceActiveFocus()
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
x: field.offset
|
||||
y: field.offset
|
||||
width: field.width
|
||||
height: field.height
|
||||
color: field.edgeColor
|
||||
height: 50
|
||||
color: Theme.colors.surface
|
||||
radius: Theme.geometry.radiusSmall
|
||||
border.width: 1
|
||||
border.color: input.activeFocus ? Theme.colors.primary : Theme.colors.border
|
||||
|
||||
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 {
|
||||
width: field.width
|
||||
height: field.height
|
||||
color: Theme.colors.surface
|
||||
border.width: Theme.geometry.borderWidth
|
||||
border.color: field.edgeColor
|
||||
|
||||
Behavior on border.color { ColorAnimation { duration: Theme.animation.durationFast } }
|
||||
TextInput {
|
||||
id: input
|
||||
anchors.fill: parent
|
||||
anchors.margins: Theme.geometry.padding
|
||||
verticalAlignment: TextInput.AlignVCenter
|
||||
font.family: Theme.font.family
|
||||
font.pixelSize: 18
|
||||
color: Theme.colors.text
|
||||
clip: true
|
||||
|
||||
Text {
|
||||
id: prefixText
|
||||
text: field.prefix
|
||||
visible: field.prefix.length > 0
|
||||
color: Theme.colors.secondary
|
||||
text: field.placeholder
|
||||
color: Theme.colors.textMuted
|
||||
font.family: Theme.font.family
|
||||
font.bold: true
|
||||
font.pixelSize: 18
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: Theme.geometry.padding
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
visible: input.text.length === 0
|
||||
}
|
||||
|
||||
TextInput {
|
||||
id: input
|
||||
anchors.fill: parent
|
||||
anchors.margins: Theme.geometry.padding
|
||||
anchors.leftMargin: field.prefix.length > 0 ? prefixText.width + Theme.geometry.padding + Theme.geometry.spacing / 2 : Theme.geometry.padding
|
||||
verticalAlignment: TextInput.AlignVCenter
|
||||
font.family: Theme.font.family
|
||||
font.pixelSize: 18
|
||||
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;
|
||||
}
|
||||
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
|
||||
|
||||
// Regenerated by wallpaper-theme.nu on every wallpaper change - don't
|
||||
// hand-edit between these markers, it gets overwritten. Colors are
|
||||
// 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).
|
||||
// hand-edit between these markers, it gets overwritten.
|
||||
// GENERATED:COLORS:BEGIN
|
||||
property QtObject colors: QtObject {
|
||||
property color background: "#1e1e2e"
|
||||
property color surface: "#181825"
|
||||
property color surfaceHover: "#313244"
|
||||
property color overlay: "#cc11111b"
|
||||
property color background: "#e611111b"
|
||||
property color surface: "#cc181825"
|
||||
property color surfaceHover: "#f2313244"
|
||||
property color overlay: "#6011111b"
|
||||
|
||||
property color crust: "#11111b"
|
||||
property color outlineVariant: "#45475a"
|
||||
|
||||
property color primary: "#eba0ac"
|
||||
property color primary: "#74c7ec"
|
||||
property color secondary: "#cba6f7"
|
||||
property color tertiary: "#f2cdcd"
|
||||
property color accent: "#eba0ac"
|
||||
property color tertiary: "#a6e3a1"
|
||||
property color accent: "#74c7ec"
|
||||
|
||||
property color primaryContainer: "#695363"
|
||||
property color secondaryContainer: "#5f557a"
|
||||
property color tertiaryContainer: "#6b616d"
|
||||
property color primaryContainer: "#2474c7ec"
|
||||
property color secondaryContainer: "#24cba6f7"
|
||||
property color tertiaryContainer: "#24a6e3a1"
|
||||
|
||||
property color alert: "#f38ba8"
|
||||
property color alertContainer: "#6b4d62"
|
||||
property color alertContainer: "#24f38ba8"
|
||||
property color success: "#a6e3a1"
|
||||
property color successContainer: "#546760"
|
||||
property color successContainer: "#24a6e3a1"
|
||||
property color warning: "#f9e2af"
|
||||
property color warningContainer: "#6d6764"
|
||||
property color warningContainer: "#24f9e2af"
|
||||
property color info: "#74c7ec"
|
||||
property color infoContainer: "#455f76"
|
||||
property color infoContainer: "#2474c7ec"
|
||||
|
||||
property color text: "#cdd6f4"
|
||||
property color textMuted: "#a6adc8"
|
||||
property color textOnAccent: "#11111b"
|
||||
property color textOnAccent: "#e611111b"
|
||||
|
||||
property color border: "#11111b"
|
||||
property color border: "#1a74c7ec"
|
||||
}
|
||||
// GENERATED:COLORS:END
|
||||
|
||||
property QtObject geometry: QtObject {
|
||||
property int radiusTiny: 0
|
||||
property int radiusSmall: 0
|
||||
property int radiusMedium: 0
|
||||
property int pillRadius: 0
|
||||
property int radiusTiny: 6
|
||||
property int radiusSmall: 8
|
||||
property int radiusMedium: 10
|
||||
property int pillRadius: 100
|
||||
property int padding: 12
|
||||
property int spacing: 8
|
||||
property int borderWidth: 2
|
||||
}
|
||||
|
||||
property QtObject animation: QtObject {
|
||||
property int durationFast: 100
|
||||
property int durationNormal: 150
|
||||
property int durationSlow: 250
|
||||
property int durationFast: 150
|
||||
property int durationNormal: 250
|
||||
property int durationSlow: 400
|
||||
}
|
||||
|
||||
// Hard offset-shadow steps (px), replacing the old blur/glow elevation
|
||||
// system. No blur, ever - depth comes from a flat displaced duplicate
|
||||
// rectangle. `high` is used for the focused/active accent-colored
|
||||
// variant; `overlay` for big floating surfaces (launcher, modals).
|
||||
property QtObject elevation: QtObject {
|
||||
property int low: 4
|
||||
property int high: 6
|
||||
property int overlay: 8
|
||||
// Named spring presets, so call sites stop hand-rolling
|
||||
// `SpringAnimation { spring: 4; damping: 0.3 }` with slightly different
|
||||
// numbers each time.
|
||||
property QtObject motion: QtObject {
|
||||
property QtObject springSnappy: QtObject { property real spring: 4; property real damping: 0.3 }
|
||||
property QtObject springSoft: QtObject { property real spring: 3; property real damping: 0.2 }
|
||||
}
|
||||
|
||||
// Type scale. Family stays fixed - this is only about size/weight steps.
|
||||
@@ -86,8 +77,15 @@ QtObject {
|
||||
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 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
|
||||
color: Theme.colors.background
|
||||
border.color: Theme.colors.border
|
||||
border.width: Theme.geometry.borderWidth
|
||||
border.width: 1
|
||||
width: label.implicitWidth + Theme.geometry.padding * 2
|
||||
height: label.implicitHeight + Theme.geometry.padding
|
||||
|
||||
|
||||
@@ -9,5 +9,3 @@ Tooltip 1.0 Tooltip.qml
|
||||
Showcase 1.0 Showcase.qml
|
||||
ListRow 1.0 ListRow.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
|
||||
color: Theme.colors.surface
|
||||
tint: delegateRoot.isCurrent ? Theme.colors.primary : Theme.colors.border
|
||||
border.width: delegateRoot.isCurrent ? 2 : 1
|
||||
opacity: delegateRoot.isCurrent ? 1.0 : 0.5
|
||||
glow: delegateRoot.isCurrent
|
||||
clip: true
|
||||
|
||||
@@ -11,7 +11,6 @@ import "components/ClipboardManager"
|
||||
import "components/Notifications"
|
||||
import "components/WallpaperPicker"
|
||||
import "components/LockScreen"
|
||||
import "components/QuickSettings"
|
||||
|
||||
ShellRoot {
|
||||
id: root
|
||||
@@ -21,26 +20,15 @@ ShellRoot {
|
||||
property bool logoutMenuOpen: false
|
||||
property bool clipboardManagerOpen: 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 {
|
||||
target: "commandPalette"
|
||||
function toggle() {
|
||||
commandPaletteOpen = !commandPaletteOpen;
|
||||
if (commandPaletteOpen) closeOtherOverlays("commandPalette");
|
||||
if (commandPaletteOpen) {
|
||||
logoutMenuOpen = false;
|
||||
clipboardManagerOpen = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,7 +36,10 @@ ShellRoot {
|
||||
target: "logoutMenu"
|
||||
function toggle() {
|
||||
logoutMenuOpen = !logoutMenuOpen;
|
||||
if (logoutMenuOpen) closeOtherOverlays("logoutMenu");
|
||||
if (logoutMenuOpen) {
|
||||
commandPaletteOpen = false;
|
||||
clipboardManagerOpen = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,15 +47,10 @@ ShellRoot {
|
||||
target: "clipboardManager"
|
||||
function toggle() {
|
||||
clipboardManagerOpen = !clipboardManagerOpen;
|
||||
if (clipboardManagerOpen) closeOtherOverlays("clipboardManager");
|
||||
}
|
||||
}
|
||||
|
||||
IpcHandler {
|
||||
target: "quickSettings"
|
||||
function toggle() {
|
||||
quickSettingsOpen = !quickSettingsOpen;
|
||||
if (quickSettingsOpen) closeOtherOverlays("quickSettings");
|
||||
if (clipboardManagerOpen) {
|
||||
commandPaletteOpen = false;
|
||||
logoutMenuOpen = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,7 +68,11 @@ ShellRoot {
|
||||
target: "wallpaperSwitcher"
|
||||
function open() {
|
||||
wallpaperPickerOpen = !wallpaperPickerOpen;
|
||||
if (wallpaperPickerOpen) closeOtherOverlays("wallpaperPicker");
|
||||
if (wallpaperPickerOpen) {
|
||||
commandPaletteOpen = false;
|
||||
logoutMenuOpen = false;
|
||||
clipboardManagerOpen = false;
|
||||
}
|
||||
}
|
||||
function random() {
|
||||
randomWallpaperProcess.running = false;
|
||||
@@ -127,12 +117,6 @@ ShellRoot {
|
||||
|
||||
Notifications {
|
||||
id: notifications
|
||||
rootState: root
|
||||
}
|
||||
|
||||
QuickSettings {
|
||||
id: quickSettings
|
||||
rootState: root
|
||||
}
|
||||
|
||||
WallpaperPicker {
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
{
|
||||
"lastChangelogVersion": "0.86.0",
|
||||
"defaultProvider": "9Router",
|
||||
"defaultModel": "cc/claude-sonnet-5",
|
||||
"lastChangelogVersion": "0.84.0",
|
||||
"defaultProvider": "antigravity",
|
||||
"defaultModel": "gemini-3.1-pro",
|
||||
"extensions": [
|
||||
"../extensions"
|
||||
],
|
||||
"packages": [
|
||||
"npm:pi-antigravity",
|
||||
"npm:pi-catppuccin-tui",
|
||||
"npm:pi-lens",
|
||||
"npm:pi-web-access",
|
||||
@@ -17,8 +18,7 @@
|
||||
"npm:@juanibiapina/pi-powerbar",
|
||||
"npm:context-mode",
|
||||
"npm:@ff-labs/pi-fff",
|
||||
"npm:@juicesharp/rpiv-ask-user-question",
|
||||
"npm:@haoyiyin/9router"
|
||||
"npm:@juicesharp/rpiv-ask-user-question"
|
||||
],
|
||||
"theme": "catppuccin-tui-mocha",
|
||||
"hideThinkingBlock": true,
|
||||
|
||||
@@ -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-----
|
||||
@@ -0,0 +1,9 @@
|
||||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB4WFlzWHpnWENKZEpLNzdp
|
||||
WjRSR0dhYnp5L2J4eDFnSnZJWnFaRVdvQUM0CkVTU2hCMm1kRnBvUmZ6Y0U3bVo1
|
||||
OTU5ZGZwK3ArbEpFb2d1cjNJVUVuYncKLS0tIENpbVI4djBMMFhpUmhBYkt1ekVC
|
||||
UGdWTEo0Q285U2NxM205TEFYMStSTmMKvVINvvr4n12TRrN5374NwTvpIzuGqoM4
|
||||
C46tq02JGr1d3yvcGP3Zx2LNSrdCoJQwxt2SHZB4X6aq2a4e/E4vXxwiC4e8FRqQ
|
||||
bw1zrLREaV5iKUciD06VivAg0M/qvPpX3b2ftPcpNmmkp2fC5eS6pmwmm26ztz3y
|
||||
pdtjEBBCpIZWY8G20RHLkz1qtEoHv1dbEC3H
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
@@ -0,0 +1,6 @@
|
||||
let
|
||||
user = "age1shfm2jam52qrmp5gh3fshmejwj429yfqr0vp3spfwws9l0l0hqlqzzcrhq";
|
||||
in {
|
||||
"git_config.age".publicKeys = [ user ];
|
||||
"jj_config.age".publicKeys = [ user ];
|
||||
}
|
||||
Reference in new issue
Block a user