diff --git a/dotfiles/.config/niri/config.kdl b/dotfiles/.config/niri/config.kdl index 9807c27..e8ea886 100644 --- a/dotfiles/.config/niri/config.kdl +++ b/dotfiles/.config/niri/config.kdl @@ -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 { diff --git a/home/wayland/linux-wifi-hotspot.nix b/home/wayland/linux-wifi-hotspot.nix deleted file mode 100644 index 5efc5fc..0000000 --- a/home/wayland/linux-wifi-hotspot.nix +++ /dev/null @@ -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 - ]; - } diff --git a/home/wayland/playerctl.nix b/home/wayland/lxqt-policykit.nix similarity index 68% rename from home/wayland/playerctl.nix rename to home/wayland/lxqt-policykit.nix index c8516af..b9b18aa 100644 --- a/home/wayland/playerctl.nix +++ b/home/wayland/lxqt-policykit.nix @@ -1,5 +1,5 @@ {pkgs, ...}: { home.packages = with pkgs; [ - playerctl + lxqt.lxqt-policykit ]; }