Compare commits

..
Author SHA1 Message Date
johannes 8a5808a432 feat: cleanup 2026-09-21 16:36:29 +02:00
johannes c0ad26a840 chore: bump versions 2026-09-21 16:18:56 +02:00
johannes d935c5c0a7 feat: add termius 2026-09-21 16:17:57 +02:00
johannes 38cc5a090c fix: git credentials 2026-09-21 16:16:44 +02:00
johannes a6ec6d7937 feat: add zotero 2026-09-21 16:16:35 +02:00
johannes 0ff727898a feat: complete quickshell redesign 2026-09-21 16:16:35 +02:00
johannes 1eb0820083 feat: add ponytail skills 2026-09-21 16:16:35 +02:00
johannes d94540c356 chore: remove dead config code 2026-09-21 16:16:35 +02:00
johannes 621cb65c2e feat: add npm global bin 2026-09-21 16:16:35 +02:00
johannes bf21727ad5 fix: quickshell bar spacing 2026-09-21 16:16:35 +02:00
johannes 73a8f642b8 feat: add mago php toolchain 2026-09-21 16:16:35 +02:00
johannes 1fc07d779d fix: keymap issue with aerospace 2026-09-21 16:16:35 +02:00
johannes 92aa996bae feat: add tldr 2026-09-21 16:16:35 +02:00
johannes b4e6450853 feat: add new skills 2026-09-21 16:16:35 +02:00
johannes 8735ea9fb3 feat: update bar 2026-09-21 16:16:35 +02:00
johannes c238eb1929 feat: wip sddm theme 2026-09-21 16:16:35 +02:00
johannes 0d00efc465 feat: add quickshell lock screen 2026-09-21 16:16:35 +02:00
johannesandClaude Sonnet 5 e818b1c1ea feat: colorful multi-accent quickshell design system
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A8TNMgnEa7Kia5Wcz2kyDx
2026-09-21 16:16:35 +02:00
johannes b8255db11a feat: add cpu + temp + ram to bar 2026-09-21 16:16:35 +02:00
johannesandClaude Sonnet 5 3a299fccaf feat: wallpaper-driven theming + native wallpaper picker
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013ZYoSQwwYWhJHLX6VBCGnF
2026-09-21 16:16:35 +02:00
johannes c1f4bdb80c feat: add store links for claude skills 2026-09-21 16:16:35 +02:00
johannes 6c53da0a5c feat: make right bar side dependant on devices 2026-09-21 16:16:24 +02:00
johannes 9787f52c14 fix: no apps in app launcher 2026-09-21 16:16:24 +02:00
johannes 3042bbeabb feat: add btop cuda support 2026-09-21 16:16:24 +02:00
johannes 5bac45cdf3 feat: add easyeffects for linux 2026-09-21 16:16:24 +02:00
johannes bc3a22d1c1 feat: add power menu & clipboard 2026-09-21 16:15:00 +02:00
johannes fda7ea8524 feat: cleanup 2026-09-21 16:15:00 +02:00
johannes 8aa254bb87 feat: update osd for volume 2026-09-21 16:15:00 +02:00
johannes cfe81c15f5 feat: redesign quickshell menus 2026-09-21 16:15:00 +02:00
johannes 4d1b53eb42 chore: cleanup 2026-09-19 18:50:03 +02:00
johannes f15d5bb6ac chore: bump versions 2026-09-17 19:35:19 +02:00
johannes be976926f8 feat: add devenv 2026-09-17 17:14:09 +02:00
39 changed files with 1582 additions and 573 deletions

No files matched your search

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