You are not logged in.

#1 2025-02-07 20:35:05

masterofhtml
Member
Registered: 2025-02-07
Posts: 11

[SOLVED] Hyprland loads into workspace 2 not 1

I am running hyprland on arch linux, and using gnome. When i log in, i have kitty, firefox,spotify as exec-once in workspace 1,2,3 respectively. But i automatically get sent to firefox(workspace 2) instead of kitty(workspace 1),

I am just wondering if there is a way i can change this.

Let me know if any file outputs are required as i am new to the forums


Hyprland.conf:
https://pastebin.com/40A9c6qQ

Last edited by masterofhtml (2025-02-08 11:11:20)

Offline

#2 2025-02-07 21:31:38

mackin_cheese
Member
Registered: 2025-01-07
Posts: 475

Re: [SOLVED] Hyprland loads into workspace 2 not 1

post your whole hyprland conf in a pastebin so we can see what's in it

Offline

#3 2025-02-07 21:33:31

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,612

Re: [SOLVED] Hyprland loads into workspace 2 not 1

How about

exec-once = sleep 1 && hyprctl dispatch workspace 1

in your hyperland.conf

Edit: BTW, I've not actually tried that

Last edited by ewaller (2025-02-07 21:34:09)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2025-02-08 11:08:12

masterofhtml
Member
Registered: 2025-02-07
Posts: 11

Re: [SOLVED] Hyprland loads into workspace 2 not 1

ok, i have added the hyprland.conf file, i will try  @ewaller workaround now

Offline

#5 2025-02-08 11:10:28

masterofhtml
Member
Registered: 2025-02-07
Posts: 11

Re: [SOLVED] Hyprland loads into workspace 2 not 1

thank you, that has worked

Offline

#6 2025-02-08 15:15:52

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,612

Re: [SOLVED] Hyprland loads into workspace 2 not 1

Extra bonus points if you decode how that command works smile


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#7 2025-02-08 16:17:11

masterofhtml
Member
Registered: 2025-02-07
Posts: 11

Re: [SOLVED] Hyprland loads into workspace 2 not 1

i mean, i know that exec-once ... executes once, and im assuming sleep 1 just waits for 1 second

hyprctl dispatch workspace 1 im not too sure but hyprctl hyprcontrol? and dispatch is like go to? and then workspace 1 is fine

Offline

#8 2025-02-08 16:17:59

masterofhtml
Member
Registered: 2025-02-07
Posts: 11

Re: [SOLVED] Hyprland loads into workspace 2 not 1

but anyway, thank you for your help

Offline

#9 2025-02-08 16:23:45

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,612

Re: [SOLVED] Hyprland loads into workspace 2 not 1

You got most of it.  You might want to look at the hyprctl man page, you can do some cute things with it

man hyprctl wrote:

hyprctl - Utility for controlling parts of Hyprland from a CLI or a script

dispatch is a subcommand of hyprctl


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#10 2025-02-08 20:04:09

masterofhtml
Member
Registered: 2025-02-07
Posts: 11

Re: [SOLVED] Hyprland loads into workspace 2 not 1

ah right makes sense

Offline

Board footer

Powered by FluxBB