diff --git a/home/modules/sway/default.nix b/home/modules/sway/default.nix deleted file mode 100644 index 8f17050..0000000 --- a/home/modules/sway/default.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ ... }: -{ - imports = [ - ./mako.nix - ./sway.nix - ./swaylock.nix - ./swayosd.nix - ./waybar.nix - ]; -} diff --git a/home/modules/sway/mako.nix b/home/modules/sway/mako.nix deleted file mode 100644 index a33dae7..0000000 --- a/home/modules/sway/mako.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ lib, config, ... }: -with lib; -let - cfg = config.profile.sway; -in -{ - # Notification daemon for wayland - config = mkIf (cfg.enable && cfg.mako.enable) { - services.mako = { - enable = true; - padding = "5"; - backgroundColor = "#050505"; - borderSize = 1; - borderColor = "#454545"; - font = "JetBrainsMono Nerd Font 10"; - }; - }; -} diff --git a/home/modules/sway/sway.nix b/home/modules/sway/sway.nix deleted file mode 100644 index ae1576b..0000000 --- a/home/modules/sway/sway.nix +++ /dev/null @@ -1,66 +0,0 @@ -{ pkgs, lib, config, ... }: -let - cfg = config.profile.sway; -in -{ - config = lib.mkIf cfg.enable { - home.packages = with pkgs; [ - alacritty - tofi - findutils - networkmanagerapplet - ]; - - wayland.windowManager.sway = { - enable = true; - }; - - wayland.windowManager.sway.extraConfigEarly = '' - exec "nm-applet --indicator" - ''; - wayland.windowManager.sway.config = - let - mod = "Mod4"; - in - { - modifier = mod; - keybindings = lib.mkOptionDefault - { - "${mod}+Return" = "exec ${pkgs.alacritty}/bin/alacritty"; - "${mod}+Shift+q" = "kill"; - "${mod}+d" = "exec ${pkgs.tofi}/bin/tofi-drun | ${pkgs.findutils}/bin/xargs swaymsg exec --"; - "XF86AudioRaiseVolume" = "exec wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"; - "XF86AudioLowerVolume" = "exec wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-"; - "XF86AudioMute" = "exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; - "XF86MonBrightnessUp" = "exec light -A 5"; - "XF86MonBrightnessDown" = "exec light -U 5"; - }; - - fonts = { - names = [ "JetBrainsMono Nerd Font" ]; - style = "Bold Semi-Condensed"; - size = 11.0; - }; - bars = [ ]; - }; - wayland.windowManager.sway.extraConfig = '' - default_border none - - # class border backgr. text indicator child_border - client.focused #373b41 #373b41 #373b41 #373b41 #373b41 - client.focused_inactive #282a2e #282a2e #282a2e #282a2e #282a2e - client.urgent #f0c674 #f0c674 #f0c674 #f0c674 #f0c674 - client.placeholder #373b41 #373b41 #373b41 #373b41 #373b41 - - # swayfx config - blur enable - blur_xray enable - blur_passes 3 - blur_radius 5 - layer_effects "waybar" shadows enable; blur enable; - corner_radius 4 - # default_dim_inactive 0.2 - shadows enable - ''; - }; -} diff --git a/home/modules/sway/swaylock.nix b/home/modules/sway/swaylock.nix deleted file mode 100644 index a739178..0000000 --- a/home/modules/sway/swaylock.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ config, lib, ... }: -with lib; -let - cfg = config.profile.sway; -in -{ - config = mkIf cfg.enable { - programs.swaylock = { - enable = true; - settings = { - show-failed-attempts = true; - }; - }; - }; -} diff --git a/home/modules/sway/swayosd.nix b/home/modules/sway/swayosd.nix deleted file mode 100644 index 80161fa..0000000 --- a/home/modules/sway/swayosd.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ config, lib, ... }: -with lib; -let - cfg = config.profile.sway; -in -{ - config = mkIf cfg.enable { - services.swayosd = { - enable = true; - }; - }; -} diff --git a/home/modules/sway/waybar.css b/home/modules/sway/waybar.css deleted file mode 100644 index 9a00113..0000000 --- a/home/modules/sway/waybar.css +++ /dev/null @@ -1,90 +0,0 @@ -* { - border: none; - border-radius: 0; - min-height: 0; - font-family: Iosevka nerd font; - font-weight: bold; - font-size: 14px; - padding: 0; -} - -window#waybar { - background: rgba(29, 31, 33, 0.75); - border-radius: 6px; - border: 2px solid #303030; -} - -#workspaces { - background-color: transparent; -} - -#workspaces button { - all: initial; /* Remove GTK theme values (waybar #1351) */ - min-width: 0; /* Fix weird spacing in materia (waybar #450) */ - box-shadow: inset 0 -3px transparent; /* Use box-shadow instead of border so the text isn't offset */ - padding: 6px 12px; - color: #6c757d; -} - -#workspaces button.visible { - color: #ede0d4; -} - -#workspaces button:hover { - box-shadow: inherit; - text-shadow: inherit; - color: #ede0d4; -} - -#workspaces button.urgent { - background-color: #ffcb70; -} - -#battery, -#backlight, -#network, -#clock, -#tray, -#pulseaudio { - margin: 8px; - padding-right: 16px; - background-color: transparent; - color: #ede0d4; -} - -#custom-swww { - padding-right: 16px; - background-color: transparent; - color: #ede0d4; -} - -#battery { - background-color: #ede0d4; -} -#battery.warning, -#battery.critical, -#battery.urgent { - color: #ede0d4; - animation-name: blink; - animation-duration: 0.5s; - animation-timing-function: linear; - animation-iteration-count: infinite; - animation-direction: alternate; -} -#battery.charging { - background-color: #97a97c; -} - -@keyframes blink { - to { - background-color: #ffcb70; - color: #ede0d4; - } -} - -tooltip { - padding: 15px; - background-color: #050505; - border-radius: 6px; - border: 2px solid #303030; -} diff --git a/home/modules/sway/waybar.nix b/home/modules/sway/waybar.nix deleted file mode 100644 index 86f7a3a..0000000 --- a/home/modules/sway/waybar.nix +++ /dev/null @@ -1,103 +0,0 @@ -{ config, lib, unstable, ... }: -let - cfg = config.profile.sway; -in -{ - config = lib.mkIf cfg.enable { - programs.waybar = { - enable = true; - style = ./waybar.css; - systemd.enable = true; - package = unstable.waybar; - }; - - programs.waybar.settings = { - main = { - layer = "top"; - position = "bottom"; - spacing = 0; - margin-bottom = 0; - margin-left = 300; - margin-right = 300; - modules-left = [ - "sway/workspaces" - ]; - modules-center = [ - "clock" - ]; - modules-right = [ - "tray" - "network" - "battery" - "pulseaudio" - ]; - - "sway/taskbar" = { - format = "{icon}"; - on-click = "activate"; - on-click-right = "fullscreen"; - icon-size = 25; - tooltip-format = "{title}"; - }; - - "sway/workspaces" = { - disable-scroll = true; - all-outputs = true; - format-icons = { - "1" = ""; - "2" = ""; - "3" = ""; - "4" = ""; - "5" = ""; - }; - persistent-workspaces = { - "1" = [ ]; - "2" = [ ]; - "3" = [ ]; - "4" = [ ]; - "5" = [ ]; - }; - }; - - tray.spacing = 10; - clock.format = "{:%I:%M %p - %a, %d %b %Y}"; - network = { - format-wifi = "{icon}"; - format-icons = [ "󰤯" "󰤟" "󰤢" "󰤥" "󰤨" ]; - format-ethernet = ""; - format-disconnected = "󰤮"; - interval = 5; - }; - - pulseaudio = { - scroll-step = 5; - max-volume = 150; - format = "{icon} {volume}%"; - format-bluetooth = "󰂰"; - nospacing = 1; - format-muted = "󰝟"; - format-icons = { - headphone = ""; - default = [ "" "" " " ]; - }; - on-click = "pamixer -t"; - }; - - battery = { - format = "{icon} {capacity}%"; - format-icons = { - charging = [ "󰢜" "󰂆" "󰂇" "󰂈" "󰢝" "󰂉" "󰢞" "󰂊" "󰂋" "󰂅" ]; - default = [ "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ]; - }; - format-full = "Charged "; - interval = 5; - states = { - warning = 20; - critical = 10; - }; - tooltip = false; - }; - }; - }; - }; -}