remove old niri stuff and use xwl satellite again

This commit is contained in:
twoneis 2025-03-15 01:37:56 +01:00
parent d99782af05
commit e8c92c9d3c
7 changed files with 7 additions and 76 deletions

View file

@ -6,7 +6,6 @@
}: let }: let
inherit (lib) mkIf mkForce; inherit (lib) mkIf mkForce;
inherit (config) conf; inherit (config) conf;
mkXwlWrapper = import ../niri/xwl-wrapper.nix;
time = pkgs.makeDesktopItem { time = pkgs.makeDesktopItem {
name = "peaclock-desktop"; name = "peaclock-desktop";
desktopName = "Time"; desktopName = "Time";
@ -94,16 +93,10 @@ in
fractal fractal
element-desktop element-desktop
papers papers
prusa-slicer
] ]
++ [ ++ [
time time
]
++ [
(mkXwlWrapper {
pkgs = pkgs;
name = "Prusa";
pkg = "prusa-slicer";
})
]; ];
file = { file = {

View file

@ -37,8 +37,8 @@ in
home-manager.users.${conf.username} = { home-manager.users.${conf.username} = {
home.packages = with pkgs; [ home.packages = with pkgs; [
swayidle
wl-clipboard wl-clipboard
xwayland-satellite
]; ];
services.swayosd = { services.swayosd = {

View file

@ -127,8 +127,13 @@ in {
hotkey-overlay.skip-at-startup = true; hotkey-overlay.skip-at-startup = true;
environment = {
DISPLAY = ":3";
};
spawn-at-startup = [ spawn-at-startup = [
{command = ["waybar"];} {command = ["waybar"];}
{command = ["xwayland-satellite" ":3"];}
]; ];
binds = { binds = {

View file

@ -1,47 +0,0 @@
{config, ...}: let
base = config.theme.base;
surface = config.theme.surface;
text = config.theme.text;
in {
style = ''
[General]
# Password mask character
passwordCharacter=*
# Mask password characters or not ("true" or "false")
passwordMask=true
# value "1" is all display width, "0.5" is a half of display width etc.
passwordInputWidth=0.5
# Background color of password input
passwordInputBackground=${surface}
# Radius of password input corners
passwordInputRadius=8
# "true" for visible cursor, "false"
passwordInputCursorVisible=false
# Font size of password (in points)
passwordFontSize=96
passwordCursorColor=${text}
passwordTextColor=
# Show or not sessions choose label
showSessionsByDefault=false
# Font size of sessions choose label (in points).
sessionsFontSize=24
# Show or not users choose label
showUsersByDefault=false
# Font size of users choose label (in points)
usersFontSize=48
# Path to background image
background=
# Or use just one color
backgroundFill=${base}
backgroundFillMode=aspect
# Default text color for all labels
basicTextColor=${text}
# Radius of background blur
blurRadius=
'';
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 MiB

View file

@ -1,20 +0,0 @@
{
pkgs,
name,
pkg ? name,
exe ? pkg,
...
}: let
inherit (pkgs.lib) concatStrings;
config = pkgs.writeTextFile {
name = concatStrings ["i3-config" name];
text = ''
exec ${pkgs.${pkg}}/bin/${exe}
'';
};
in
pkgs.makeDesktopItem {
name = name;
desktopName = name;
exec = "${pkgs.xwayland-run}/bin/xwayland-run -- ${pkgs.i3}/bin/i3 -c ${config}";
}