mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
sway: remove
This commit is contained in:
@@ -98,8 +98,6 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
security.pam.services.swaylock = {};
|
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
monitorSection = ''Option "DPMS" "false"'';
|
monitorSection = ''Option "DPMS" "false"'';
|
||||||
serverFlagsSection = ''
|
serverFlagsSection = ''
|
||||||
@@ -115,6 +113,7 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
home-manager.users.me = let
|
home-manager.users.me = let
|
||||||
modifier = "Mod4";
|
modifier = "Mod4";
|
||||||
infoWorkspace = "ℹ";
|
infoWorkspace = "ℹ";
|
||||||
@@ -271,51 +270,7 @@ in {
|
|||||||
# XF86Launch1 (thinkvantage)
|
# XF86Launch1 (thinkvantage)
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
programs.swaylock.enable = true;
|
stylix.targets.i3.enable = true;
|
||||||
|
|
||||||
wayland.windowManager.sway = {
|
|
||||||
enable = true;
|
|
||||||
config = {
|
|
||||||
menu = "rofi -modi run,ssh,window -show run";
|
|
||||||
inherit modifier modes gaps bars floating window colors keybindings;
|
|
||||||
input = {
|
|
||||||
"*" = {
|
|
||||||
xkb_layout = "de";
|
|
||||||
xkb_variant = "T3";
|
|
||||||
};
|
|
||||||
"type:keyboard" = {
|
|
||||||
repeat_rate = "50";
|
|
||||||
};
|
|
||||||
"type:touchpad" = {
|
|
||||||
dwt = "enabled";
|
|
||||||
dwtp = "enabled";
|
|
||||||
tap = "enabled";
|
|
||||||
tap_button_map = "lrm";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
terminal = (defaultApplications pkgs).terminal;
|
|
||||||
up = "k";
|
|
||||||
down = "j";
|
|
||||||
left = "h";
|
|
||||||
right = "l";
|
|
||||||
seat = {
|
|
||||||
"*" = {
|
|
||||||
hide_cursor = "when-typing enable";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
startup = [
|
|
||||||
{command = "echo hello";}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.gammastep = {
|
|
||||||
enable = true;
|
|
||||||
provider = "geoclue2";
|
|
||||||
tray = true;
|
|
||||||
temperature.night = 1500;
|
|
||||||
temperature.day = 6500;
|
|
||||||
};
|
|
||||||
|
|
||||||
xsession.windowManager.i3 = {
|
xsession.windowManager.i3 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -332,19 +287,9 @@ in {
|
|||||||
assign [class="dashboard"] ${infoWorkspace}
|
assign [class="dashboard"] ${infoWorkspace}
|
||||||
exec ${dashboard}/bin/dashboard
|
exec ${dashboard}/bin/dashboard
|
||||||
'';
|
'';
|
||||||
config = lib.mkMerge [
|
config = {
|
||||||
{
|
inherit modifier gaps modes bars floating window colors;
|
||||||
inherit modifier gaps modes bars floating window colors keybindings;
|
keybindings = keybindings // {
|
||||||
}
|
|
||||||
{
|
|
||||||
keybindings = let
|
|
||||||
new-workspace = pkgs.writers.writeDash "new-workspace" ''
|
|
||||||
i3-msg workspace $(($(i3-msg -t get_workspaces | tr , '\n' | grep '"num":' | cut -d : -f 2 | sort -rn | head -1) + 1))
|
|
||||||
'';
|
|
||||||
move-to-new-workspace = pkgs.writers.writeDash "new-workspace" ''
|
|
||||||
i3-msg move container to workspace $(($(i3-msg -t get_workspaces | tr , '\n' | grep '"num":' | cut -d : -f 2 | sort -rn | head -1) + 1))
|
|
||||||
'';
|
|
||||||
in {
|
|
||||||
"${modifier}+ß" = "exec ${niveumPackages.menu-calc}/bin/=";
|
"${modifier}+ß" = "exec ${niveumPackages.menu-calc}/bin/=";
|
||||||
"${modifier}+F6" = "exec ${pkgs.xorg.xkill}/bin/xkill";
|
"${modifier}+F6" = "exec ${pkgs.xorg.xkill}/bin/xkill";
|
||||||
"${modifier}+F9" = "exec ${pkgs.redshift}/bin/redshift -O 4000 -b 0.85";
|
"${modifier}+F9" = "exec ${pkgs.redshift}/bin/redshift -O 4000 -b 0.85";
|
||||||
@@ -355,8 +300,7 @@ in {
|
|||||||
# "${modifier}+x" = "exec ${new-workspace}";
|
# "${modifier}+x" = "exec ${new-workspace}";
|
||||||
"XF86Display" = "exec ${niveumPackages.dmenu-randr}/bin/dmenu-randr";
|
"XF86Display" = "exec ${niveumPackages.dmenu-randr}/bin/dmenu-randr";
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user