From ca627a1b287a35529483010a4657dd67bb9f2ab4 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Mon, 2 Jun 2025 10:07:44 +0800 Subject: [PATCH] feat: hyprland - launch my daily-used apps at startup --- home/darwin/aerospace/aerospace.toml | 6 ------ home/linux/gui/hyprland/conf/configs/exec.conf | 16 +++++++++++++++- hosts/idols-ai/hypr-hardware.conf | 12 ++++++++++-- 3 files changed, 25 insertions(+), 9 deletions(-) diff --git a/home/darwin/aerospace/aerospace.toml b/home/darwin/aerospace/aerospace.toml index 1fbea116..bec2768a 100644 --- a/home/darwin/aerospace/aerospace.toml +++ b/home/darwin/aerospace/aerospace.toml @@ -136,9 +136,6 @@ alt-9 = 'workspace 9File' alt-0 = 'workspace 0Other' alt-a = 'workspace A' # In your config, you can drop workspace bindings that you don't need alt-b = 'workspace B' -alt-c = 'workspace C' -alt-d = 'workspace D' -alt-e = 'workspace E' @@ -155,9 +152,6 @@ alt-shift-9 = 'move-node-to-workspace 9File' alt-shift-0 = 'move-node-to-workspace 0Other' alt-shift-a = 'move-node-to-workspace A' alt-shift-b = 'move-node-to-workspace B' -alt-shift-c = 'move-node-to-workspace C' -alt-shift-d = 'move-node-to-workspace D' -alt-shift-e = 'move-node-to-workspace E' # See: https://nikitabobko.github.io/AeroSpace/commands#workspace-back-and-forth diff --git a/home/linux/gui/hyprland/conf/configs/exec.conf b/home/linux/gui/hyprland/conf/configs/exec.conf index 1149ec2c..ab070be1 100644 --- a/home/linux/gui/hyprland/conf/configs/exec.conf +++ b/home/linux/gui/hyprland/conf/configs/exec.conf @@ -1,5 +1,19 @@ #-- Startup ---------------------------------------------------- - ## Fix anyrun ## https://github.com/anyrun-org/anyrun/issues/153 exec-once = ln -s "$XDG_RUNTIME_DIR/hypr" /tmp/hypr + +## Launch my daily-used apps at startup +# Terminals +exec-once = foot +exec-once = alacritty +# Browsers +exec-once = firefox +exec-once = google-chrome-stable +# Chat +exec-once = telegram-desktop + + +# Switch to Terminals & Browsers +exec-once = sleep 3; hyprctl dispatch workspace 1 +exec-once = sleep 3; hyprctl dispatch workspace 4 diff --git a/hosts/idols-ai/hypr-hardware.conf b/hosts/idols-ai/hypr-hardware.conf index 580313d5..151f05df 100644 --- a/hosts/idols-ai/hypr-hardware.conf +++ b/hosts/idols-ai/hypr-hardware.conf @@ -13,13 +13,21 @@ monitor=HDMI-A-1, highres@highrr, auto-right, 1.5, bitdepth,10, cm, hdr, sdr # Bind Workspace to Monitors -workspace = 1, monitor:DP-2 -workspace = 2, monitor:DP-2 +# Terminals +workspace = 1, monitor:HDMI-A-1 +workspace = 2, monitor:HDMI-A-1 +# Work Chat / Meeting workspace = 3, monitor:HDMI-A-1 +# Browsers workspace = 4, monitor:DP-2 workspace = 5, monitor:DP-2 +# Chat workspace = 6, monitor:HDMI-A-1 +# Music workspace = 7, monitor:HDMI-A-1 +# Mail / Calendar workspace = 8, monitor:DP-2 +# File Manager & Image/PDF Viewer workspace = 9, monitor:DP-2 +# Other workspace = 10, monitor:HDMI-A-1