From 732f513eb58fcfc981d2b99c7f5f6f62d05c54bf Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 22 Feb 2025 16:14:32 +0100 Subject: [PATCH 1/7] talos: home: tweak font size --- hosts/talos/home.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/talos/home.nix b/hosts/talos/home.nix index e4c87c8..339485b 100644 --- a/hosts/talos/home.nix +++ b/hosts/talos/home.nix @@ -71,7 +71,7 @@ in { }; fonts = { names = ["Iosevka Fixed" "FontAwesome6Free"]; - size = 8.0; + size = 9.0; }; bars = []; From 49de758a72ac0970ee51adfec7ba6707ef58cffc Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 22 Feb 2025 16:14:32 +0100 Subject: [PATCH 2/7] talos: home: enable touchpad swipe --- hosts/talos/home.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/talos/home.nix b/hosts/talos/home.nix index 339485b..8da7d9a 100644 --- a/hosts/talos/home.nix +++ b/hosts/talos/home.nix @@ -115,6 +115,9 @@ in { bindswitch --reload --locked lid:off output eDP-1 enable; bindswitch --reload --locked lid:on output eDP-1 disable; + bindgesture swipe:right workspace prev + bindgesture swipe:left workspace next + set $rosewater #dc8a78 set $flamingo #dd7878 set $pink #ea76cb From 1068a3a04126700836d5391f41bb621ced3ed4c4 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 22 Feb 2025 16:14:32 +0100 Subject: [PATCH 3/7] talos: home: tweak colors for focused windows --- hosts/talos/home.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hosts/talos/home.nix b/hosts/talos/home.nix index 8da7d9a..ebce731 100644 --- a/hosts/talos/home.nix +++ b/hosts/talos/home.nix @@ -145,12 +145,12 @@ in { set $mantle #e6e9ef set $crust #dce0e8 - # target title bg text indicator border - client.focused $lavender $base $text $rosewater $lavender - client.focused_inactive $overlay0 $base $text $rosewater $overlay0 - client.unfocused $overlay0 $base $text $rosewater $overlay0 - client.urgent $peach $base $peach $overlay0 $peach - client.placeholder $overlay0 $base $text $overlay0 $overlay0 + # target title bg text indicator border + client.focused $lavender $lavender $base $rosewater $lavender + client.focused_inactive $overlay0 $base $text $rosewater $overlay0 + client.unfocused $overlay0 $base $text $rosewater $overlay0 + client.urgent $peach $base $peach $overlay0 $peach + client.placeholder $overlay0 $base $text $overlay0 $overlay0 client.background $base smart_borders on From 428fb20ecf16e73ba8191710ad86c6b16e7e2fd4 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 22 Feb 2025 16:14:32 +0100 Subject: [PATCH 4/7] home: tmux: switch to catppuccin for tmux theme --- home/tmux.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/home/tmux.nix b/home/tmux.nix index 47f5cc3..45401c3 100644 --- a/home/tmux.nix +++ b/home/tmux.nix @@ -34,9 +34,10 @@ in { ''; } { - plugin = tmuxPlugins.tmux-colors-solarized; + plugin = pkgs.tmuxPlugins.catppuccin; extraConfig = '' - set -g @colors-solarized 'light' + set -g @catppuccin_flavor 'latte' + set -g @catppuccin_window_status_style "rounded" ''; } ]; From ced4f2be27f7382a4d5d5a9b55dec9d267dae65e Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 22 Feb 2025 16:14:32 +0100 Subject: [PATCH 5/7] talos: home: setup wlsunset --- hosts/talos/home.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/hosts/talos/home.nix b/hosts/talos/home.nix index ebce731..519822a 100644 --- a/hosts/talos/home.nix +++ b/hosts/talos/home.nix @@ -23,8 +23,19 @@ in { my.theme = config.home-manager.users.alarsyo.my.themes.solarizedLight; - # TODO: place in global home conf - services.dunst.enable = true; + services = { + # TODO: place in global home conf + dunst.enable = true; + wlsunset = { + enable = true; + latitude = 48.9; + longitude = 2.3; + temperature = { + day = 6500; + night = 3500; + }; + }; + }; home.packages = builtins.attrValues { inherit From 9045c7dcd4c8c8bc7d8de09fa42435eda0c04f7d Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 22 Feb 2025 16:14:32 +0100 Subject: [PATCH 6/7] talos: home: setup darkman --- hosts/talos/default.nix | 9 +++++++++ hosts/talos/home.nix | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/hosts/talos/default.nix b/hosts/talos/default.nix index 1b475c4..422cc56 100644 --- a/hosts/talos/default.nix +++ b/hosts/talos/default.nix @@ -158,6 +158,8 @@ environment.systemPackages = [ pkgs.foot + # FIXME: is this needed? + pkgs.darkman ]; #programs.hyprland.enable = true; @@ -166,6 +168,13 @@ wrapperFeatures.gtk = true; }; + # TODO: These are overriden by files from + # ~/.config/xdg-desktop-portal/sway-portals.conf so they should be moved to + # home + xdg.portal.config.sway = { + "org.freedesktop.impl.portal.Settings" = "darkman"; + }; + # Copy the NixOS configuration file and link it from the resulting system # (/run/current-system/configuration.nix). This is useful in case you # accidentally delete configuration.nix. diff --git a/hosts/talos/home.nix b/hosts/talos/home.nix index 519822a..6c666ad 100644 --- a/hosts/talos/home.nix +++ b/hosts/talos/home.nix @@ -35,6 +35,13 @@ in { night = 3500; }; }; + darkman = { + enable = true; + settings = { + lat = 48.9; + lng = 2.3; + }; + }; }; home.packages = builtins.attrValues { From 119954200eadd58ffb8a707928fb8e1d2a28e010 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 22 Feb 2025 16:14:32 +0100 Subject: [PATCH 7/7] talos: fix Firefox inhibit behavior See https://github.com/flatpak/xdg-desktop-portal-gtk/issues/465 for details about the issue. TL;DR: x-d-p-gtk doesn't report a failure to handle the idle inhibit to Firefox, so Firefox doesn't fallback to the Wayland protocol. --- hosts/talos/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/talos/default.nix b/hosts/talos/default.nix index 422cc56..a8e3cd9 100644 --- a/hosts/talos/default.nix +++ b/hosts/talos/default.nix @@ -173,6 +173,7 @@ # home xdg.portal.config.sway = { "org.freedesktop.impl.portal.Settings" = "darkman"; + "org.freedesktop.impl.portal.Inhibit" = "none"; }; # Copy the NixOS configuration file and link it from the resulting system