Giter Club home page Giter Club logo

Comments (4)

sagb avatar sagb commented on June 9, 2024 1

xinitrc shell script and its foreground job are "main application" for X session. X exits when this foreground application exits. Your foreground application should be dwm, not alltab. Change last two lines to:

alttab -w 1 &
exec dwm

from alttab.

sagb avatar sagb commented on June 9, 2024

Please show all relevant lines in your xinitrc,
and also specify what exactly do you mean by "exit to tty".

from alttab.

bartimois avatar bartimois commented on June 9, 2024

my xinitrc:

#!/bin/sh

exec nitrogen --restore &

~/.config/status.sh &

redshift &

dunst &

xbindkeys -f ~/.xbindkeysrc &

picom -b &

[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources

exec dwm &
alttab -w 1

which works fine.

Usually i exit my dwm session, by pressing modkey + q. However this doesnt really work with the alttab running in the background. my Screen kind of freezes, i cant open a terminal as well.
What i can do, is that if i had a terminal already open, i can still write in it and use commands like "reboot". nitrogen is still running as well, hence why i still see my wallpaper.

I realized that killall alttab does quit dwm automatically, so this is what i would use.
It does not seem like a very pretty solution though.

quitting dwm is something i often do to recompile my WM, which is why i was wondering if this is something, easy to fix.

Edit: with quitting to tty i meant to quit the dwm session, to restart it again with startx

from alttab.

bartimois avatar bartimois commented on June 9, 2024

thank you very much

from alttab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.