summaryrefslogtreecommitdiff
path: root/modules/desktops/sway/config.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-09-17 22:07:16 -0400
committerFreya Murphy <freya@freyacat.org>2025-09-17 22:07:16 -0400
commit68d03fe362b7e0df11662d8d6a1e01eac0bfae77 (patch)
treea76abd05f662f73b4083ddb0d8bf0d72c29e5a74 /modules/desktops/sway/config.nix
parentupdate commits (diff)
downloaddotfiles-nix-68d03fe362b7e0df11662d8d6a1e01eac0bfae77.tar.gz
dotfiles-nix-68d03fe362b7e0df11662d8d6a1e01eac0bfae77.tar.bz2
dotfiles-nix-68d03fe362b7e0df11662d8d6a1e01eac0bfae77.zip
refactor: remove modules folder, fully split home and system modules
Diffstat (limited to 'modules/desktops/sway/config.nix')
-rw-r--r--modules/desktops/sway/config.nix124
1 files changed, 0 insertions, 124 deletions
diff --git a/modules/desktops/sway/config.nix b/modules/desktops/sway/config.nix
deleted file mode 100644
index c6c78ca..0000000
--- a/modules/desktops/sway/config.nix
+++ /dev/null
@@ -1,124 +0,0 @@
-{config, ...}: {
- home-manager.users.${config.user} = {
- wayland.windowManager.sway = {
- config = {
- # monitors
- output =
- (builtins.listToAttrs (map (mon: {
- name = mon.name;
- value = {
- dpms = "on";
- scale = toString mon.scale;
- render_bit_depth = toString mon.bitdepth;
- };
- })
- config.monitors))
- // {
- # wallpaper
- "*" = {
- bg = "${config.theme.wallpaper} fill";
- };
- };
-
- # inputs
- input = {
- "*" = {
- xkb_layout = "us";
- xkb_options = "compose:ralt";
- xkb_numlock = "enable";
- };
-
- "type:touchpad" = {
- tap = "enabled";
- natural_scroll = "enabled";
- middle_emulation = "enabled";
- };
- };
-
- startup =
- # autostart apps
- builtins.map (command: {
- inherit command;
- always = false;
- })
- config.autoRun;
-
- # colors
- colors = let
- base = "#${config.theme.colors.base}";
- surface = "#${config.theme.colors.surface}";
- primary = "#${config.theme.colors.primary}";
- text = "#${config.theme.colors.text}";
- white = "#${config.theme.colors.bright.white}";
- error = "#${config.theme.colors.error}";
- in rec {
- background = base;
-
- focused = {
- border = primary;
- background = base;
- text = text;
- indicator = white;
- childBorder = primary;
- };
-
- focusedInactive = {
- border = surface;
- background = base;
- text = text;
- indicator = surface;
- childBorder = surface;
- };
-
- unfocused = focusedInactive;
-
- urgent = {
- border = error;
- background = error;
- text = text;
- indicator = error;
- childBorder = error;
- };
-
- placeholder = unfocused;
- };
-
- window = {
- titlebar = false;
- border = config.theme.borderWidth;
- };
-
- floating = {
- titlebar = false;
- border = config.theme.borderWidth;
- modifier = "Mod4 normal";
- };
-
- gaps = {
- inner = config.theme.innerGap;
- outer = config.theme.outerGap;
- };
-
- modes = {};
- bars = [];
- };
-
- extraConfig = ''
- # gestures
- bindgesture swipe:right workspace prev
- bindgesture swipe:left workspace next
-
- # swayfx
- corner_radius ${toString config.theme.outerRadius}
- smart_corner_radius ${toString config.theme.outerRadius}
- blur ${
- if config.theme.blur
- then "enabled"
- else "disabled"
- }
- blur_radius 10
- blur_passes 3
- '';
- };
- };
-}