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 2015-07-21 20:15:22 +0000

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-07-21 20:21:51 +0000

i3convert gravatar image

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

edit flag offensive delete link more

Comments

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

Sol64 gravatar imageSol64 ( 2015-07-21 20:24:30 +0000 )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 ( 2015-07-22 04:05:24 +0000 )edit

Question Tools

Stats

Asked: 2015-07-21 20:15:22 +0000

Seen: 84 times

Last updated: Jul 21