The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

i3 3 commands after another

asked Jul 21 '15

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

I want to enable the keyboard, log the screen, and disable the keyboard again like: xinput enable 10 && sudo pm-suspend | i3lock ; xinput disable 10 this is where the error happens

1 answer

Sort by » oldest newest most voted
0

answered Jul 21 '15

i3convert gravatar image

The best solution is usually to create a separate script file and just call it.

Comments

I tried but than i3lock and xinput disable 10 are executed at the same time

Sol64 gravatar imageSol64 (Jul 21 '15)edit
1

@Sol64: Run commands in order in which you want them to be executed, but run i3lock with the -n switch. The i3lock command won't finish (more precisely, it won't fork) until the screen is unlocked. Is this what you want?

i3convert gravatar imagei3convert (Jul 22 '15)edit

Question Tools

Stats

Asked: Jul 21 '15

Seen: 84 times

Last updated: Jul 21