diff options
| author | Rosa <rosaontheweb@proton.me> | 2026-03-17 16:21:33 -0400 |
|---|---|---|
| committer | Rosa <rosaontheweb@proton.me> | 2026-03-17 16:21:33 -0400 |
| commit | ce19b701046c064a1eb39098d8537b2c4964a86e (patch) | |
| tree | 8c42a1392d36132803a2ee4ecb4d2c9150f72296 /modules/user/desktop/window-managers | |
| parent | 8848e53815fe12ffa3998c0a4bbcf2178d6b00e8 (diff) | |
start rewrite
Diffstat (limited to 'modules/user/desktop/window-managers')
| -rw-r--r-- | modules/user/desktop/window-managers/default.nix | 5 | ||||
| -rw-r--r-- | modules/user/desktop/window-managers/sway.nix | 268 |
2 files changed, 0 insertions, 273 deletions
diff --git a/modules/user/desktop/window-managers/default.nix b/modules/user/desktop/window-managers/default.nix deleted file mode 100644 index 47a721a..0000000 --- a/modules/user/desktop/window-managers/default.nix +++ /dev/null @@ -1,5 +0,0 @@ -{ - imports = [ - ./sway.nix - ]; -} diff --git a/modules/user/desktop/window-managers/sway.nix b/modules/user/desktop/window-managers/sway.nix deleted file mode 100644 index c52b1cf..0000000 --- a/modules/user/desktop/window-managers/sway.nix +++ /dev/null @@ -1,268 +0,0 @@ -{ - config, - lib, - options, - pkgs, - ... -}: -{ - options.desktop.windowManager = lib.mkOption { type = with lib.types; nullOr (enum [ "sway" ]); }; - config = { - home.packages = with pkgs; [ - grim - slurp - ]; - - programs = { - fuzzel.enable = lib.mkDefault (config.desktop.windowManager == "sway"); - i3blocks = { - enable = lib.mkDefault (config.desktop.windowManager == "sway"); - bars.bottom = { - time = { - command = "date +'%F %R'"; - interval = 60; - }; - }; - }; - - swaylock = { - enable = lib.mkDefault (config.desktop.windowManager == "sway"); - settings = { - color = "000000"; - no-unlock-indicator = true; - }; - }; - }; - - wayland.windowManager.sway = - if (config.desktop.windowManager == "sway") then - { - enable = lib.mkForce true; - package = null; # use the nixos module - config = { - bars = [ - { - colors = { - activeWorkspace = { - background = "#11111b"; - border = "#11111b"; - text = "#cdd6f4"; - }; - - background = "#11111b"; - focusedBackground = "#11111b"; - focusedSeparator = "#313244"; - focusedStatusline = "#cdd6f4"; - focusedWorkspace = { - background = "#11111b"; - border = "#11111b"; - text = "#89b4fa"; - }; - - inactiveWorkspace = { - background = "#11111b"; - border = "#11111b"; - text = "#313244"; - }; - - separator = "#313244"; - statusline = "#cdd6f4"; - urgentWorkspace = { - background = "#11111b"; - border = "#11111b"; - text = "#f38ba8"; - }; - }; - - fonts = { - names = [ "Fira Code" ]; - size = 8.0; - }; - - statusCommand = "${pkgs.i3blocks}/bin/i3blocks -c ~/.config/i3blocks/bottom"; - } - ]; - - bindswitches = { - "lid:off" = { - action = "output eDP-1 power on"; - locked = true; - }; - - "lid:on" = { - action = "output eDP-1 power off"; - locked = true; - }; - }; - - colors = # catppuccin mocha - let - base = "#1e1e2e"; - blue = "#89b4fa"; - red = "#f38ba8"; - surface1 = "#45475a"; - teal = "#94e2d5"; - text = "#cdd6f4"; - in - { - focused = { - background = "${blue}"; - border = "${blue}"; - childBorder = "${blue}"; - indicator = "${teal}"; - text = "${base}"; - }; - - focusedInactive = { - background = "${surface1}"; - border = "${surface1}"; - childBorder = "${surface1}"; - indicator = "${surface1}"; - text = "${text}"; - }; - - unfocused = { - background = "${base}"; - border = "${base}"; - childBorder = "${base}"; - indicator = "${base}"; - text = "${text}"; - }; - - urgent = { - background = "${red}"; - border = "${red}"; - childBorder = "${red}"; - indicator = "${red}"; - text = "${base}"; - }; - }; - - floating.titlebar = false; - focus.followMouse = false; - fonts = { - names = [ "Fira Code" ]; - size = 8.0; - }; - - gaps = { - inner = 4; - outer = 8; - }; - - input = { - "*" = { - accel_profile = "flat"; - }; - - "type:touchpad" = { - drag = "enabled"; - dwt = "enabled"; - natural_scroll = "enabled"; - tap = "enabled"; - }; - }; - - keybindings = - let - mod = config.wayland.windowManager.sway.config.modifier; - in - { - "${mod}+Return" = "exec foot"; - "${mod}+Q" = "kill"; - "${mod}+Alt+Q" = "exit"; - "${mod}+V" = "splitt"; - "${mod}+H" = "focus left"; - "${mod}+J" = "focus down"; - "${mod}+K" = "focus up"; - "${mod}+L" = "focus right"; - "${mod}+Shift+H" = "move left"; - "${mod}+Shift+J" = "move down"; - "${mod}+Shift+K" = "move up"; - "${mod}+Shift+L" = "move right"; - "${mod}+Minus" = "resize shrink width 5"; - "${mod}+Shift+Equal" = "resize grow height 5"; - "${mod}+Shift+Minus" = "resize shrink height 5"; - "${mod}+Equal" = "resize grow width 5"; - "${mod}+1" = "workspace 1"; - "${mod}+2" = "workspace 2"; - "${mod}+3" = "workspace 3"; - "${mod}+4" = "workspace 4"; - "${mod}+5" = "workspace 5"; - "${mod}+6" = "workspace 6"; - "${mod}+7" = "workspace 7"; - "${mod}+8" = "workspace 8"; - "${mod}+9" = "workspace 9"; - "${mod}+Shift+1" = "move workspace 1"; - "${mod}+Shift+2" = "move workspace 2"; - "${mod}+Shift+3" = "move workspace 3"; - "${mod}+Shift+4" = "move workspace 4"; - "${mod}+Shift+5" = "move workspace 5"; - "${mod}+Shift+6" = "move workspace 6"; - "${mod}+Shift+7" = "move workspace 7"; - "${mod}+Shift+8" = "move workspace 8"; - "${mod}+Shift+9" = "move workspace 9"; - "${mod}+F" = "floating toggle"; - "${mod}+G" = "layout toggle split tabbed"; - "${mod}+R" = "exec fuzzel"; - "${mod}+Shift+S" = "exec grim -g \"$(slurp)\" ~/Pictures/screenshot.png"; - "${mod}+Alt+L" = "exec swaylock"; - "XF86AudioRaiseVolume" = "exec wpctl set-volume @DEFAULT_SINK@ 5%+ -l 1"; - "XF86AudioLowerVolume" = "exec wpctl set-volume @DEFAULT_SINK@ 5%- -l 1"; - "XF86AudioMute" = "exec wpctl set-mute @DEFAULT_SINK@ toggle"; - "XF86MonBrightnessUp" = "exec brightnessctl --class=backlight s +10%"; - "XF86MonBrightnessDown" = "exec brightnessctl --class=backlight s 10%-"; - "Shift+XF86MonBrightnessUp" = "exec brightnessctl --device=chromeos::kbd_backlight s +10%"; - "Shift+XF86MonBrightnessDown" = "exec brightnessctl --device=chromeos::kbd_backlight s 10%-"; - "XF86RFKill" = "exec rfkill toggle 1"; - }; - - modes = { }; - modifier = "Mod4"; - output = { - "eDP-1" = { - background = "~/Pictures/wallpaper.png fill"; - mode = "2256x1504@60Hz"; - position = "0 0"; - scale = "1.5"; - }; - - "DP-1" = { - background = "~/Pictures/wallpaper.png fill"; - mode = "1920x1080@165Hz"; - position = "0 0"; - }; - - "DP-2" = { - background = "~/Pictures/wallpaper.png fill"; - mode = "1920x1080@75Hz"; - position = "1920 0"; - }; - }; - - seat.seat0.xcursor_theme = "catppuccin-mocha-dark-cursors"; - window.titlebar = false; - workspaceOutputAssign = [ - { - output = [ - "DP-1" - "eDP-1" - ]; - - workspace = "1"; - } - { - output = "DP-2"; - workspace = "2"; - } - ]; - }; - - extraConfig = '' - exec waybar - ''; - } - else - { }; - }; -} |
