From d1f3fd31609950630b5123a0a7e5fffb029f9483 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 13 Apr 2024 23:15:13 -0400 Subject: [PATCH 1/3] waybar: added sway modules --- homeManagerModules/guiApps/waybar/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeManagerModules/guiApps/waybar/default.nix b/homeManagerModules/guiApps/waybar/default.nix index cb2d48f5..d8afd1c5 100644 --- a/homeManagerModules/guiApps/waybar/default.nix +++ b/homeManagerModules/guiApps/waybar/default.nix @@ -24,8 +24,8 @@ output = ["*"]; position = "top"; reload_style_on_change = true; - modules-left = ["hyprland/workspaces" "river/tags" "hyprland/submap"]; - modules-center = ["hyprland/window" "river/window"]; + modules-left = ["hyprland/workspaces" "river/tags" "sway/workspaces" "hyprland/submap"]; + modules-center = ["hyprland/window" "river/window" "sway/window"]; modules-right = [ "tray" "bluetooth" From 4992fec1506d6c143c791e0baa7c8b0d82cb78f3 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 13 Apr 2024 23:15:26 -0400 Subject: [PATCH 2/3] sway: updated config --- .../desktopEnv/sway/default.nix | 68 ++++++++++++++++++- 1 file changed, 65 insertions(+), 3 deletions(-) diff --git a/homeManagerModules/desktopEnv/sway/default.nix b/homeManagerModules/desktopEnv/sway/default.nix index ca55c645..78f12d06 100644 --- a/homeManagerModules/desktopEnv/sway/default.nix +++ b/homeManagerModules/desktopEnv/sway/default.nix @@ -16,14 +16,22 @@ guiApps.wlogout.enable = lib.mkDefault true; guiApps.alacritty.enable = lib.mkDefault true; guiApps.firefox.enable = lib.mkDefault true; + guiApps.kanshi.enable = lib.mkDefault true; # Packages that should be installed to the user profile. home.packages = with pkgs; [ - brightnessctl + # brightnessctl + # hyprnome + celluloid evince + gnome.eog + gnome.file-roller + kdePackages.polkit-kde-agent-1 + networkmanagerapplet playerctl + swayosd + trayscale xfce.exo - xfce.ristretto xfce.thunar xfce.thunar-archive-plugin xfce.thunar-media-tags-plugin @@ -32,9 +40,12 @@ xfce.xfce4-settings xfce.xfce4-taskmanager xfce.xfconf + swayidle ]; - services.cliphist.enable = true; + programs.swaylock.enable = lib.mkDefault true; + + services.cliphist.enable = lib.mkDefault true; wayland.windowManager.sway.enable = true; wayland.windowManager.sway.config = { @@ -43,6 +54,57 @@ terminal = "${pkgs.alacritty}/bin/alacritty"; menu = "${pkgs.fuzzel}/bin/fuzzel"; modifier = "Mod4"; + colors.focused = { + background = "#ca9ee6"; + border = "#ca9ee6"; + childBorder = "#ca9ee6"; + indicator = "#ca9ee6"; + text = "#ffffff"; + }; + colors.focusedInactive = { + background = "#99d1db"; + border = "#99d1db"; + childBorder = "#99d1db"; + indicator = "#99d1db"; + text = "#ffffff"; + }; + colors.unfocused = { + background = "#99d1db"; + border = "#99d1db"; + childBorder = "#99d1db"; + indicator = "#99d1db"; + text = "#ffffff"; + }; + gaps.inner = 5; + gaps.outer = 10; + window.titlebar = false; + fonts = { + names = ["Noto SansM Nerd Font"]; + style = "Bold"; + size = 12.0; + }; + startup = [ + # { command = "${pkgs.kanshi}"; } + {command = "nm-applet";} + {command = "swayosd-server";} + {command = "thunar --daemon";} + {command = "${pkgs.swayidle} -w timeout 300 '${pkgs.swaylock}' before-sleep '${pkgs.swaylock}'";} + ]; + output = { + "BOE 0x095F Unknown" = { + scale = "1.5"; + }; + }; + input = { + "type:touchpad" = { + click_method = "clickfinger"; + dwt = "enabled"; + natural_scroll = "enabled"; + scroll_method = "two_finger"; + tap = "enabled"; + tap_button_map = "lrm"; + }; + }; }; xdg.configFile."xfce4/helpers.rc".text = '' From 45bb18a48b0e94d671a9352ad975d0f653d7ea96 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 14 Apr 2024 10:03:18 -0400 Subject: [PATCH 3/3] sway: fixed swayidle/swaylock and added touchpad gestures --- homeManagerModules/desktopEnv/sway/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/homeManagerModules/desktopEnv/sway/default.nix b/homeManagerModules/desktopEnv/sway/default.nix index 78f12d06..09a2755e 100644 --- a/homeManagerModules/desktopEnv/sway/default.nix +++ b/homeManagerModules/desktopEnv/sway/default.nix @@ -88,7 +88,7 @@ {command = "nm-applet";} {command = "swayosd-server";} {command = "thunar --daemon";} - {command = "${pkgs.swayidle} -w timeout 300 '${pkgs.swaylock}' before-sleep '${pkgs.swaylock}'";} + {command = "${pkgs.swayidle}/bin/swayidle -w timeout 300 '${pkgs.swaylock}/bin/swaylock' before-sleep '${pkgs.swaylock}/bin/swaylock'";} ]; output = { "BOE 0x095F Unknown" = { @@ -107,6 +107,11 @@ }; }; + wayland.windowManager.sway.extraConfig = '' + bindgesture swipe:right workspace prev + bindgesture swipe:left workspace next + ''; + xdg.configFile."xfce4/helpers.rc".text = '' TerminalEmulator=alacritty FileManager=thunar