From 1f35500e5521dbc2acd94b0405065aa11d4a4f02 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Thu, 28 Dec 2023 12:04:04 -0800 Subject: [PATCH] desktop: disable startup applications --- hosts/desktop/i3/default.nix | 11 ----------- hosts/desktop/i3/layout.sh | 24 ------------------------ hosts/desktop/i3/tree.json | 20 -------------------- 3 files changed, 55 deletions(-) delete mode 100644 hosts/desktop/i3/layout.sh delete mode 100644 hosts/desktop/i3/tree.json diff --git a/hosts/desktop/i3/default.nix b/hosts/desktop/i3/default.nix index 550dbb4..4159f01 100644 --- a/hosts/desktop/i3/default.nix +++ b/hosts/desktop/i3/default.nix @@ -2,17 +2,6 @@ { xsession.windowManager.i3.config = { - startup = [ - { - command = let layout = pkgs.substituteAll { - src = ./layout.sh; - tree = ./tree.json; - isExecutable = true; - }; in "${layout}"; - always = true; - notification = false; - } - ]; workspaceOutputAssign = [ { output = "HDMI-0"; diff --git a/hosts/desktop/i3/layout.sh b/hosts/desktop/i3/layout.sh deleted file mode 100644 index 6507f64..0000000 --- a/hosts/desktop/i3/layout.sh +++ /dev/null @@ -1,24 +0,0 @@ -# Exit layout script if Firefox or Discord is open, -# i3 has been reloaded -pgrep firefox || pgrep Discord && exit 0 - -# Switch to workspace 1 -i3-msg workspace 1 -# Start up Firefox in the background -firefox & -# Give Firefox some time to start up -sleep 1 - -# Switch to workspace 2, load layout, and open blank space -i3-msg "workspace 2; append_layout @tree@; open" -# Move blank space to appropriate space, -# i3 layout files don't support blank space -for i in {1..4}; do - i3-msg move left -done -# Start up Discord in the background -discord & -# Open YouTube for music -firefox --new-window https://youtube.com -# Go back to primary workspace -i3-msg workspace 1 diff --git a/hosts/desktop/i3/tree.json b/hosts/desktop/i3/tree.json deleted file mode 100644 index 0215807..0000000 --- a/hosts/desktop/i3/tree.json +++ /dev/null @@ -1,20 +0,0 @@ -// vim:ts=4:sw=4:et -{ - "layout": "splitv", - "type": "con", - "nodes": [ - { - "swallows": [{ "class": "^firefox$" }], - "type": "con" - }, - { - "swallows": [{ "title": "Discord Updater" }], - "type": "con" - }, - { - "swallows": [{ "class": "^discord$" }], - "type": "con" - } - ] -} -