From 5e389902a16da1ae7d1b132d355067fde0eb982b Mon Sep 17 00:00:00 2001 From: Gabriella Bere Date: Thu, 1 May 2025 00:35:23 +0100 Subject: [PATCH] added autostart to workspace 2 for comms tried to make a custom workspace named comms but it didnt work and cba bc this is what i wanted anyway --- .gitignore | 1 + home-manager/hyprland.nix | 30 ++++++++++++++++++------------ 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index e69de29..0e14f3e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +heetch.png diff --git a/home-manager/hyprland.nix b/home-manager/hyprland.nix index e32c227..3828730 100644 --- a/home-manager/hyprland.nix +++ b/home-manager/hyprland.nix @@ -1,12 +1,7 @@ -{ - config, - pkgs, - ... -}: { +{...}: { # Enable Hyprland compositor wayland.windowManager.hyprland = { enable = true; - package = pkgs.hyprland; xwayland.enable = true; systemd.variables = ["--all"]; settings = { @@ -16,6 +11,9 @@ "desc:Lenovo Group Limited LEN G24-10 U5B4KL78, 1920x1080@119.98, -960x-1080, auto" # left external monitor "desc:Lenovo Group Limited LEN G24-10 U5B4ZAM2, 1920x1080@119.98, 960x-1080, auto" # right external monitor ]; + workspace = [ + "name:comms, monitor:desc:Lenovo Group Limited LEN G24-10 U5B4KL78" + ]; # Define SUPER key as mod key "$mod" = "SUPER"; @@ -33,16 +31,23 @@ workspace_swipe = true; }; - # bindl = [ - # ",switch:off:Lid Switch,exec,hyprctl keyword monitor eDP-2, 2560x1600@165, 0x0, auto" - # ",switch:on:Lid Switch,exec,hyprctl keyword monitor eDP-2, disable" - # ]; - - # Allow using SUPER+LEFT to move windows and SUPER+RIGHT to resize windows + # Allow using SUPER + left click to move windows and SUPER + right click to resize windows bindm = [ "$mod, mouse:272, movewindow" "$mod, mouse:273, resizewindow" ]; + exec-once = [ + "[workspace 2 silent] telegram-desktop" + "[workspace 2 silent] signal-desktop" + "[workspace 2 silent] firefox https://web.whatsapp.com https://instagram.com" + "[workspace 2 silent] vesktop --enable-features=UseOzonePlatform --ozone-platform=wayland" + ]; + windowrule = [ + "move 100%,100%, title:*WhatsApp*" + "move -100%,100%, title:*Telegram*" + "move 100%,-100%, title:*Vesktop*" + "move -100%,-100%, title:*Signal*" + ]; # Declare all keybinds bind = [ @@ -56,6 +61,7 @@ # Screenshot tool ", Print, exec, grimblast copy area" + "SHIFT, Print, exec, grimblast save area" # Screen locking tool "$mod, l, exec, hyprlock"