Questions tagged [i3]

i3 is a tiling window manager for GNU/Linux and BSD operating systems targeted at advanced users and developers. i3 QUESTIONS MUST BE PROGRAMMING RELATED.

i3 is a tiling window manager, completely written from scratch. The target platforms are GNU/Linux and BSD operating systems, our code is Free and Open Source Software (FOSS) under the BSD license. i3 is primarily targeted at advanced users and developers

Where to start

  • User Guide Official user guide providing an overview of the usage and configuration of the WM

  • GitHub Repo Official GitHub repo with the source code of the project in case you want to contribute or have a look

  • Issue Tracker To refer when you've found a bug or have an enhancement idea

  • Official Subreddit To follow-up and discuss

144 questions
1
vote
1 answer

Need to toggle layout globally instead of per-window using setxkbmap

I am using setxkbmap on Manjaro-i3 to toggle between keyboard layouts with hotkeys. The problem is actually a feature that I do not want... Basically, when switching keyboard layout, it sets that layout only for the current window, and when I move…
ZOlivier
  • 224
  • 1
  • 11
1
vote
1 answer

i3 wm: start my application on a specific screen and give it focus & move the mouse there

I have searched several forums and I always find partial answers, but none that seem to solve my issue. I am developing my own game on a desktop PC (BTW. I use Arch ;-)) with two screens and the i3 window manager. I develop on the right (square 1:1)…
scippie
  • 2,011
  • 1
  • 26
  • 42
1
vote
1 answer

i3wm opacity with Compton

Everything in my Compton config works fine except for the opacity-rule active-opacity = 0.75; inactive-opacity = 0.75; opacity-rule = ["90:class_g = 'google-chrome'"]; I am using Compton from the Arch repos. I can't find much documentation, I am…
Andrew Erwin
  • 43
  • 1
  • 5
1
vote
0 answers

Bindsym fails on a rofi script but bash sh works. How differently does bindsym exec and bash sh work?

So the script itself works quite well but when I try to open it by bindsym then it doesn open and rofi itself just doesnt work anymore and I have to kill it. bindsym $mod+c exec /home/scripts/gpaste.sh and nothing happens Then if I try to run the…
speedstern00b
  • 91
  • 2
  • 8
1
vote
0 answers

Fake Transparency in URxvt Using ImageMagick in i3

The most popular way to set your background in i3 seems to be using feh, via something like: exec_always feh --bg-fill /home/user/Pictures/wallpaper.jpg in your ~/.config/i3/config file. Then, in ~/.Xresources you can configure URxvt to be…
ThoseKind
  • 754
  • 2
  • 13
  • 22
1
vote
1 answer

M4 not expanding all macros in .m4 file

I'm using m4 to replace some macros with colors/etc defined in included files in my i3wm config file. $ m4 -I themes/gruvbox-dark config.m4 > config This is (an excerpt of) my directory structure for the above command. $ tree . . ├── config.m4 ├──…
tomocafe
  • 1,425
  • 4
  • 20
  • 35
1
vote
1 answer

How do you make command2 wait for command1 to exit when executing command1 | command2?

I'm trying to pipe the output of dmenu to surf (browser) in order to browse a selected URL. I'm doing: cat ~/.surf/bookmarks | dmenu | surf but surf starts before dmenu has exited with my chosen URL. This means it doesn't open with the correct URL.…
barters
  • 169
  • 4
1
vote
1 answer

xdotool wont work in i3wm when bound to a key

I have made a script where it uses xdotool to do some keyboard inputs. You can find the script here (The script is called pop_mpv.sh). The script works perfectly when I run it from a terminal, but it does not work properly when I have the script…
Siddharth Dushantha
  • 1,391
  • 11
  • 28
1
vote
1 answer

How to set tty-clock output as background

I would like to set tty-clock output as background for my i3 setup. I want to know how to display a command output as background. Things I tried so far: Running a script that supposedly would run tty-clock and take its screenshot with scrot once a…
Murteza Y
  • 13
  • 5
1
vote
2 answers

How to detect when a bash script is triggered from keybinding

Background I have a Bash script that requires user input. It can be run by calling it in a terminal or by pressing a keyboard shortcut registered in the i3 (or Sway) config file as follows: bindsym --release $mod+Shift+t exec…
Dave S
  • 788
  • 1
  • 11
  • 30
1
vote
0 answers

How to execute i3 commands from systemctl?

I am trying to run an i3 command using inotify. In my case, inotify is started using systemctl. systemctl script: [Unit] Description=Inode event…
ljleb
  • 182
  • 1
  • 14
1
vote
0 answers

gnome-terminal: "--name" parameter only works for first window

If I run gnome-terminal --name foo xprop the window properties are correct: WM_CLASS(STRING) = "foo", "Gnome-terminal" If I run this again with anoter name, e.g. gnome-terminal --name bar, xprop gives me for the second window again the same…
pipppoo
  • 133
  • 2
  • 8
1
vote
2 answers

How can I open a work space from the command line in i3?

I'd like to script opening a workspace with the 'next' available number and then have open in that workspace maybe a two windows each already pointed at a specific view. Any pointers on how to do that? Is i3 actually scriptable in this regard? I…
lucidquiet
  • 6,124
  • 7
  • 51
  • 88
1
vote
1 answer

Key bind to shutdown pc

I am trying to bind some keys to shutdown the pc instead to write "shutdown now" in terminal. I have this in my config file to i3: bindsym $mod+Shift+d exec shutdown now This piece of code is not working. Isn't this supposed to write on terminal…
Lukas
  • 49
  • 2
  • 10
1
vote
1 answer

How to display specific workspace to selected screen on i3 startup?

I have 8 different workspaces defined in ~/.i3/config: set $workspace1_name 1:www set $workspace2_name 2:programming set $workspace3_name 3:communication set $workspace4_name 4:files+dictionary set $workspace5_name 5:documents set $workspace6_name…
Robert Kusznier
  • 6,471
  • 9
  • 50
  • 71