fix:policykit

This commit is contained in:
dichgrem
2025-10-15 10:30:15 +08:00
parent 1bb02c06fa
commit 927065e1ba
3 changed files with 61 additions and 79 deletions

View File

@@ -1,46 +1,18 @@
animations {
// Uncomment to turn off all animations.
// You can also put "off" into each individual animation to disable it.
// off
input {
disable-power-key-handling
focus-follows-mouse
warp-mouse-to-focus
// Slow down all animations by this factor. Values below 1 speed them up instead.
// slowdown 3.0
// Individual animations.
workspace-switch {
spring damping-ratio=1.0 stiffness=1000 epsilon=0.0001
mouse {
accel-profile "flat"
scroll-factor 0.5
}
window-open {
duration-ms 150
curve "ease-out-expo"
}
window-close {
duration-ms 150
curve "ease-out-quad"
}
horizontal-view-movement {
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
}
window-movement {
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
}
window-resize {
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
}
config-notification-open-close {
spring damping-ratio=0.6 stiffness=1000 epsilon=0.001
}
screenshot-ui-open {
duration-ms 200
curve "ease-out-quad"
touchpad {
accel-profile "flat"
dwt
natural-scroll
scroll-factor 0.5
tap
}
}
@@ -219,32 +191,10 @@ hotkey-overlay {
skip-at-startup
}
input {
disable-power-key-handling
focus-follows-mouse
warp-mouse-to-focus
mouse {
accel-profile "flat"
scroll-factor 0.5
}
touchpad {
accel-profile "flat"
dwt
natural-scroll
scroll-factor 0.5
tap
}
}
prefer-no-csd
screenshot-path "~/Pictures/Screenshots/SCREENSHOT-%Y-%m-%d-%H:%M:%S.png"
spawn-at-startup "fcitx5" "-d" "-r"
spawn-at-startup "nm-applet"
spawn-at-startup "sh" "-c" "dbus-update-activation-environment --systemd --all && systemctl --user stop niri-session.target && systemctl --user start niri-session.target"
@@ -253,6 +203,7 @@ spawn-at-startup "swww-daemon"
spawn-at-startup "sh" "-c" "sleep 1 && swww img $HOME/Git/DCGOS/dotfiles/.local/share/wallpapers/yohoho.jpg"
spawn-at-startup "swww" "restore"
spawn-at-startup "waybar"
spawn-at-startup "lxqt-policykit-agent"
window-rule {
block-out-from "screen-capture"
@@ -268,6 +219,52 @@ window-rule {
geometry-corner-radius 10
}
animations {
// Uncomment to turn off all animations.
// You can also put "off" into each individual animation to disable it.
// off
// Slow down all animations by this factor. Values below 1 speed them up instead.
// slowdown 3.0
// Individual animations.
workspace-switch {
spring damping-ratio=1.0 stiffness=1000 epsilon=0.0001
}
window-open {
duration-ms 150
curve "ease-out-expo"
}
window-close {
duration-ms 150
curve "ease-out-quad"
}
horizontal-view-movement {
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
}
window-movement {
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
}
window-resize {
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
}
config-notification-open-close {
spring damping-ratio=0.6 stiffness=1000 epsilon=0.001
}
screenshot-ui-open {
duration-ms 200
curve "ease-out-quad"
}
}
layout {
center-focused-column "on-overflow"
border {

View File

@@ -1,15 +0,0 @@
{
hostname,
lib,
pkgs,
...
}: let
inherit (import ../../hosts/${hostname}/env.nix) HotSpot-Use-Case;
in
with lib;
mkIf HotSpot-Use-Case
{
home.packages = with pkgs; [
linux-wifi-hotspot
];
}

View File

@@ -1,5 +1,5 @@
{pkgs, ...}: {
home.packages = with pkgs; [
playerctl
lxqt.lxqt-policykit
];
}