From 28cd462bc63965df2ce8d7beeae58fcf74db9f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Mon, 21 Jul 2025 14:49:39 +0200 Subject: [PATCH] sway: remove --- configs/i3.nix | 68 +++++--------------------------------------------- 1 file changed, 6 insertions(+), 62 deletions(-) diff --git a/configs/i3.nix b/configs/i3.nix index c04e40b..48ae7f1 100644 --- a/configs/i3.nix +++ b/configs/i3.nix @@ -98,8 +98,6 @@ in { }; }; - security.pam.services.swaylock = {}; - services.xserver = { monitorSection = ''Option "DPMS" "false"''; serverFlagsSection = '' @@ -115,6 +113,7 @@ in { ''; }; + home-manager.users.me = let modifier = "Mod4"; infoWorkspace = "ℹ"; @@ -271,51 +270,7 @@ in { # XF86Launch1 (thinkvantage) }; in { - programs.swaylock.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; - }; + stylix.targets.i3.enable = true; xsession.windowManager.i3 = { enable = true; @@ -332,19 +287,9 @@ in { assign [class="dashboard"] ${infoWorkspace} exec ${dashboard}/bin/dashboard ''; - config = lib.mkMerge [ - { - inherit modifier gaps modes bars floating window colors 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 { + config = { + inherit modifier gaps modes bars floating window colors; + keybindings = keybindings // { "${modifier}+ß" = "exec ${niveumPackages.menu-calc}/bin/="; "${modifier}+F6" = "exec ${pkgs.xorg.xkill}/bin/xkill"; "${modifier}+F9" = "exec ${pkgs.redshift}/bin/redshift -O 4000 -b 0.85"; @@ -355,8 +300,7 @@ in { # "${modifier}+x" = "exec ${new-workspace}"; "XF86Display" = "exec ${niveumPackages.dmenu-randr}/bin/dmenu-randr"; }; - } - ]; + }; }; }; }