Commit 795d00258c50

Vincent Demeester <vincent@sbr.pm>
2024-09-02 23:05:13
wakasu+users/vincent: switching back to sway
It works, it's simple and it doesn't break. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 9399cba
Changed files (5)
systems
hosts
modules
desktop
users
systems/hosts/wakasu.nix
@@ -114,8 +114,8 @@ in
       bluetooth.enable = true;
     };
     desktop = {
-      # wayland.sway.enable = true;
-      wayland.hyprland.enable = true;
+      wayland.sway.enable = true;
+      # wayland.hyprland.enable = true;
     };
     dev = {
       enable = true;
systems/modules/desktop/sway.nix
@@ -29,7 +29,6 @@ in
           xdg-desktop-portal-wlr
           xdg-desktop-portal-gtk
         ];
-        gtkUsePortal = true;
       };
     };
 
users/vincent/core/zsh.nix
@@ -83,9 +83,8 @@ in
       }
     '';
     loginExtra = ''
-      # export GOPATH=${config.home.homeDirectory}
       if [[ -z $DISPLAY && $TTY = /dev/tty1 ]]; then
-        exec Hyprland
+        exec sway
       fi
     '';
     profileExtra = ''
users/vincent/desktop/sway.nix
@@ -6,7 +6,7 @@ let
     fd . -d 3 --type d ~/src | ${pkgs.wofi}/bin/wofi -dmenu | xargs -I {} zsh -i -c "cd {}; emacs ."
   '';
   fontConf = {
-    names = [ "Ubuntu Mono" ];
+    names = [ "JetBrains Mono" ];
     size = 12.0;
   };
 in
@@ -22,6 +22,7 @@ in
       export _JAVA_AWT_WM_NONREPARTENTING=1
       export MOZ_ENABLE_WAYLAND=1
     '';
+    checkConfig = false;
     config = {
       gaps = {
         inner = 2;
@@ -225,8 +226,8 @@ in
         bindsym XF86AudioPrev exec "playerctl previous"
         bindsym Cancel exec "playerctl previous"
 
-        bindcode ${mod}+49 exec swaymsg [app_id="metask"] scratchpad show || exec ${pkgs.kitty}/bin/kitty --title metask --class metask tmux
-        bindsym --whole-window button8 exec sswaymsg [app_id="metask"] scratchpad show || exec ${pkgs.kitty}/bin/kitty --title metask --class metask tmux
+        bindcode ${mod}+49 exec swaymsg [app_id="metask"] scratchpad show || exec ${pkgs.kitty}/bin/kitty --title metask --class metask
+        bindsym --whole-window button8 exec sswaymsg [app_id="metask"] scratchpad show || exec ${pkgs.kitty}/bin/kitty --title metask --class metask
         bindcode ${mod}+Shift+49 exec swaymsg '[app_id="emacs" title="^_emacs scratchpad_$"]' scratchpad show || exec ${config.programs.emacs.package}/bin/emacsclient -c -F "((name . \"_emacs scratchpad_\"))"
         bindsym --whole-window button9 exec swaymsg '[app_id="emacs" title="^_emacs scratchpad_$"]' scratchpad show || exec ${config.programs.emacs.package}/bin/emacsclient -c -F "((name . \"_emacs scratchpad_\"))"
 
@@ -244,10 +245,10 @@ in
   };
   home.packages = with pkgs; [
     swaybg
-    swaynotificationcenter
+    # swaynotificationcenter
     # terminals
     # FIXME move this away, they work on both Xorg and Wayland/Sway
-    alacritty
+    kitty
   ];
 
 }
users/vincent/desktop/wayland.nix
@@ -19,7 +19,7 @@
         position = "bottom";
         mode = "hide";
         modifier-reset = "release";
-        modules-left = [ "sway/workspaces" "hyprland/workspaces" "sway/mode" "custom/media" ];
+        modules-left = [ "sway/workspaces" "sway/mode" "custom/media" ];
         modules-center = [ "clock" "custom/notification" ];
         modules-right = [ "temperature" "pulseaudio" "backlight" "battery#bat0" "tray" ];
         ipc = true;