summary refs log tree commit diff
path: root/mixins
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-05-18 19:47:05 +0300
committertzlil <tzlils@protonmail.com>2023-05-18 19:47:05 +0300
commitebbace8f892f0cae46cce1211efd927066a012f8 (patch)
tree0e64d16c883e2327fcc4fe1797544c2a69c6b77e /mixins
parent959dfaaeb7ae01a77f9e2c3c17bac1b7e23d8ea1 (diff)
parenta01a6fbdfcf923b1c9fa55c7bec0617c230e8e67 (diff)
merge
Diffstat (limited to 'mixins')
-rw-r--r--mixins/cli.nix2
-rw-r--r--mixins/sway.nix29
2 files changed, 26 insertions, 5 deletions
diff --git a/mixins/cli.nix b/mixins/cli.nix
index 84a5e3d..4137377 100644
--- a/mixins/cli.nix
+++ b/mixins/cli.nix
@@ -13,7 +13,7 @@
       ...
     }: {
       imports = [
-        # inputs.viper-nix-common.homeModules.xdg
+        inputs.viper-nix-common.homeModules.xdg
       ];
       home = {
         packages = with pkgs; [
diff --git a/mixins/sway.nix b/mixins/sway.nix
index c12d156..8143e6b 100644
--- a/mixins/sway.nix
+++ b/mixins/sway.nix
@@ -17,7 +17,7 @@
 
       app_id=menu
       chooser="${pkgs.fzf}/bin/fzf <$in_pipe >$out_pipe"
-      ${pkgs.foot}/bin/foot -W40x40 --app-id "$app_id" -- sh -c "$chooser" &
+      ${pkgs.foot}/bin/footclient -W40x40 --app-id "$app_id" -- sh -c "$chooser" &
       cat >"$in_pipe"
       cat <"$out_pipe"
     '';
@@ -75,10 +75,31 @@ in {
         wf-recorder
         font-awesome_6
         waypipe
-        foot
         alsa-utils
       ];
 
+      programs.foot = {
+        enable = true;
+        server.enable = true;
+        settings = {
+          # main = {
+          # term = "xterm-256color";
+
+          # font = "Fira Code:size=11";
+          # dpi-aware = "yes";
+          # };
+
+          colors = {
+            background = "000000";
+            foreground = "ffffff";
+          };
+
+          # mouse = {
+          #   hide-when-typing = "yes";
+          # };
+        };
+      };
+
       services.swayidle = let
         pgrep = "${pkgs.procps}/bin/pgrep";
         dpms_check = s:
@@ -161,7 +182,7 @@ in {
             "${modifier}+q" = "kill";
             "${modifier}+d" = "exec ${pkgs.dmenu}/bin/dmenu_path | ${menuscript} | xargs swaymsg exec --";
             "${modifier}+Shift+c" = "reload";
-            "${modifier}+Shift+q" = "exit";
+            "${modifier}+Shift+q" = "exec swaynag -t warning -m 'you sure?' -B 'yes' 'swaymsg exit' -s 'no'";
             "${modifier}+Shift+p" = "exec systemctl poweroff";
             "${modifier}+Shift+s" = "exec systemctl suspend";
             "${modifier}+${left}" = "focus left";
@@ -246,7 +267,7 @@ in {
           set $down n
           set $up e
           set $right i
-          set $term ${pkgs.foot}/bin/foot
+          set $term ${pkgs.foot}/bin/footclient
 
           default_border pixel
           hide_edge_borders smart