LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs > An open source user evolution
User Name
Password

Notices


This blog is to document my progress with Linux and programming in general. I started off trying to fix my computer which led me down a road of great intrigue into Linux and programming. From this, I also developed a passion to document what I do for two reason; first is to have a history of what I have done and second is leave the possibility open for feedback and suggestions or even simple discussion. Feel free to email me schulidr@protonmail.com or send me a message on here. I can also be found on twitter, mastadon, manjaro forums, arch forums, and IRC all of which I have the same handle.
Rate this Entry

i3 startup

Posted 03-12-2019 at 08:58 PM by schulidr
Tags autostart, i3wm

Trying to generate the autorun options for starting i3. I'd like my optimal desktop to just start without me doing anything

- I have been editing the ~/.config/i3/config file with some luck
- i3-layout-manager does a good job at saving the .json file. I do need to edit it so it restores my desktop session
which is where I am running into issues



- I have the first two workspaces saved as .json files and they are loading properly on startup
- workspace 1 loads perfectly out of the gate right now
- workspace two loads the layout. need to work on proper programs starting

- Possible solution that is seemingly working:
- append the i3 config file with the following:

exec_always --no-startup-id i3-msg "workspace 1; append_layout /home/darrin/.layouts/layout-WORKPLACE_1.json"
exec_always --no-startup-id i3-msg "workspace 2; append_layout /home/darrin/.layouts/layout-WORKPLACE_2.json"

exec_always --no-startup-id i3-msg 'workspace 1; exec urxvt -name alpine -e alpine'
exec_always --no-startup-id i3-msg 'workspace 1; exec urxvt -name calcurse -e calcurse'

exec_always --no-startup-id i3-msg 'workspace 1; exec urxvt -name lynx -e lynx'
exec_always --no-startup-id i3-msg 'workspace 1; exec urxvt -name irssi -e irssi'
exec_always --no-startup-id i3-msg 'workspace 1; exec urxvt -name tnote -e tnote'


Had to fix a few things because the workstation 2 just wouldn't load with the proper layout.
-resaved the layout that I wanted
-edited the i3 config to get both workspaces to load properly
-deleted the shit from my i3 config and made it into a script to run
-I want to incorporate this into another script I run to decide which layout I will go with for the session.
-Have a study layout all setup now!

My end result is this:

#!/bin/zsh

# Workspace layout

i3-msg 'workspace 1; append_layout /home/darrin/.layouts/layout-WORKPLACE_1.json'
i3-msg 'workspace 2; append_layout /home/darrin/.layouts/layout-WORKPLACE_2.json'

# Program loads

i3-msg 'workspace 1; exec urxvt -name alpine -e alpine'
i3-msg 'workspace 1; exec urxvt -name calcurse -e calcurse'
i3-msg 'workspace 2; exec urxvt -name lynx -e lynx'
i3-msg 'workspace 2; exec urxvt -name tnote -e tnote -a'
i3-msg 'workspace 2; exec urxvt -name irssi -e irssi'

# streaming music for studying

cvlc ~/.config/pyradio/listen.pls -d

-----------------------------------------------

So I wound up not doing an auto populate for my workspace. I am happy that I figured it out but I like the idea of having
several layouts to choose from based on what I am doing. Growing closer and closer to being able to stick with i3 completely as
well as CLI.

Now I want to configure my irssi to open the proper chatrooms when it opens...
-Just going to add the auto join chats as I go.

Added a command to open a terminal in workspace 3 on startup. I am loading the layouts in workspace 1 and 2 so having a
terminal in workspace 1 when I manually load the layout will mess it up due to the terminal window I am using already being
there. This will ensure that the terminal colors are updated and things dont look too funny as well keeping my layouts as they
are supposed to be.
Ultimately I want this to be the dialog box to choose which layout I want for that session.
Posted in Uncategorized
Views 233 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 11:25 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration