mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 11:14:08 +09:00
fcitx5 on labwc
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{ lib, pkgs, ... }:
|
||||
let
|
||||
systemctl = lib.getExe' pkgs.systemd "systemctl";
|
||||
|
||||
action = key: name: {
|
||||
"@key" = key;
|
||||
action = {
|
||||
@@ -15,29 +16,6 @@ let
|
||||
"@command" = command;
|
||||
};
|
||||
};
|
||||
|
||||
desktopKeybinds = lib.concatMap (
|
||||
desktop:
|
||||
let
|
||||
number = toString desktop;
|
||||
in
|
||||
[
|
||||
{
|
||||
"@key" = "W-${number}";
|
||||
action = {
|
||||
"@name" = "GoToDesktop";
|
||||
"@to" = number;
|
||||
};
|
||||
}
|
||||
{
|
||||
"@key" = "W-C-${number}";
|
||||
action = {
|
||||
"@name" = "SendToDesktop";
|
||||
"@to" = number;
|
||||
};
|
||||
}
|
||||
]
|
||||
) (lib.range 1 9);
|
||||
in
|
||||
{
|
||||
wayland.windowManager.labwc = {
|
||||
@@ -45,40 +23,18 @@ in
|
||||
# NixOS owns the package so Home Manager only generates the user config.
|
||||
package = null;
|
||||
|
||||
systemd = {
|
||||
enable = true;
|
||||
|
||||
variables = [
|
||||
"DISPLAY"
|
||||
"WAYLAND_DISPLAY"
|
||||
"XDG_CURRENT_DESKTOP"
|
||||
"XDG_SESSION_TYPE"
|
||||
];
|
||||
};
|
||||
|
||||
rc = {
|
||||
core = {
|
||||
decoration = "client";
|
||||
gap = 10;
|
||||
autoEnableOutputs = "yes";
|
||||
reuseOutputMode = "yes";
|
||||
};
|
||||
|
||||
theme = {
|
||||
name = "Dracula";
|
||||
cornerRadius = 8;
|
||||
dropShadows = "yes";
|
||||
dropShadowsOnTiled = "yes";
|
||||
};
|
||||
|
||||
windowSwitcher = {
|
||||
"@preview" = "yes";
|
||||
"@outlines" = "yes";
|
||||
osd = {
|
||||
"@style" = "thumbnail";
|
||||
};
|
||||
};
|
||||
|
||||
focus = {
|
||||
followMouse = "yes";
|
||||
followMouseRequiresMovement = "yes";
|
||||
raiseOnFocus = "no";
|
||||
};
|
||||
|
||||
desktops = {
|
||||
"@number" = 1;
|
||||
"@popupTime" = 500;
|
||||
"@prefix" = "Workspace";
|
||||
};
|
||||
|
||||
keyboard = {
|
||||
default = true;
|
||||
@@ -136,7 +92,6 @@ in
|
||||
(execute "W-comma" "noctalia msg settings-toggle")
|
||||
(action "W-S-e" "Exit")
|
||||
]
|
||||
++ desktopKeybinds
|
||||
++ [
|
||||
(execute "XF86AudioRaiseVolume" "noctalia msg volume-up")
|
||||
(execute "XF86AudioLowerVolume" "noctalia msg volume-down")
|
||||
@@ -147,6 +102,40 @@ in
|
||||
];
|
||||
};
|
||||
|
||||
core = {
|
||||
decoration = "client";
|
||||
gap = 10;
|
||||
autoEnableOutputs = "yes";
|
||||
reuseOutputMode = "yes";
|
||||
};
|
||||
|
||||
theme = {
|
||||
name = "Dracula";
|
||||
cornerRadius = 8;
|
||||
dropShadows = "yes";
|
||||
dropShadowsOnTiled = "yes";
|
||||
};
|
||||
|
||||
windowSwitcher = {
|
||||
"@preview" = "yes";
|
||||
"@outlines" = "yes";
|
||||
osd = {
|
||||
"@style" = "thumbnail";
|
||||
};
|
||||
};
|
||||
|
||||
focus = {
|
||||
followMouse = "yes";
|
||||
followMouseRequiresMovement = "yes";
|
||||
raiseOnFocus = "no";
|
||||
};
|
||||
|
||||
desktops = {
|
||||
"@number" = 1;
|
||||
"@popupTime" = 500;
|
||||
"@prefix" = "Workspace";
|
||||
};
|
||||
|
||||
mouse.default = true;
|
||||
|
||||
libinput.device = [
|
||||
@@ -159,6 +148,7 @@ in
|
||||
clickMethod = "clickfinger";
|
||||
scrollMethod = "twoFinger";
|
||||
scrollFactor = "4.0";
|
||||
disableWhileTyping = "yes";
|
||||
}
|
||||
{
|
||||
"@category" = "non-touch";
|
||||
@@ -174,10 +164,6 @@ in
|
||||
];
|
||||
};
|
||||
|
||||
xdg.configFile."labwc/autostart".text = lib.mkAfter ''
|
||||
${systemctl} --user --no-block start labwc-session.target
|
||||
'';
|
||||
|
||||
xdg.configFile."labwc/shutdown".text = lib.mkAfter ''
|
||||
${systemctl} --user stop graphical-session.target
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user